VR-Link API Documentation for HLA 1516
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes
DtStateMsg Class Reference

class DtStateMsg: More...

+ Collaboration diagram for DtStateMsg:

List of all members.

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
DtStateMsgoperator= (const DtStateMsg &orig)
 assignment operator
virtual objHandle objectId () const
 Get the object identifier.
virtual const HandleValueMaphandleMap () const
 Get the attribute handle value pair set. (Const version)
virtual HandleValueMaphandleMap ()
 Get the attribute handle value pair set. (Non-const version)
virtual void setTag (const RTI::VariableLengthData &tag)
 Set/Get the user-defined tag.
virtual void setCustomTag (const RTI::VariableLengthData &tag)
virtual const
RTI::VariableLengthData & 
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 std::set
< DtDDMRegion > * 
region () const
 Get & Set the region of the reflected state message.
virtual void setRegion (const std::set< DtDDMRegion > &regions)

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

HandleValueMapmyAvList
objHandle myId
RTI::VariableLengthData myTag
DtTime myTime
DtTimeStampType myTimeType
bool myCustomTagSet
std::set< DtDDMRegion > * myRegion

Static Protected Attributes

static bool theTagIsAsciiTime

Detailed Description

class DtStateMsg:

Instances of DtStateMsg are used to represent state data communicated via the network in an HLA (as opposed to DIS) environment.


Constructor & Destructor Documentation

DtStateMsg::DtStateMsg ( objHandle  id,
const HandleValueMap attrs 
)

constructor

constructor

virtual DtStateMsg::~DtStateMsg ( ) [virtual]

destructor

copy constructor


Member Function Documentation

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 std::set<DtDDMRegion>* DtStateMsg::region ( ) const [virtual]

Get & Set the region of the reflected state message.

virtual void DtStateMsg::setCustomTag ( const RTI::VariableLengthData &  tag) [virtual]
virtual void DtStateMsg::setRegion ( const std::set< DtDDMRegion > &  regions) [virtual]
virtual void DtStateMsg::setTag ( const RTI::VariableLengthData &  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 RTI::VariableLengthData& 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.


Member Data Documentation

Referenced by handleMap().

bool DtStateMsg::myCustomTagSet [protected]

Referenced by objectId().

std::set<DtDDMRegion>* DtStateMsg::myRegion [protected]
RTI::VariableLengthData DtStateMsg::myTag [protected]
bool DtStateMsg::theTagIsAsciiTime [static, protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)