VR-Link API Documentation for HLA 1.3
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
DtGenericStateRepository Class Reference

Instances of DtGenericStateRepository are repositories for the state of an HLA object of unknown type. More...

+ Inheritance diagram for DtGenericStateRepository:
+ Collaboration diagram for DtGenericStateRepository:

Public Member Functions

 DtGenericStateRepository ()
 default constructor
virtual ~DtGenericStateRepository ()
 destructor
 DtGenericStateRepository (const DtGenericStateRepository &orig)
 copy constructor
DtGenericStateRepositoryoperator= (const DtGenericStateRepository &orig)
 assignment operator
virtual void setValue (RTI::AttributeHandle handle, const void *buffer, int size)
 Sets the value of an attribute by handle.
virtual void * value (RTI::AttributeHandle handle) const
 Returns the value of the attribute associated with handle, or NULL if none exists.
virtual int valueLength (RTI::AttributeHandle handle) const
 Returns the length of the value of the attribute associated with handle, or - if none exists.
virtual DtStateRepositoryclone (bool copy=false) const
 Return a copy/empty object of the same type as this.
virtual void printData () const
 Print the state data.
virtual void printDataToStream (std::ostream &stream) const
 Print the state data to the specified stream.
RTI::AttributeHandleValuePairSet *& attrs ()
 Returns the Attributes Map/Set.
- Public Member Functions inherited from DtStateRepository
virtual ~DtStateRepository ()
 destructor
DtStateRepositoryoperator= (const DtStateRepository &orig)
 assignment operator
virtual void setGlobalId (const DtGlobalObjectDesignator &id)
 Get/Set global identifier, or name.
virtual const
DtGlobalObjectDesignator
globalId () const
virtual void setLocalId (const DtObjectId &id)
 Get/Set local identifier, or handle.
virtual const DtObjectIdlocalId () const

Static Public Member Functions

static DtStateRepositorycreate ()

Protected Attributes

RTI::AttributeHandleValuePairSet * myAttrs
- Protected Attributes inherited from DtStateRepository
DtGlobalObjectDesignator myGlobalId
DtObjectId myLocalId

Additional Inherited Members

- Protected Member Functions inherited from DtStateRepository
 DtStateRepository ()
 Constructors are protected since this is an abstract base class.
 DtStateRepository (const DtStateRepository &orig)
 copy constructor

Detailed Description

Instances of DtGenericStateRepository are repositories for the state of an HLA object of unknown type.

State is represented exactly the same way as in the FOM.

Constructor & Destructor Documentation

DtGenericStateRepository::DtGenericStateRepository ( )

default constructor

virtual DtGenericStateRepository::~DtGenericStateRepository ( )
virtual

destructor

DtGenericStateRepository::DtGenericStateRepository ( const DtGenericStateRepository orig)

copy constructor

Member Function Documentation

RTI::AttributeHandleValuePairSet*& DtGenericStateRepository::attrs ( )

Returns the Attributes Map/Set.

virtual DtStateRepository* DtGenericStateRepository::clone ( bool  copy = false) const
virtual

Return a copy/empty object of the same type as this.

Implements DtStateRepository.

static DtStateRepository* DtGenericStateRepository::create ( )
static
DtGenericStateRepository& DtGenericStateRepository::operator= ( const DtGenericStateRepository orig)

assignment operator

virtual void DtGenericStateRepository::printData ( ) const
virtual

Print the state data.

Implements DtStateRepository.

virtual void DtGenericStateRepository::printDataToStream ( std::ostream &  stream) const
virtual

Print the state data to the specified stream.

Reimplemented from DtStateRepository.

virtual void DtGenericStateRepository::setValue ( RTI::AttributeHandle  handle,
const void *  buffer,
int  size 
)
virtual

Sets the value of an attribute by handle.

virtual void* DtGenericStateRepository::value ( RTI::AttributeHandle  handle) const
virtual

Returns the value of the attribute associated with handle, or NULL if none exists.

virtual int DtGenericStateRepository::valueLength ( RTI::AttributeHandle  handle) const
virtual

Returns the length of the value of the attribute associated with handle, or - if none exists.

Member Data Documentation

RTI::AttributeHandleValuePairSet* DtGenericStateRepository::myAttrs
protected

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

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)