VR-Link API Documentation for HLA Evolved
Public Member Functions | Protected Member Functions
DtReflectedIffList Class Reference

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:

List of all members.

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 DtReflectedIfflookup (RTI::ObjectHandle id)
 Look up object by identifier.
virtual DtReflectedIfflookup (const DtGlobalObjectDesignator &objName)
 Look up object by name (global object designator).
virtual DtReflectedIfffirst () const
 Get the first/last object in the list.
virtual DtReflectedIfflast () 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
DtReflectedIffListoperator= (const DtReflectedIffList &orig)
 assignment operator
virtual const DtListdfltHandleList ()
 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 DtReflectedObjectnewReflectedObject (DtHlaObject *obj) const
 Override of virtual function that the base class uses to create the appropriate kind of DtReflectedObject.
virtual DtReflectedObjectnewReflectedIff (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.

Detailed Description

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.


Constructor & Destructor Documentation

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.

destructor

copy constructor


Member Function Documentation

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::ObjectHandle  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]

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)