![]() |
VR-Link API Documentation for HLA 1516
|
An instance of this class manages the list of "IFF" objects that are simulated remotely, and reflected to us by the RTI. More...
Inheritance diagram for DtReflectedIffList:
Collaboration diagram for DtReflectedIffList:Public Member Functions | |
| DtReflectedIffList (DtExerciseConn *exConn, const DtDDMRegionSet *regionSetToUse=0, const DtString &updateRateTag=DtString("")) | |
| Constructor. | |
| DtReflectedIffList (DtExerciseConn *exConn, const DtList *handleList, const DtDDMRegionSet *regionSetToUse=0, const DtString &updateRateTag=DtString("")) | |
| Constructor - only subscribe to the RTI::ObjectClassHandles in handleList. | |
| virtual | ~DtReflectedIffList () |
| destructor | |
| virtual DtReflectedIff * | lookup (RTI::ObjectInstanceHandle id) |
| Look up object by identifier. | |
| virtual DtReflectedIff * | lookup (const DtGlobalObjectDesignator &objName) |
| Look up object by name (global object designator). | |
| virtual DtReflectedIff * | first () const |
| Get the first/last object in the list. | |
| virtual DtReflectedIff * | last () const |
| virtual void | addIffAdditionCallback (DtIffCallbackFunction cb, void *userData) |
| Registration/deregistration of object addition callbacks. | |
| virtual void | removeIffAdditionCallback (DtIffCallbackFunction cb, void *userData) |
| virtual void | addIffRemovalCallback (DtIffCallbackFunction cb, void *userData) |
| Registration/deregistration of object removal callbacks. | |
| virtual void | removeIffRemovalCallback (DtIffCallbackFunction cb, void *userData) |
Protected Member Functions | |
| DtReflectedIffList (const DtReflectedIffList &orig) | |
| copy constructor | |
| DtReflectedIffList & | operator= (const DtReflectedIffList &orig) |
| assignment operator | |
| virtual const DtList * | dfltHandleList () |
| Asks the FOM Mapper for the DtList of RTI::ObjectClassHandles to use. | |
| virtual void | objectAdded (DtReflectedObject *obj) |
| Called from processDiscoverObject() after a remote transmitter has been added to the list. | |
| virtual void | iffAdded (DtReflectedIff *ent) |
| Called by objectAdded (which is called from processDiscoverObject()) after a remote entity has been added to the list. | |
| virtual DtReflectedObject * | newReflectedObject (DtHlaObject *obj) const |
| Override of virtual function that the base class uses to create the appropriate kind of DtReflectedObject. | |
| virtual DtReflectedObject * | newReflectedIff (DtHlaObject *obj) const |
| Override of virtual function that the base class uses to create the appropriate kind of DtReflectedObject. | |
| virtual void | removeAndDelete (DtReflectedObject *object, char *msg) |
| Virtual function override. | |
| virtual void | removeAndDelete (DtReflectedIff *entity, char *msg=NULL) |
| Default calls down to base class version, but can be overridden. | |
An instance of this class manages the list of "IFF" objects that are simulated remotely, and reflected to us by the RTI.
This class is derived from DtReflectedObjectList, which does most of the work. The derived class mostly exists to provide type safety, and to let the base class know which FOM classes should be managed by this list.
| DtReflectedIffList::DtReflectedIffList | ( | DtExerciseConn * | exConn, |
| const DtDDMRegionSet * | regionSetToUse = 0, |
||
| const DtString & | updateRateTag = DtString("") |
||
| ) |
Constructor.
| DtReflectedIffList::DtReflectedIffList | ( | DtExerciseConn * | exConn, |
| const DtList * | handleList, | ||
| const DtDDMRegionSet * | regionSetToUse = 0, |
||
| const DtString & | updateRateTag = DtString("") |
||
| ) |
Constructor - only subscribe to the RTI::ObjectClassHandles in handleList.
| virtual DtReflectedIffList::~DtReflectedIffList | ( | ) | [virtual] |
destructor
| DtReflectedIffList::DtReflectedIffList | ( | const DtReflectedIffList & | orig | ) | [protected] |
copy constructor
| virtual void DtReflectedIffList::addIffAdditionCallback | ( | DtIffCallbackFunction | cb, |
| void * | userData | ||
| ) | [virtual] |
Registration/deregistration of object addition callbacks.
| virtual void DtReflectedIffList::addIffRemovalCallback | ( | DtIffCallbackFunction | cb, |
| void * | userData | ||
| ) | [virtual] |
Registration/deregistration of object removal callbacks.
| virtual const DtList* DtReflectedIffList::dfltHandleList | ( | ) | [protected, virtual] |
Asks the FOM Mapper for the DtList of RTI::ObjectClassHandles to use.
| virtual DtReflectedIff* DtReflectedIffList::first | ( | ) | const [virtual] |
Get the first/last object in the list.
| virtual void DtReflectedIffList::iffAdded | ( | DtReflectedIff * | ent | ) | [protected, virtual] |
Called by objectAdded (which is called from processDiscoverObject()) after a remote entity has been added to the list.
Default implementation prints a message. Subclasses can override this function to add functionality on addition.
| virtual DtReflectedIff* DtReflectedIffList::last | ( | ) | const [virtual] |
| virtual DtReflectedIff* DtReflectedIffList::lookup | ( | RTI::ObjectInstanceHandle | id | ) | [virtual] |
Look up object by identifier.
| virtual DtReflectedIff* DtReflectedIffList::lookup | ( | const DtGlobalObjectDesignator & | objName | ) | [virtual] |
Look up object by name (global object designator).
| virtual DtReflectedObject* DtReflectedIffList::newReflectedIff | ( | DtHlaObject * | obj | ) | const [protected, virtual] |
Override of virtual function that the base class uses to create the appropriate kind of DtReflectedObject.
Here, we create a DtReflectedIff.
| virtual DtReflectedObject* DtReflectedIffList::newReflectedObject | ( | DtHlaObject * | obj | ) | const [protected, virtual] |
Override of virtual function that the base class uses to create the appropriate kind of DtReflectedObject.
Here, we create a DtReflectedIff.
Implements DtReflectedObjectList.
| virtual void DtReflectedIffList::objectAdded | ( | DtReflectedObject * | obj | ) | [protected, virtual] |
Called from processDiscoverObject() after a remote transmitter has been added to the list.
Calls iffAdded.
Reimplemented from DtReflectedObjectList.
| DtReflectedIffList& DtReflectedIffList::operator= | ( | const DtReflectedIffList & | orig | ) | [protected] |
assignment operator
| virtual void DtReflectedIffList::removeAndDelete | ( | DtReflectedObject * | object, |
| char * | msg | ||
| ) | [protected, virtual] |
Virtual function override.
Calls removeAndDelete(DtReflectedEntity*....)
Reimplemented from DtReflectedObjectList.
| virtual void DtReflectedIffList::removeAndDelete | ( | DtReflectedIff * | entity, |
| char * | msg = NULL |
||
| ) | [protected, virtual] |
Default calls down to base class version, but can be overridden.
| virtual void DtReflectedIffList::removeIffAdditionCallback | ( | DtIffCallbackFunction | cb, |
| void * | userData | ||
| ) | [virtual] |
| virtual void DtReflectedIffList::removeIffRemovalCallback | ( | DtIffCallbackFunction | cb, |
| void * | userData | ||
| ) | [virtual] |