MAK Data Logger API Documentation for DIS
List of all members | Signals | Public Member Functions | Protected Member Functions | Protected Attributes
DtObjectHistory Class Reference
+ Inheritance diagram for DtObjectHistory:
+ Collaboration diagram for DtObjectHistory:

Signals

void updatedObjectHistory (DtObjectHistory *)
 Emits whenever this history is updated.

Public Member Functions

 DtObjectHistory (const char *name, RTI::ObjectClassHandle classHandle, DtHlaObject *obj, DtDatatypeManager &dm)
 Constructor.
virtual ~DtObjectHistory ()
 Destructor.
virtual const char * objectName () const
 Get the object name.
virtual RTI::ObjectClassHandle objectClassHandle () const
 Get the object class handle.
virtual DtHlaObject * hlaObject ()
 Get the HLA object.
virtual DtAttributeHistorygetAttribute (RTI::AttributeHandle handle)
 Get the attribute history for the given attribute.
virtual DtStringTreecreateStringTree (RTI::AttributeHandle handle, const DtDatatypeFedNode *omtNode)
 Create a string tree for the given attribute handle.
virtual void updateAttributes (const DtStateMsg &msg)
 Update the object history with the updates from the given update message.
virtual void updateAttributes (DtGenericStateRepository &stateRep)
 Update the entire object history with the given state repository.
virtual const std::set
< RTI::AttributeHandle > & 
updatedAttributes () const
 Get an attribute handle set of the updated attribute.
virtual void forceUpdate ()
 Make known attributes dirty and emit as if updated.

Protected Member Functions

virtual void setAttribute (RTI::AttributeHandle handle, const void *buffer, int length)
 Set the attribute history for the given attribute Note: This function takes ownership of the Attribute Repository.
virtual void setAttributes (const HandleValueMap &attrValues)
 Set the attribute for each attribute value in the given value set.

Protected Attributes

DtDatatypeManagermyDatatypeManager
DtString myObjectName
RTI::ObjectClassHandle myClassHandle
DtHlaObject * myObject
std::map< RTI::AttributeHandle,
DtAttributeHistory * > 
myAttributes
std::set< RTI::AttributeHandle > myUpdatedAttributes

Constructor & Destructor Documentation

DtObjectHistory::DtObjectHistory ( const char *  name,
RTI::ObjectClassHandle  classHandle,
DtHlaObject *  obj,
DtDatatypeManager dm 
)

Constructor.

virtual DtObjectHistory::~DtObjectHistory ( )
virtual

Destructor.

Member Function Documentation

virtual DtStringTree* DtObjectHistory::createStringTree ( RTI::AttributeHandle  handle,
const DtDatatypeFedNode omtNode 
)
virtual

Create a string tree for the given attribute handle.

virtual void DtObjectHistory::forceUpdate ( )
virtual

Make known attributes dirty and emit as if updated.

virtual DtAttributeHistory* DtObjectHistory::getAttribute ( RTI::AttributeHandle  handle)
virtual

Get the attribute history for the given attribute.

virtual DtHlaObject* DtObjectHistory::hlaObject ( )
virtual

Get the HLA object.

virtual RTI::ObjectClassHandle DtObjectHistory::objectClassHandle ( ) const
virtual

Get the object class handle.

virtual const char* DtObjectHistory::objectName ( ) const
virtual

Get the object name.

virtual void DtObjectHistory::setAttribute ( RTI::AttributeHandle  handle,
const void *  buffer,
int  length 
)
protectedvirtual

Set the attribute history for the given attribute Note: This function takes ownership of the Attribute Repository.

virtual void DtObjectHistory::setAttributes ( const HandleValueMap &  attrValues)
protectedvirtual

Set the attribute for each attribute value in the given value set.

virtual void DtObjectHistory::updateAttributes ( const DtStateMsg &  msg)
virtual

Update the object history with the updates from the given update message.

virtual void DtObjectHistory::updateAttributes ( DtGenericStateRepository &  stateRep)
virtual

Update the entire object history with the given state repository.

virtual const std::set<RTI::AttributeHandle>& DtObjectHistory::updatedAttributes ( ) const
virtual

Get an attribute handle set of the updated attribute.

void DtObjectHistory::updatedObjectHistory ( DtObjectHistory )
signal

Emits whenever this history is updated.

Member Data Documentation

std::map<RTI::AttributeHandle, DtAttributeHistory*> DtObjectHistory::myAttributes
protected
RTI::ObjectClassHandle DtObjectHistory::myClassHandle
protected
DtDatatypeManager& DtObjectHistory::myDatatypeManager
protected
DtHlaObject* DtObjectHistory::myObject
protected
DtString DtObjectHistory::myObjectName
protected
std::set<RTI::AttributeHandle> DtObjectHistory::myUpdatedAttributes
protected

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

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)