VR-Link API Documentation for HLA 1.3
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:

List of all members.

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.

Static Public Member Functions

static DtStateRepositorycreate ()

Protected Attributes

RTI::AttributeHandleValuePairSet * myAttrs

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

default constructor

destructor

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.

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 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)