![]() |
VR-Forces 4.0.4 Class Documentation
|
DtIfControl is the content portion of a control message. More...

Public Member Functions | |
| DtIfControl () | |
| default constructor | |
| DtIfControl (const DtIfControl &orig) | |
| copy constructor | |
| const DtIfControl & | operator= (const DtIfControl &orig) |
| assignment operator | |
| virtual | ~DtIfControl () |
| virtual int | type () const |
| Returns the type of Interface Content; DtControlMessageName. | |
| virtual DtSimInterfaceContent * | clone () const |
| virtual int | controlType () const |
| Type of control, such as pause or run. | |
| 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 DtTime | duration () const |
| These have been added for backwards compatibility with DtIfRunDurationControl and may be removed or altered. | |
| virtual void | setDuration (DtTime time) |
Static Public Member Functions | |
| static DtSimInterfaceContent * | creator () |
Protected Attributes | |
| int | myControlType |
| DtTime | myTime |
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.
default constructor
| DtIfControl::DtIfControl | ( | const DtIfControl & | orig | ) |
copy constructor
| virtual DtIfControl::~DtIfControl | ( | ) | [virtual] |
| const DtIfControl& DtIfControl::operator= | ( | const DtIfControl & | orig | ) |
assignment operator
| virtual int DtIfControl::type | ( | ) | const [virtual] |
Returns the type of Interface Content; DtControlMessageName.
Implements DtSimInterfaceContent.
| virtual DtSimInterfaceContent* DtIfControl::clone | ( | ) | const [virtual] |
Implements DtSimInterfaceContent.
| virtual int DtIfControl::controlType | ( | ) | const [virtual] |
Type of control, such as pause or run.
Use XxxControlType strings in msgTypes.h.
| virtual void DtIfControl::setControlType | ( | int | controlType | ) | [virtual] |
| virtual int DtIfControl::netRepSize | ( | ) | const [virtual] |
Reimplemented from DtSimInterfaceContent.
| virtual bool DtIfControl::setFromNet | ( | const char * | contentBuffer, |
| unsigned | contentSize | ||
| ) | [virtual] |
Reimplemented from DtSimInterfaceContent.
| virtual bool DtIfControl::setToNet | ( | ) | [virtual] |
Reimplemented from DtSimInterfaceContent.
| virtual void DtIfControl::printDataToString | ( | DtString & | str | ) | [virtual] |
Reimplemented from DtSimInterfaceContent.
| static DtSimInterfaceContent* DtIfControl::creator | ( | ) | [static] |
| virtual DtTime DtIfControl::duration | ( | ) | const [virtual] |
These have been added for backwards compatibility with DtIfRunDurationControl and may be removed or altered.
| virtual void DtIfControl::setDuration | ( | DtTime | time | ) | [virtual] |
int DtIfControl::myControlType [protected] |
DtTime DtIfControl::myTime [protected] |