![]() |
VR-Link API Documentation for HLA Evolved
|
class DtStateMsg: More...
Collaboration diagram for DtStateMsg:Public Member Functions | |
| DtStateMsg (objHandle id, const HandleValueMap &attrs) | |
| constructor More... | |
| DtStateMsg (objHandle id, HandleValueMap *attrs) | |
| constructor More... | |
| virtual | ~DtStateMsg () |
| destructor More... | |
| DtStateMsg (const DtStateMsg &orig) | |
| copy constructor More... | |
| DtStateMsg & | operator= (const DtStateMsg &orig) |
| assignment operator More... | |
| virtual objHandle | objectId () const |
| Get the object identifier. More... | |
| virtual const HandleValueMap & | handleMap () const |
| Get the attribute handle value pair set. (Const version) More... | |
| virtual HandleValueMap * | handleMap () |
| Get the attribute handle value pair set. (Non-const version) More... | |
| virtual void | setTag (const DtString &tag) |
| Set/Get the user-defined tag. More... | |
| 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. More... | |
| virtual void | print (DtExerciseConn *exConn, RTI::ObjectClassHandle h) const |
| Prints the header and attributes with values. More... | |
| virtual void | printToStream (std::ostream &stream, DtExerciseConn *exConn, RTI::ObjectClassHandle h) const |
| Prints the header and attributes with values to a stream. More... | |
| virtual void | printHeader (DtExerciseConn *exConn, RTI::ObjectClassHandle classHandle) const |
| Prints the header information. More... | |
| virtual void | printHeaderToStream (std::ostream &stream, DtExerciseConn *exConn, RTI::ObjectClassHandle classHandle) const |
| Prints the header information to a stream. More... | |
| virtual void | printAttrs (DtExerciseConn *exConn, RTI::ObjectClassHandle classHandle, int withHex) const |
| Print the attributes (with hex values if withHex is 1). More... | |
| virtual void | printAttrsToStream (std::ostream &stream, DtExerciseConn *exConn, RTI::ObjectClassHandle classHandle, int withHex) const |
| Print the attributes to a stream. More... | |
| virtual void | print (DtHlaObject *obj, bool fullReport=true) const |
| Uses the object to print host representation of data. More... | |
| virtual void | setTimeStamp (DtTime time, DtTimeStampType type=DtTimeStampRelative) |
| Set the time of validity of the message, and whether this represents relative or absolute time. More... | |
| virtual DtTime | timeStamp () const |
| Return the time of validity of the message (in seconds past an hour) as set by setTimeStamp. More... | |
| virtual DtTimeStampType | timeStampType () const |
| Return the type of the time stamp. More... | |
| 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. More... | |
| virtual const RTI::Region * | conveyedRegion () const |
| Get & Set the conveyed region of the received interaction message. More... | |
| virtual void | setConveyedRegion (const RTI::Region *region) |
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. More... | |
| static bool | tagIsAsciiTime () |
Protected Attributes | |
| HandleValueMap * | myAvList |
| DtString | myTag |
| objHandle | myId |
| const RTI::Region * | myConveyedRegion |
| DtTime | myTime |
| DtTimeStampType | myTimeType |
| bool | myCustomTagSet |
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 & Set the conveyed region of the received interaction message.
The region is only valid during the processing of the reflect callback. If the region information is needed after the callback it must be copied. If the region is NULL, there was not a conveyed region
|
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 |
|
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 |
|
protected |
Referenced by objectId().
|
protected |
|
protected |
|
protected |
|
staticprotected |