VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfplan
changeTimeOfDayCommand.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#ifndef changeTimeOfDayCommand_h
12
#define changeTimeOfDayCommand_h
13
14
#include "
vrfplan/simCommand.h
"
15
#include "
vrfplan/vrfplanDefines.h
"
16
#include "
vrfutil/rwReal.h
"
17
#include "
vrfutil/rwBoolean.h
"
18
21
class
DT_DLL_vrfplan
DtChangeTimeOfDayCommand
:
public
DtSimCommand
22
{
23
public
:
24
26
DtChangeTimeOfDayCommand
();
27
29
DtChangeTimeOfDayCommand
(
const
DtString
& writeName,
30
DtReaderWriterRegistry
* parentRegistry = NULL);
31
33
DtChangeTimeOfDayCommand
(
const
DtString
& writeName,
const
DtChangeTimeOfDayCommand
& orig,
34
DtReaderWriterRegistry
* parentRegistry = NULL);
35
37
virtual
~
DtChangeTimeOfDayCommand
();
38
40
DtChangeTimeOfDayCommand
&
operator=
(
const
DtChangeTimeOfDayCommand
& orig);
41
43
const
DtSimCommandMessageType
&
type
()
const
;
44
46
virtual
DtSimCommand
*
clone
(
const
DtString
& name,
DtReaderWriterRegistry
*
47
parentRegistry = 0)
const
;
48
49
virtual
int
netRepSize
()
const
;
50
virtual
bool
setFromNet
(
const
char
* contentBuffer,
51
unsigned
contentSize);
52
virtual
bool
setToNet
();
53
55
56
virtual
void
setTimeOfDay(
double
secondsPastMidnight);
57
virtual
double
timeOfDay()
const
;
59
61
62
virtual
void
setTimeOfDayAdvanceSpeed(
double
secondsPastMidnight);
63
virtual
double
timeOfDayAdvanceSpeed()
const
;
65
68
virtual
void
setTimeOfDay(
int
hour,
int
minute,
double
seconds);
69
75
76
virtual
void
setGeneratedByRemoteSetter(
bool
value);
77
virtual
bool
generatedByRemoteSetter()
const
;
79
81
virtual
DtString
stringRep
()
const
;
82
83
static
DtSimCommand
* creator();
84
85
protected
:
86
87
DtRwReal
mySecondsPastMidnight
;
88
DtRwReal
myToDAdvanceSpeed
;
89
DtRwBoolean
myGeneratedByRemoteSetter
;
90
};
91
92
93
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)