VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
DtReflectedDesignator Class Reference

Instances of DtReflectedDesignator represent designator object simulated by remote applications. More...

+ Inheritance diagram for DtReflectedDesignator:
+ Collaboration diagram for DtReflectedDesignator:

Public Types

typedef DtDesignatorRepository *(* DtStateRepCreator )()
 Function prototype for functions that create DtDesignatorRepositories.

Public Member Functions

 DtReflectedDesignator (DtExerciseConn *conn, const DtGlobalObjectDesignator &designatingEntity, int designatorCode)
 Constructor.
virtual ~DtReflectedDesignator ()
 Destructor.
virtual DtDesignatorRepositorydesignatorRep () const
 Get the designator's state repository.
virtual DtDesignatorRepositorydsr () const
 Synonym for designatorRep().
virtual DtStateRepositorystateRep () const
 Returns a pointer to the StateRepository through which you can inspect current state information.
virtual DtDesignatorDecoderdecoder ()
 Returns a pointer to the Decoder being used to decode state messages.
virtual void processStateMessage (const DtStateMsg &msg)
 Overrides the implementation of the base class.
virtual DtReflectedDesignatornext () const
 Get the next remote designator.
virtual DtReflectedDesignatorprev () const
 Get the previous remote designator.
virtual DtReflectedDesignatorwrapNext () const
 Get the next remote designator.
virtual DtReflectedDesignatorwrapPrev () const
 Get the previous remote designator.
virtual void addPostUpdateCallback (DtDesignatorCallbackFunction cb, void *userData)
 Designator state callback registration/deregistration.
virtual void removePostUpdateCallback (DtDesignatorCallbackFunction cb, void *userData)
virtual const DtBaseHashKeyhashKey () const
 Get a hash key for this object.
virtual DtString idString () const
 Get a string identification of this object.
virtual const
DtGlobalObjectDesignator
globalId () const
 Get the designator entityId - for DIS, it's the same as its DtEntityIdentifier.
- Public Member Functions inherited from DtReflectedObject
 DtReflectedObject (DtExerciseConn *conn)
 constructor
virtual ~DtReflectedObject ()
 destructor
virtual DtStateRepositorysr () const
 Synonym for stateRep().
virtual DtTime lastTimeUpdated () const
 Returns the value of wallclock time at the time an update was last received for the entity.
virtual DtTime lastSimTimeUpdated () const
 Returns the value of sim time at the time an update was last received for the entity.
virtual DtTime lastReceivedTimeStamp () const
 Returns the value in seconds past the hour of the timeStamp from the last received PDU.
virtual void baseAddPostUpdateCallback (DtReflectedObjectCallbackFunction cb, void *userData)
 Object state callback registration/deregistration.
virtual void baseRemovePostUpdateCallback (DtReflectedObjectCallbackFunction cb, void *userData)
virtual DtReflectedObjectnextObj () const
 Get the next remote object.
virtual DtReflectedObjectprevObj () const
 Get the previous remote object.
virtual DtReflectedObjectwrapNextObj () const
 Get the next remote object.
virtual DtReflectedObjectwrapPrevObj () const
 Get the previous remote object.
- Public Member Functions inherited from DtListedObj
 DtListedObj ()
 Constructor.
virtual ~DtListedObj ()
 Destructor.

Static Public Member Functions

static void setStateRepCreator (DtStateRepCreator creator)
 Give us a function to be used for creating SRs.
static DtStateRepCreator stateRepCreator (void)

Protected Member Functions

 DtReflectedDesignator (const DtReflectedDesignator &)
 Copy constructor - not implemented.
DtReflectedDesignatoroperator= (const DtReflectedDesignator &)
 Assignment operator - not implemented.
- Protected Member Functions inherited from DtReflectedObject
 DtReflectedObject (const DtReflectedObject &orig)
 copy constructor – not implemented
DtReflectedObjectoperator= (const DtReflectedObject &orig)
 assignment operator – not implemented
virtual void processPostUpdateCallbacks ()
 Process the post update callbacks.

Protected Attributes

DtSystemHashKey myHashKey
DtString myIdString
DtDesignatorRepositorymyStateRepository
DtDesignatorDecodermyDecoder
- Protected Attributes inherited from DtReflectedObject
DtExerciseConnmyExConn
DtIntrusiveList myStateUpdateCallbacks
DtTime myLastTimeUpdated
DtTime myLastSimTimeUpdated
DtTime myLastReceivedTimeStamp
- Protected Attributes inherited from DtListedObj
DtListmyList
DtListItemmyItem

Static Protected Attributes

static DtStateRepCreator theStateRepCreator

Detailed Description

Instances of DtReflectedDesignator represent designator object simulated by remote applications.

State data can be viewed through its state repository.

Member Typedef Documentation

typedef DtDesignatorRepository*(* DtReflectedDesignator::DtStateRepCreator)()

Function prototype for functions that create DtDesignatorRepositories.

Constructor & Destructor Documentation

DtReflectedDesignator::DtReflectedDesignator ( DtExerciseConn conn,
const DtGlobalObjectDesignator designatingEntity,
int  designatorCode 
)

Constructor.

virtual DtReflectedDesignator::~DtReflectedDesignator ( )
virtual

Destructor.

DtReflectedDesignator::DtReflectedDesignator ( const DtReflectedDesignator )
protected

Copy constructor - not implemented.

Member Function Documentation

virtual void DtReflectedDesignator::addPostUpdateCallback ( DtDesignatorCallbackFunction  cb,
void *  userData 
)
virtual

Designator state callback registration/deregistration.

virtual DtDesignatorDecoder* DtReflectedDesignator::decoder ( )
inlinevirtual

Returns a pointer to the Decoder being used to decode state messages.

virtual DtDesignatorRepository* DtReflectedDesignator::designatorRep ( ) const
inlinevirtual

Get the designator's state repository.

virtual DtDesignatorRepository* DtReflectedDesignator::dsr ( ) const
inlinevirtual

Synonym for designatorRep().

virtual const DtGlobalObjectDesignator& DtReflectedDesignator::globalId ( ) const
virtual

Get the designator entityId - for DIS, it's the same as its DtEntityIdentifier.

Implements DtReflectedObject.

virtual const DtBaseHashKey& DtReflectedDesignator::hashKey ( ) const
inlinevirtual

Get a hash key for this object.

Implements DtReflectedObject.

virtual DtString DtReflectedDesignator::idString ( ) const
inlinevirtual

Get a string identification of this object.

Implements DtReflectedObject.

virtual DtReflectedDesignator* DtReflectedDesignator::next ( ) const
virtual

Get the next remote designator.

Reimplemented from DtListedObj.

DtReflectedDesignator& DtReflectedDesignator::operator= ( const DtReflectedDesignator )
protected

Assignment operator - not implemented.

virtual DtReflectedDesignator* DtReflectedDesignator::prev ( ) const
virtual

Get the previous remote designator.

Reimplemented from DtListedObj.

virtual void DtReflectedDesignator::processStateMessage ( const DtStateMsg msg)
virtual

Overrides the implementation of the base class.

Processes a Designator PDU.

Reimplemented from DtReflectedObject.

virtual void DtReflectedDesignator::removePostUpdateCallback ( DtDesignatorCallbackFunction  cb,
void *  userData 
)
virtual
static void DtReflectedDesignator::setStateRepCreator ( DtStateRepCreator  creator)
static

Give us a function to be used for creating SRs.

virtual DtStateRepository* DtReflectedDesignator::stateRep ( ) const
inlinevirtual

Returns a pointer to the StateRepository through which you can inspect current state information.

Implementation for abstract base class.

Implements DtReflectedObject.

static DtStateRepCreator DtReflectedDesignator::stateRepCreator ( void  )
static
virtual DtReflectedDesignator* DtReflectedDesignator::wrapNext ( ) const
virtual

Get the next remote designator.

If at the end, it will cycle back to the first remote designator.

Reimplemented from DtListedObj.

virtual DtReflectedDesignator* DtReflectedDesignator::wrapPrev ( ) const
virtual

Get the previous remote designator.

If at the beginning, it will cycle back to the last remote designator.

Reimplemented from DtListedObj.

Member Data Documentation

DtDesignatorDecoder* DtReflectedDesignator::myDecoder
protected
DtSystemHashKey DtReflectedDesignator::myHashKey
protected
DtString DtReflectedDesignator::myIdString
protected
DtDesignatorRepository* DtReflectedDesignator::myStateRepository
protected
DtStateRepCreator DtReflectedDesignator::theStateRepCreator
staticprotected

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

Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (www.mak.com)