![]() |
VR-Forces 5.0.3 Developer's Guide
|
File: ifControl.h.
Class: DtIfControl DtIfControl is the content portion of a control message. It's typically only sent from front-end to back. It includes simple control statements like run and pause.
Content-Type: DtControlMessageType
Parameters: controlType - An integer that is the type of control command, such as "pause" (DtPauseControlType) or "run" (DtRunControlType). These integers are defined in msgTypes.h.

Public Member Functions | |
| DtIfControl () | |
| DtIfControl (const DtIfControl &orig) | |
| const DtIfControl & | operator= (const DtIfControl &orig) |
| virtual | ~DtIfControl () |
| virtual int | type () const |
| virtual DtSimInterfaceContent * | clone () const |
| virtual int | controlType () const |
| virtual void | setControlType (int controlType) |
| virtual int | netRepSize () const |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) |
| virtual bool | setToNet () |
| virtual void | printDataToString (DtString &str) |
| virtual double | duration () const |
| virtual void | setDuration (double time) |
| virtual void | setScenarioRunId (int) |
| virtual int | scenarioRunId () const |
Public Member Functions inherited from DtSimInterfaceContent | |
| virtual | ~DtSimInterfaceContent () |
| virtual bool | update (const DtSimInterfaceContent *data) |
| virtual char * | netRep () |
| virtual void | printContentType (DtString &str) |
| virtual void | setUseSessionId (bool yesNo) |
| virtual bool | useSessionId () const |
Static Public Member Functions | |
| static DtSimInterfaceContent * | creator () |
Static Public Member Functions inherited from DtSimInterfaceContent | |
| static DtSimInterfaceContent * | createInterfaceContent (int type) |
| static void | addInterfaceContentCreatorFcn (int type, DtInterfaceContentCreatorFcn fcn) |
| static void | setFactory (DtInterfaceContentFactory *factory) |
| static DtInterfaceContentFactory * | factory () |
| static void | registerContentTypePrinter (DtSimInterfaceContentTypePrinterFcn printFcn) |
Protected Attributes | |
| int | myControlType |
| double | myTime |
| int | myScenarioRunId |
Protected Attributes inherited from DtSimInterfaceContent | |
| char * | myNetRep |
| bool | myUseSessionId |
Additional Inherited Members | |
Protected Member Functions inherited from DtSimInterfaceContent | |
| DtSimInterfaceContent () | |
| DtSimInterfaceContent (const DtSimInterfaceContent &orig) | |
| const DtSimInterfaceContent & | operator= (const DtSimInterfaceContent &orig) |
| virtual char * | createNetworkBuffer () |
Static Protected Attributes inherited from DtSimInterfaceContent | |
| static DtInterfaceContentFactory * | myFactory |
| static DtSimInterfaceContentTypePrinterFcn | theContentTypePrinterFcn |
| DtIfControl::DtIfControl | ( | ) |
default constructor
| DtIfControl::DtIfControl | ( | const DtIfControl & | orig | ) |
copy constructor
|
virtual |
| const DtIfControl& DtIfControl::operator= | ( | const DtIfControl & | orig | ) |
assignment operator
|
virtual |
Returns the type of Interface Content; DtControlMessageName.
Implements DtSimInterfaceContent.
|
virtual |
Implements DtSimInterfaceContent.
|
virtual |
Type of control, such as pause or run. Use XxxControlType strings in msgTypes.h.
|
virtual |
|
virtual |
Reimplemented from DtSimInterfaceContent.
Reimplemented from DtSimInterfaceContent.
|
virtual |
Reimplemented from DtSimInterfaceContent.
|
virtual |
Reimplemented from DtSimInterfaceContent.
|
static |
|
virtual |
These have been added for backwards compatibility with DtIfRunDurationControl and may be removed or altered.
|
virtual |
|
virtual |
An ID that is used to now uniquely identify messages sent with this scenario rollback. Used to try and prevent messages from a previous scenario interfering with the new. In each new construct of this message, the scenario run id is set to a random number. Only relevant for scenario rewind.
|
virtual |
|
protected |
|
protected |
|
protected |