VR-Link API Documentation for DIS
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions
DtReflectedAggregateList Class Reference

Instances of this class provide a protocol independent interface to a list of reflected aggregates in a DIS environment. More...

+ Inheritance diagram for DtReflectedAggregateList:
+ Collaboration diagram for DtReflectedAggregateList:

List of all members.

Public Member Functions

 DtReflectedAggregateList (DtExerciseConn *exConn, bool smoothCapable=false)
 Constructor.
virtual ~DtReflectedAggregateList ()
 Destructor.
virtual DtReflectedAggregate * lookup (const DtObjectId &id) const
 Lookup an aggregate from its object ID.
virtual DtReflectedAggregate * first () const
 Get the first and last elements of the aggregate list.
virtual DtReflectedAggregate * last () const
virtual void addAggregateAdditionCallback (DtAggregateCallbackFunction cb, void *userData)
 Aggregate added callback registration/deregistration.
virtual void removeAggregateAdditionCallback (DtAggregateCallbackFunction cb, void *userData)
virtual void addAggregateRemovalCallback (DtAggregateCallbackFunction cb, void *userData)
 Aggregate removed callback registration/deregistration.
virtual void removeAggregateRemovalCallback (DtAggregateCallbackFunction cb, void *userData)
virtual void print ()
 Print the SRs of all objects.
virtual DtReflectedAggregate * processAggregateState (const DtAggregateStatePdu &pdu)
 Process an incoming aggregate state pdu.
virtual void processRelativeLocationPdu (const DtRelativeLocationPdu &pdu)
 Process an incoming relativeLocation pdu.

Protected Member Functions

virtual DtReflectedObject * newReflectedObj (const DtStateMsg &msg)
 Create a new object from a state message.
virtual DtReflectedObject * processStateMessage (const DtStateMsg &msg)
 Process an incoming state message.
virtual void objectAdded (DtReflectedObject *obj)
 Called after an aggregate is added and before additional callbacks are processed.
virtual const DtBaseHashKey & hashKeyFromStateMessage (const DtStateMsg *msg)
 Get a hash key from a state message.
virtual DtReflectedAggregate * newReflectedAggregate (const DtEntityIdentifier &id, const DtEntityType &type) const
 Create a new reflected aggregate.
virtual void aggregateAdded (DtReflectedAggregate *agg)
 Called after an aggregate is added and before additional callbacks are processed.

Static Protected Member Functions

static void aggregateStateCb (DtAggregateStatePdu *pdu, void *usr)
 Callback for the exercise connection.
static void relativeLocationCb (DtRelativeLocationPdu *pdu, void *usr)
 Callback which calls processRelativeLocationPdu.

Protected Attributes

bool mySmoothCapable
DtEntityIdentifierHashKey * myHashKey

Private Member Functions

DtReflectedAggregateList & operator= (const DtReflectedAggregateList &orig)
 Assignment operator -- not implemented.
 DtReflectedAggregateList (const DtReflectedAggregateList &orig)
 Copy constructor -- not implemented.

Detailed Description

Instances of this class provide a protocol independent interface to a list of reflected aggregates in a DIS environment.


Constructor & Destructor Documentation

DtReflectedAggregateList::DtReflectedAggregateList ( DtExerciseConn *  exConn,
bool  smoothCapable = false 
)

Constructor.

Destructor.

Copy constructor -- not implemented.


Member Function Documentation

virtual void DtReflectedAggregateList::addAggregateAdditionCallback ( DtAggregateCallbackFunction  cb,
void *  userData 
) [virtual]

Aggregate added callback registration/deregistration.

virtual void DtReflectedAggregateList::addAggregateRemovalCallback ( DtAggregateCallbackFunction  cb,
void *  userData 
) [virtual]

Aggregate removed callback registration/deregistration.

virtual void DtReflectedAggregateList::aggregateAdded ( DtReflectedAggregate *  agg) [protected, virtual]

Called after an aggregate is added and before additional callbacks are processed.

Right now, this function only calls DtInfo.

static void DtReflectedAggregateList::aggregateStateCb ( DtAggregateStatePdu *  pdu,
void *  usr 
) [static, protected]

Callback for the exercise connection.

Get the first and last elements of the aggregate list.

virtual const DtBaseHashKey& DtReflectedAggregateList::hashKeyFromStateMessage ( const DtStateMsg *  msg) [protected, virtual]

Get a hash key from a state message.

Implements DtReflectedObjectList.

virtual DtReflectedAggregate* DtReflectedAggregateList::lookup ( const DtObjectId &  id) const [virtual]

Lookup an aggregate from its object ID.

virtual DtReflectedAggregate* DtReflectedAggregateList::newReflectedAggregate ( const DtEntityIdentifier &  id,
const DtEntityType &  type 
) const [protected, virtual]

Create a new reflected aggregate.

virtual DtReflectedObject* DtReflectedAggregateList::newReflectedObj ( const DtStateMsg &  msg) [protected, virtual]

Create a new object from a state message.

Implements DtReflectedObjectList.

virtual void DtReflectedAggregateList::objectAdded ( DtReflectedObject *  obj) [protected, virtual]

Called after an aggregate is added and before additional callbacks are processed.

Right now, this function only calls DtInfo.

Reimplemented from DtReflectedObjectList.

DtReflectedAggregateList& DtReflectedAggregateList::operator= ( const DtReflectedAggregateList &  orig) [private]

Assignment operator -- not implemented.

virtual void DtReflectedAggregateList::print ( ) [virtual]

Print the SRs of all objects.

Process an incoming aggregate state pdu.

Then calls down to base class processStateMessage().

Process an incoming relativeLocation pdu.

virtual DtReflectedObject* DtReflectedAggregateList::processStateMessage ( const DtStateMsg &  msg) [protected, virtual]

Process an incoming state message.

Reimplemented from DtReflectedObjectList.

static void DtReflectedAggregateList::relativeLocationCb ( DtRelativeLocationPdu *  pdu,
void *  usr 
) [static, protected]

Callback which calls processRelativeLocationPdu.

virtual void DtReflectedAggregateList::removeAggregateAdditionCallback ( DtAggregateCallbackFunction  cb,
void *  userData 
) [virtual]
virtual void DtReflectedAggregateList::removeAggregateRemovalCallback ( DtAggregateCallbackFunction  cb,
void *  userData 
) [virtual]

Member Data Documentation


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)