VR-Link API Documentation for DIS
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtStateRepository Class Reference

DtStateRepository is an abstract base class for maintaining state for an object. More...

+ Inheritance diagram for DtStateRepository:
+ Collaboration diagram for DtStateRepository:

Public Member Functions

virtual ~DtStateRepository ()
 destructor
DtStateRepositoryoperator= (const DtStateRepository &orig)
 assignment operator
virtual DtStateRepositoryclone (bool copy=false) const =0
 Return a copy/empty object of the same type as this.
virtual void printData () const =0
 Print State Data to the DtInfo Stream.
virtual void printDataToStream (std::ostream &stream) const
 Prints the State Data to the stream specified.
virtual void setGlobalId (const DtGlobalObjectDesignator &id)
 Get/Set global identifier, or name.
virtual const
DtGlobalObjectDesignator
globalId () const

Protected Member Functions

 DtStateRepository ()
 Constructors are protected since this is an abstract base class.
 DtStateRepository (const DtStateRepository &orig)
 copy constructor

Protected Attributes

DtGlobalObjectDesignator myGlobalId

Detailed Description

DtStateRepository is an abstract base class for maintaining state for an object.

Instances of DtStateRepository subclasses are used to store state for specific object types, such as vehicles or lifeforms.

Constructor & Destructor Documentation

virtual DtStateRepository::~DtStateRepository ( )
virtual

destructor

DtStateRepository::DtStateRepository ( )
protected

Constructors are protected since this is an abstract base class.

default constructor

DtStateRepository::DtStateRepository ( const DtStateRepository orig)
protected

copy constructor

Member Function Documentation

virtual DtStateRepository* DtStateRepository::clone ( bool  copy = false) const
pure virtual
virtual const DtGlobalObjectDesignator& DtStateRepository::globalId ( ) const
virtual
DtStateRepository& DtStateRepository::operator= ( const DtStateRepository orig)

assignment operator

virtual void DtStateRepository::printData ( ) const
pure virtual
virtual void DtStateRepository::printDataToStream ( std::ostream &  stream) const
virtual
virtual void DtStateRepository::setGlobalId ( const DtGlobalObjectDesignator id)
virtual

Get/Set global identifier, or name.

Set by VR-Link for reflected objects. Not necessary to set for local objects.

Member Data Documentation

DtGlobalObjectDesignator DtStateRepository::myGlobalId
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)