![]() |
VR-Link API Documentation for DIS
|
Instances of this class provide a protocol independent interface to a list of reflected emitters in a DIS environment. More...
Inheritance diagram for DtReflectedIffList:
Collaboration diagram for DtReflectedIffList:Public Member Functions | |
| DtReflectedIffList (DtExerciseConn *exConn) | |
| Constructor. | |
| virtual | ~DtReflectedIffList () |
| Destructor. | |
| virtual DtReflectedIff * | lookup (const DtGlobalObjectDesignator &emittingEntity, DtU16 systemType, DtU16 systemName, DtU8 systemDesignator) const |
| Lookup an emitter from its object ID. | |
| virtual DtReflectedIff * | lookup (const DtGlobalObjectDesignator &emittingEntity) const |
| Lookup the first emitter from it's object ID. | |
| virtual DtReflectedIff * | first () const |
| Get the first and last elements of the IFF list. | |
| virtual DtReflectedIff * | last () const |
| virtual void | addIffAdditionCallback (DtIffCallbackFunction cb, void *userData) |
| Emitter added callback registration/deregistration. | |
| virtual void | removeIffAdditionCallback (DtIffCallbackFunction cb, void *userData) |
| virtual void | addEmitterAdditionCallback (DtIffCallbackFunction cb, void *userData) |
| DEPRECATED, USE addIffAdditionCallback. | |
| virtual void | removeEmitterAdditionCallback (DtIffCallbackFunction cb, void *userData) |
| DEPRECATED, USE removeIffAdditionCallbac. | |
| virtual void | addIffRemovalCallback (DtIffCallbackFunction cb, void *userData) |
| Emitter removed callback registration/deregistration. | |
| virtual void | removeIffRemovalCallback (DtIffCallbackFunction cb, void *userData) |
| virtual void | addEmitterRemovalCallback (DtIffCallbackFunction cb, void *userData) |
| DEPRECATED, use addIffRemovalCallback. | |
| virtual void | removeEmitterRemovalCallback (DtIffCallbackFunction cb, void *userData) |
| DEPRECATED, use removeIffRemovalCallback. | |
| virtual void | print () |
| Print the SRs of all objects. | |
Public Member Functions inherited from DtReflectedObjectList | |
| DtReflectedObjectList (DtExerciseConn *exConn) | |
| Constructor. | |
| virtual | ~DtReflectedObjectList () |
| destructor Warning: makes non-virtual call to removeAndDelete | |
| virtual void | initializeAttributePduKindsOfInterest (const std::set< DtPduKind > &pduKinds) |
| This initializes which PDU kinds will be processed when receiving an Attribute PDU. | |
| virtual DtReflectedObject * | firstObj () const |
| Get the first/last object in the list. | |
| virtual DtReflectedObject * | lastObj () const |
| virtual int | count () const |
| Get number of objects. | |
| virtual DtReflectedObject * | lookupObj (const DtBaseHashKey &key) const |
| Search for an object. | |
| virtual DtExerciseConn * | exerciseConn () const |
| Get my exerciseConn. | |
| virtual void | addObjectAdditionCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| Object added callback registration/deregistration. | |
| virtual void | removeObjectAdditionCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| virtual void | addObjectRemovalCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| Object removed callback registration/deregistration. | |
| virtual void | removeObjectRemovalCallback (DtReflectedObjectCallbackFunction cb, void *userData) |
| virtual void | print () const |
| Print the SRs of all objects. | |
| virtual void | setTimeoutProcessing (bool onOff) |
| Set whether or not timeout processing occurs. | |
| virtual void | setTimeoutInterval (DtTime time) |
| Set/Get the remote object timeout period. | |
| virtual DtTime | timeoutInterval () |
| virtual void | setDiscoveryCondition (DtDiscoveryCondition fn, void *usr) |
| Set the checker function which will determine when an object gets discovered and put into the ref. | |
| virtual void | clearDiscoveryCondition () |
| Unregisters the checker function set in setDiscoverCondition. | |
| virtual void | removeObject (DtReflectedObject *obj) |
| This is the same as removeAndDelete, it exists to maintain equality with HLA objects. | |
Protected Member Functions | |
| DtReflectedIffList & | operator= (const DtReflectedIffList &orig) |
| Assignment operator – not implemented. | |
| DtReflectedIffList (const DtReflectedIffList &orig) | |
| Copy constructor – not implemented. | |
| virtual DtReflectedIff * | newReflectedIff (const DtGlobalObjectDesignator &emittingEntity, DtU16 systemType, DtU16 systemName, DtU8 systemDesignator) |
| Create a new object from a global designator. | |
| virtual DtReflectedObject * | newReflectedObj (const DtStateMsg &msg) |
| Overrides base class's implementation. Always returns NULL. | |
| virtual DtReflectedObject * | processStateMessage (const DtStateMsg &msg) |
| Process an incoming state message. | |
| virtual void | objectAdded (DtReflectedObject *obj) |
| Called after an entity is added and before addition callbacks are processed. | |
| virtual const DtBaseHashKey & | hashKeyFromStateMessage (const DtStateMsg *msg) |
| Get a hash key from a state message. | |
| virtual void | removeAndDelete (DtReflectedObject *obj, char *msg=NULL) |
| Remove the remote object from the list if found and delete it. | |
Protected Member Functions inherited from DtReflectedObjectList | |
| virtual void | doTimeouts () |
| Remove any remote objects which have not been updated during the timeout period. | |
| virtual bool | shouldBeTimedOut (DtReflectedObject *object) |
| Returns whether or not the object should be timed out. | |
| void | emptyLists () |
| Empty the object list and the timeout list. | |
| void | emptyCallbackLists () |
| virtual void | processObjectAdditionCallbacks (DtReflectedObject *object) |
| Process object addition/removal callbacks. | |
| virtual void | processObjectRemovalCallbacks (DtReflectedObject *object) |
| virtual DtBaseHashKey * | hashKeyFromAttributeRecordSet (const DtAttributeRecordSet &recordSet) |
| Get a hash key from an attribute record set. | |
| virtual int | acceptPdu (const DtStateMsg &) const |
| Determines if a PDU should be processed or not. | |
| virtual bool | readyToAdd (DtReflectedObject *obj) |
| Returns true if the obj is ready to be added to myObjectList; calls myDiscoveryCondition from within. | |
| virtual void | processAttributePduCb (DtAttributeInteraction *inter) |
Static Protected Member Functions | |
| static void | emIffCb (DtIffAtcNavaidsPdu *pdu, void *usr) |
| Callback for the exercise connection. | |
Static Protected Member Functions inherited from DtReflectedObjectList | |
| static void | doTimeoutsPostDrainCb (void *usr) |
| Calls doTimeouts. | |
| static void | processAttributePduCb (DtAttributeInteraction *inter, void *usr) |
Protected Attributes | |
| DtIFFSystemHashKey * | myHashKey |
| std::map< const DtGlobalObjectDesignator, std::list< DtIFFSystemHashKey > > | myIffHashMap |
Protected Attributes inherited from DtReflectedObjectList | |
| DtExerciseConn * | myExConn |
| DtIntrusiveList | myObjectAddedCallbacks |
| DtIntrusiveList | myObjectRemovedCallbacks |
| DtIntrusiveList | myObjectList |
| DtIntrusiveList | myWaitList |
| DtHashlist | myObjectHashlist |
| DtHashlist | myWaitHashlist |
| DtTime | myTimeoutInterval |
| bool | myTimeoutProcessingFlag |
| DtDiscoveryCondition | myDiscoveryCondition |
| void * | myDiscoveryConditionParameter |
| std::set< DtPduKind > | myPduKindSet |
Instances of this class provide a protocol independent interface to a list of reflected emitters in a DIS environment.
| DtReflectedIffList::DtReflectedIffList | ( | DtExerciseConn * | exConn | ) |
Constructor.
|
virtual |
Destructor.
|
protected |
Copy constructor – not implemented.
|
virtual |
DEPRECATED, USE addIffAdditionCallback.
|
virtual |
DEPRECATED, use addIffRemovalCallback.
|
virtual |
Emitter added callback registration/deregistration.
|
virtual |
Emitter removed callback registration/deregistration.
|
staticprotected |
Callback for the exercise connection.
|
virtual |
Get the first and last elements of the IFF list.
|
protectedvirtual |
Get a hash key from a state message.
Implements DtReflectedObjectList.
|
virtual |
|
virtual |
Lookup an emitter from its object ID.
|
virtual |
Lookup the first emitter from it's object ID.
useful if you know there is only one emitter.
|
protectedvirtual |
Create a new object from a global designator.
|
protectedvirtual |
Overrides base class's implementation. Always returns NULL.
Implements DtReflectedObjectList.
|
protectedvirtual |
Called after an entity is added and before addition callbacks are processed.
Right now, this function only calls DtInfo.
Reimplemented from DtReflectedObjectList.
|
protected |
Assignment operator – not implemented.
|
virtual |
Print the SRs of all objects.
|
protectedvirtual |
Process an incoming state message.
Reimplemented from DtReflectedObjectList.
|
protectedvirtual |
Remove the remote object from the list if found and delete it.
Prints a message on deletion if specified.
Reimplemented from DtReflectedObjectList.
|
virtual |
DEPRECATED, USE removeIffAdditionCallbac.
|
virtual |
DEPRECATED, use removeIffRemovalCallback.
|
virtual |
|
virtual |
|
protected |
|
protected |