![]() |
VR-Link API Documentation for DIS
|
Instances of DtDisObjectManager are used to manage the set of DIS objects known to the federate. More...
Collaboration diagram for DtDisObjectManager:Public Member Functions | |
| DtDisObjectManager () | |
| constructor | |
| ~DtDisObjectManager () | |
| destructor | |
| virtual const DtList * | localObjects () const |
| Get the list of all DIS objects local to the federate. | |
| virtual const DtList * | remoteObjects () 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. | |
| DtDisObjectManager & | operator= (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). | |
Instances of DtDisObjectManager are used to manage the set of DIS objects known to the federate.
constructor
destructor
| DtDisObjectManager::DtDisObjectManager | ( | const DtDisObjectManager & | orig | ) | [protected] |
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
| 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.
| virtual void DtDisObjectManager::removeLocalObject | ( | DtEntityIdentifier & | id | ) | [virtual] |
Remove local object to local objects list.
This is called in the publishers destructor.
| virtual void DtDisObjectManager::removeRemoteObject | ( | DtEntityIdentifier & | id | ) | [virtual] |
Remove remote object to remote objects list.
This is called in the reflected entity destructor.
| virtual DtBaseEntityStateRepository* DtDisObjectManager::stateRepOfObject | ( | const DtEntityIdentifier & | id | ) | [virtual] |
This returns the state rep of the object independent of whether it's local or remote.
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).