VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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:

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

DtDisObjectManager::DtDisObjectManager ( )

constructor

DtDisObjectManager::~DtDisObjectManager ( )

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

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.

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.

Member Data Documentation

DtObjectIdHashlist DtDisObjectManager::myLocalObjectList
protected

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

DtObjectIdHashlist DtDisObjectManager::myRemoteObjectList
protected

List of all known remote objects (by id).


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

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)