![]() |
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 DtStateMsg::~DtStateMsg | ( | ) | [virtual] |
destructor
| DtStateMsg::DtStateMsg | ( | const DtStateMsg & | orig | ) |
copy constructor
| virtual bool DtStateMsg::customTagSet | ( | ) | const [virtual] |
Get whether a custom tag has been set on the interaction or not.
| virtual DtTime DtStateMsg::guessTimeValid | ( | DtTime | referenceTime | ) | const [virtual] |
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.
| const HandleValueMap & DtStateMsg::handleMap | ( | ) | const [inline, virtual] |
Get the attribute handle value pair set. (Const version)
References myAvList.
| HandleValueMap * DtStateMsg::handleMap | ( | ) | [inline, virtual] |
Get the attribute handle value pair set. (Non-const version)
References myAvList.
| objHandle DtStateMsg::objectId | ( | ) | const [inline, virtual] |
Get the object identifier.
References myId.
| DtStateMsg& DtStateMsg::operator= | ( | const DtStateMsg & | orig | ) |
assignment operator
| virtual void DtStateMsg::print | ( | DtExerciseConn * | exConn, |
| RTI::ObjectClassHandle | h | ||
| ) | const [virtual] |
Prints the header and attributes with values.
| virtual void DtStateMsg::print | ( | DtHlaObject * | obj, |
| bool | fullReport = true |
||
| ) | const [virtual] |
Uses the object to print host representation of data.
| virtual void DtStateMsg::printAttrs | ( | DtExerciseConn * | exConn, |
| RTI::ObjectClassHandle | classHandle, | ||
| int | withHex | ||
| ) | const [virtual] |
Print the attributes (with hex values if withHex is 1).
| virtual void DtStateMsg::printAttrsToStream | ( | std::ostream & | stream, |
| DtExerciseConn * | exConn, | ||
| RTI::ObjectClassHandle | classHandle, | ||
| int | withHex | ||
| ) | const [virtual] |
Print the attributes to a stream.
| virtual void DtStateMsg::printHeader | ( | DtExerciseConn * | exConn, |
| RTI::ObjectClassHandle | classHandle | ||
| ) | const [virtual] |
Prints the header information.
| virtual void DtStateMsg::printHeaderToStream | ( | std::ostream & | stream, |
| DtExerciseConn * | exConn, | ||
| RTI::ObjectClassHandle | classHandle | ||
| ) | const [virtual] |
Prints the header information to a stream.
| virtual void DtStateMsg::printToStream | ( | std::ostream & | stream, |
| DtExerciseConn * | exConn, | ||
| RTI::ObjectClassHandle | h | ||
| ) | const [virtual] |
Prints the header and attributes with values to a stream.
| virtual const DtDDMRegion* DtStateMsg::region | ( | ) | const [virtual] |
Get & Set the region of the reflected state message.
| virtual void DtStateMsg::setCustomTag | ( | const DtString & | tag | ) | [virtual] |
| virtual void DtStateMsg::setRegion | ( | const DtDDMRegion & | region | ) | [virtual] |
| virtual void DtStateMsg::setTag | ( | const DtString & | tag | ) | [virtual] |
Set/Get the user-defined tag.
| static void DtStateMsg::setTagIsAsciiTime | ( | bool | val | ) | [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 void DtStateMsg::setTimeStamp | ( | DtTime | time, |
| DtTimeStampType | type = DtTimeStampRelative |
||
| ) | [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 const DtString& DtStateMsg::tag | ( | ) | const [virtual] |
| static bool DtStateMsg::tagIsAsciiTime | ( | ) | [static] |
| virtual DtTime DtStateMsg::timeStamp | ( | ) | const [virtual] |
Return the time of validity of the message (in seconds past an hour) as set by setTimeStamp.
| virtual DtTimeStampType DtStateMsg::timeStampType | ( | ) | const [virtual] |
Return the type of the time stamp.
HandleValueMap* DtStateMsg::myAvList [protected] |
Referenced by handleMap().
bool DtStateMsg::myCustomTagSet [protected] |
objHandle DtStateMsg::myId [protected] |
Referenced by objectId().
DtDDMRegion* DtStateMsg::myRegion [protected] |
DtString DtStateMsg::myTag [protected] |
DtTime DtStateMsg::myTime [protected] |
DtTimeStampType DtStateMsg::myTimeType [protected] |
bool DtStateMsg::theTagIsAsciiTime [static, protected] |