![]() |
VR-Link API Documentation for HLA 1.3
|
class DtStateMsg: More...
Collaboration diagram for DtStateMsg:Public Member Functions | |
| DtStateMsg (objHandle id, const HandleValueMap &attrs) | |
| constructor | |
| DtStateMsg (objHandle id, HandleValueMap *attrs) | |
| constructor | |
| virtual | ~DtStateMsg () |
| destructor | |
| DtStateMsg (const DtStateMsg &orig) | |
| copy constructor | |
| DtStateMsg & | operator= (const DtStateMsg &orig) |
| assignment operator | |
| virtual objHandle | objectId () const |
| Get the object identifier. | |
| virtual const HandleValueMap & | handleMap () const |
| Get the attribute handle value pair set. (Const version) | |
| virtual HandleValueMap * | handleMap () |
| Get the attribute handle value pair set. (Non-const version) | |
| virtual void | setTag (const DtString &tag) |
| Set/Get the user-defined tag. | |
| virtual void | setCustomTag (const DtString &tag) |
| virtual const DtString & | tag () const |
| virtual bool | customTagSet () const |
| Get whether a custom tag has been set on the interaction or not. | |
| virtual void | print (DtExerciseConn *exConn, RTI::ObjectClassHandle h) const |
| Prints the header and attributes with values. | |
| virtual void | printToStream (std::ostream &stream, DtExerciseConn *exConn, RTI::ObjectClassHandle h) const |
| Prints the header and attributes with values to a stream. | |
| virtual void | printHeader (DtExerciseConn *exConn, RTI::ObjectClassHandle classHandle) const |
| Prints the header information. | |
| virtual void | printHeaderToStream (std::ostream &stream, DtExerciseConn *exConn, RTI::ObjectClassHandle classHandle) const |
| Prints the header information to a stream. | |
| virtual void | printAttrs (DtExerciseConn *exConn, RTI::ObjectClassHandle classHandle, int withHex) const |
| Print the attributes (with hex values if withHex is 1). | |
| virtual void | printAttrsToStream (std::ostream &stream, DtExerciseConn *exConn, RTI::ObjectClassHandle classHandle, int withHex) const |
| Print the attributes to a stream. | |
| virtual void | print (DtHlaObject *obj, bool fullReport=true) const |
| Uses the object to print host representation of data. | |
| virtual void | setTimeStamp (DtTime time, DtTimeStampType type=DtTimeStampRelative) |
| Set the time of validity of the message, and whether this represents relative or absolute time. | |
| virtual DtTime | timeStamp () const |
| Return the time of validity of the message (in seconds past an hour) as set by setTimeStamp. | |
| virtual DtTimeStampType | timeStampType () const |
| Return the type of the time stamp. | |
| virtual DtTime | guessTimeValid (DtTime referenceTime) const |
| Since timestamp only represents number of seconds past the hour, guessTimeValid chooses the hour that would make the timestamp closest to reference time, and returns a time that is timestamp seconds past that hour. | |
| virtual const DtDDMRegion * | region () const |
| Get & Set the region of the reflected state message. | |
| virtual void | setRegion (const DtDDMRegion ®ion) |
Static Public Member Functions | |
| static void | setTagIsAsciiTime (bool val) |
| Set/Get flag that tells us whether we're using the RPR FOM convention that the UserDefinedTag in updates and interactions represents a DIS-style timestamp. | |
| static bool | tagIsAsciiTime () |
Protected Attributes | |
| HandleValueMap * | myAvList |
| DtString | myTag |
| objHandle | myId |
| DtTime | myTime |
| DtTimeStampType | myTimeType |
| bool | myCustomTagSet |
| DtDDMRegion * | myRegion |
Static Protected Attributes | |
| static bool | theTagIsAsciiTime |
class DtStateMsg:
Instances of DtStateMsg are used to represent state data communicated via the network in an HLA (as opposed to DIS) environment.
| DtStateMsg::DtStateMsg | ( | objHandle | id, |
| const HandleValueMap & | attrs | ||
| ) |
constructor
| DtStateMsg::DtStateMsg | ( | objHandle | id, |
| HandleValueMap * | attrs | ||
| ) |
constructor
|
virtual |
destructor
| DtStateMsg::DtStateMsg | ( | const DtStateMsg & | orig | ) |
copy constructor
|
virtual |
Get whether a custom tag has been set on the interaction or not.
Since timestamp only represents number of seconds past the hour, guessTimeValid chooses the hour that would make the timestamp closest to reference time, and returns a time that is timestamp seconds past that hour.
|
inlinevirtual |
Get the attribute handle value pair set. (Const version)
References myAvList.
|
inlinevirtual |
Get the attribute handle value pair set. (Non-const version)
References myAvList.
| DtStateMsg& DtStateMsg::operator= | ( | const DtStateMsg & | orig | ) |
assignment operator
|
virtual |
Prints the header and attributes with values.
|
virtual |
Uses the object to print host representation of data.
|
virtual |
Print the attributes (with hex values if withHex is 1).
|
virtual |
Print the attributes to a stream.
|
virtual |
Prints the header information.
|
virtual |
Prints the header information to a stream.
|
virtual |
Prints the header and attributes with values to a stream.
|
virtual |
Get & Set the region of the reflected state message.
|
virtual |
|
virtual |
|
virtual |
Set/Get the user-defined tag.
|
static |
Set/Get flag that tells us whether we're using the RPR FOM convention that the UserDefinedTag in updates and interactions represents a DIS-style timestamp.
|
virtual |
Set the time of validity of the message, and whether this represents relative or absolute time.
Time is in seconds, but only time modulo an hour is stored.
|
virtual |
|
static |
|
virtual |
Return the time of validity of the message (in seconds past an hour) as set by setTimeStamp.
|
virtual |
Return the type of the time stamp.
|
protected |
Referenced by handleMap().
|
protected |
|
protected |
Referenced by objectId().
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |