VR-Link API Documentation for DIS
Public Member Functions | Protected Member Functions | Protected Attributes
DtDisObjectManager Class Reference

Instances of DtDisObjectManager are used to manage the set of DIS objects known to the federate. More...

+ Collaboration diagram for DtDisObjectManager:

List of all members.

Public Member Functions

 DtDisObjectManager ()
 constructor
 ~DtDisObjectManager ()
 destructor
virtual const DtListlocalObjects () const
 Get the list of all DIS objects local to the federate.
virtual const DtListremoteObjects () const
 Get the list of all DIS objects discovered by the federate.
virtual void addLocalObject (DtEntityIdentifier &id, DtEntityPublisher *pPub)
 Add local object to local objects list.
virtual void removeLocalObject (DtEntityIdentifier &id)
 Remove local object to local objects list.
virtual void addRemoteObject (DtEntityIdentifier &id, DtReflectedEntity *pRef)
 Add remote object to remote objects list.
virtual void removeRemoteObject (DtEntityIdentifier &id)
 Remove remote object to remote objects list.
virtual
DtBaseEntityStateRepository
stateRepOfObject (const DtEntityIdentifier &id)
 This returns the state rep of the object independent of whether it's local or remote.

Protected Member Functions

 DtDisObjectManager (const DtDisObjectManager &orig)
 Note: The copy constructor and assignment operator are protected because there should only be one object manager per exercise connection.
DtDisObjectManageroperator= (const DtDisObjectManager &orig)
 assignment operator -- not implemented

Protected Attributes

DtObjectIdHashlist myLocalObjectList
 The objects in this list are created and deleted somewhere else.
DtObjectIdHashlist myRemoteObjectList
 List of all known remote objects (by id).

Detailed Description

Instances of DtDisObjectManager are used to manage the set of DIS objects known to the federate.


Constructor & Destructor Documentation

constructor

destructor

Note: The copy constructor and assignment operator are protected because there should only be one object manager per exercise connection.

These should not be called. copy constructor -- not implemented


Member Function Documentation

virtual void DtDisObjectManager::addLocalObject ( DtEntityIdentifier id,
DtEntityPublisher pPub 
) [virtual]

Add local object to local objects list.

This is called in the publishers constructor

virtual void DtDisObjectManager::addRemoteObject ( DtEntityIdentifier id,
DtReflectedEntity pRef 
) [virtual]

Add remote object to remote objects list.

This is called in the reflected entity constructor

virtual const DtList* DtDisObjectManager::localObjects ( ) const [virtual]

Get the list of all DIS objects local to the federate.

DtDisObjectManager& DtDisObjectManager::operator= ( const DtDisObjectManager orig) [protected]

assignment operator -- not implemented

virtual const DtList* DtDisObjectManager::remoteObjects ( ) const [virtual]

Get the list of all DIS objects discovered by the federate.

Remove local object to local objects list.

This is called in the publishers destructor.

Remove remote object to remote objects list.

This is called in the reflected entity destructor.

This returns the state rep of the object independent of whether it's local or remote.


Member Data Documentation

The objects in this list are created and deleted somewhere else.

They can be added/removed to/from the lists but should not be deleted. List of all known local objects (by id).

List of all known remote objects (by id).


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)