VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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
DtReflectedNavAid Class Reference

The reflected object for a NavAid transmitter. More...

Inheritance diagram for DtReflectedNavAid:
Inheritance graph
[legend]

Public Types

typedef DtNavAidStateRepository *(* DtStateRepCreator )()
 Function prototype for a function that creates a DtNavAidStateRepository. More...
 
typedef DtNavAidDecoder *(* DtDecoderCreator )(DtExerciseConn *conn)
 Function prototype for a function that creates a DtNavAidDecoder. More...
 
typedef DtNavAidStateRepository *(* DtStateRepCreator )()
 Function prototype for functions that create DtNavAidStateRepositories. More...
 
typedef DtNavAidDecoder *(* DtDecoderCreator )(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
 Function prototype for functions that create DtNavAidDecoders. More...
 

Public Member Functions

 DtReflectedNavAid (DtExerciseConn *conn, const DtEntityIdentifier &id, int radioId)
 constructor More...
 
virtual ~DtReflectedNavAid ()
 destructor More...
 
virtual DtNavAidStateRepositorynavAidStateRep () const
 Returns ptr to navAidStateRepository, through which you can inspect current state info. More...
 
virtual DtNavAidStateRepositorynasr () const
 Synonym for navAidStateRep. More...
 
virtual DtStateRepositorystateRep () const
 Implementation for abstract base class. Calls nasr(). More...
 
virtual DtNavAidDecoderdecoder ()
 Returns a pointer to the Decoder being used to decode state messages into our TSR. More...
 
virtual const DtEntityIdentifier & entityId () const
 Returns the entity identifier. More...
 
virtual const DtObjectId & id () const
 Get the NavAids's id. (For DIS, DtObjectId is DtEntityIdentifier). More...
 
virtual const DtObjectId & localId () const
 Get the NavAids's local id. For DIS - same as id(). More...
 
virtual const
DtGlobalObjectDesignator
globalId () const
 Get the NavAids's object's global object designator - for DIS, it's the same as its DtEntityIdentifier. More...
 
virtual int radioId () const
 Get the NavAids's radio ID. More...
 
virtual void processStateMessage (const DtStateMsg &msg)
 Process a radio transmitter PDU. Calls processNavAid(). More...
 
virtual DtReflectedNavAidnext () const
 Get the next and previous elements in the reflected NavAids list. More...
 
virtual DtReflectedNavAidprev () const
 
virtual DtReflectedNavAidwrapNext () const
 Get the next and previous elements, wrap at the ends of the list. More...
 
virtual DtReflectedNavAidwrapPrev () const
 
virtual void addPostUpdateCallback (DtNavAidCallbackFunction cb, void *userData)
 Radio Transmitter callback registration/deregistration. More...
 
virtual void removePostUpdateCallback (DtNavAidCallbackFunction cb, void *userData)
 
virtual const DtBaseHashKeyhashKey () const
 Get a hash key for this object. More...
 
virtual DtString idString () const
 Get a string identification of this object. More...
 
virtual void processNavAid (const DtTransmitterPdu &pdu)
 Process a transmitter PDU. Also calls down to base class processStateMessage(). More...
 
 DtReflectedNavAid (DtHlaObject *obj, DtExerciseConn *conn)
 constructor More...
 
virtual ~DtReflectedNavAid ()
 destructor More...
 
virtual DtNavAidStateRepositorynavAidStateRep () const
 Get the NavAid's state repository. More...
 
virtual DtNavAidStateRepositorynasr () const
 Synonym for navAidStateRep(). More...
 
virtual DtReflectedNavAidnext () const
 Get the next remote NavAid. More...
 
virtual DtReflectedNavAidprev () const
 Get the previous remote NavAid. More...
 
virtual DtReflectedNavAidwrapNext () const
 Get the next remote NavAid. More...
 
virtual DtReflectedNavAidwrapPrev () const
 Get the previous remote NavAid. More...
 
virtual void addPostUpdateCallback (DtNavAidCallbackFunction cb, void *userData)
 Transmitter state callback registration/deregistration. More...
 
virtual void removePostUpdateCallback (DtNavAidCallbackFunction cb, void *userData)
 

Static Public Member Functions

static void setStateRepCreator (DtStateRepCreator creator)
 Give us a function to be used for creating SRs. More...
 
static DtStateRepCreator stateRepCreator ()
 
static void setDecoderCreator (DtDecoderCreator creator)
 Give us a function to be used for creating a decoder. More...
 
static DtStateRepCreator setStateRepCreator (DtStateRepCreator creator)
 Give us a function to be used for creating SRs. More...
 
static DtDecoderCreator setDecoderCreator (DtDecoderCreator creator)
 Give us a function to be used for creating decoders. More...
 

Protected Member Functions

 DtReflectedNavAid (const DtReflectedNavAid &orig)
 copy constructor – not implemented More...
 
DtReflectedNavAidoperator= (const DtReflectedNavAid &orig)
 assignment operator – not implemented More...
 
 DtReflectedNavAid (const DtReflectedNavAid &orig)
 copy constructor – not implemented More...
 
DtReflectedNavAidoperator= (const DtReflectedNavAid &orig)
 assignment operator – not implemented More...
 

Protected Attributes

DtEntityIdentifier myId
 
DtNavAidStateRepositorymyStateRep
 
DtNavAidDecodermyDecoder
 
DtStringHashKey myHashKey
 
DtString myIdString
 

Static Protected Attributes

static DtStateRepCreator theStateRepCreator
 
static DtDecoderCreator theDecoderCreator
 

Detailed Description

The reflected object for a NavAid transmitter.

class DtReflectedNavAid:

Instances of DtReflectedNavAid represent NavAid objects simulated by remote applications. State data can be viewed through its state repository.

Member Typedef Documentation

typedef DtNavAidStateRepository*(* DtReflectedNavAid::DtStateRepCreator)()

Function prototype for a function that creates a DtNavAidStateRepository.

typedef DtNavAidDecoder*(* DtReflectedNavAid::DtDecoderCreator)(DtExerciseConn *conn)

Function prototype for a function that creates a DtNavAidDecoder.

typedef DtNavAidStateRepository*(* DtReflectedNavAid::DtStateRepCreator)()

Function prototype for functions that create DtNavAidStateRepositories.

typedef DtNavAidDecoder*(* DtReflectedNavAid::DtDecoderCreator)(DtExerciseConn *exConn, DtObjClassDesc *classDesc)

Function prototype for functions that create DtNavAidDecoders.

Constructor & Destructor Documentation

DtReflectedNavAid::DtReflectedNavAid ( DtExerciseConn *  conn,
const DtEntityIdentifier &  id,
int  radioId 
)

constructor

virtual DtReflectedNavAid::~DtReflectedNavAid ( )
virtual

destructor

DtReflectedNavAid::DtReflectedNavAid ( const DtReflectedNavAid orig)
protected

copy constructor – not implemented

DtReflectedNavAid::DtReflectedNavAid ( DtHlaObject *  obj,
DtExerciseConn *  conn 
)

constructor

virtual DtReflectedNavAid::~DtReflectedNavAid ( )
virtual

destructor

DtReflectedNavAid::DtReflectedNavAid ( const DtReflectedNavAid orig)
protected

copy constructor – not implemented

Member Function Documentation

DtNavAidStateRepository * DtReflectedNavAid::navAidStateRep ( ) const
inlinevirtual

Returns ptr to navAidStateRepository, through which you can inspect current state info.

References myStateRep.

DtNavAidStateRepository * DtReflectedNavAid::nasr ( ) const
inlinevirtual

Synonym for navAidStateRep.

References myStateRep.

virtual DtStateRepository* DtReflectedNavAid::stateRep ( ) const
virtual

Implementation for abstract base class. Calls nasr().

virtual DtNavAidDecoder* DtReflectedNavAid::decoder ( )
virtual

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

virtual const DtEntityIdentifier& DtReflectedNavAid::entityId ( ) const
virtual

Returns the entity identifier.

virtual const DtObjectId& DtReflectedNavAid::id ( ) const
virtual

Get the NavAids's id. (For DIS, DtObjectId is DtEntityIdentifier).

virtual const DtObjectId& DtReflectedNavAid::localId ( ) const
virtual

Get the NavAids's local id. For DIS - same as id().

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

Get the NavAids's object's global object designator - for DIS, it's the same as its DtEntityIdentifier.

int DtReflectedNavAid::radioId ( ) const
inlinevirtual

Get the NavAids's radio ID.

References myStateRep.

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

Process a radio transmitter PDU. Calls processNavAid().

virtual DtReflectedNavAid* DtReflectedNavAid::next ( ) const
virtual

Get the next and previous elements in the reflected NavAids list.

virtual DtReflectedNavAid* DtReflectedNavAid::prev ( ) const
virtual
virtual DtReflectedNavAid* DtReflectedNavAid::wrapNext ( ) const
virtual

Get the next and previous elements, wrap at the ends of the list.

virtual DtReflectedNavAid* DtReflectedNavAid::wrapPrev ( ) const
virtual
virtual void DtReflectedNavAid::addPostUpdateCallback ( DtNavAidCallbackFunction  cb,
void *  userData 
)
virtual

Radio Transmitter callback registration/deregistration.

virtual void DtReflectedNavAid::removePostUpdateCallback ( DtNavAidCallbackFunction  cb,
void *  userData 
)
virtual
virtual const DtBaseHashKey& DtReflectedNavAid::hashKey ( ) const
virtual

Get a hash key for this object.

virtual DtString DtReflectedNavAid::idString ( ) const
virtual

Get a string identification of this object.

virtual void DtReflectedNavAid::processNavAid ( const DtTransmitterPdu &  pdu)
virtual

Process a transmitter PDU. Also calls down to base class processStateMessage().

static void DtReflectedNavAid::setStateRepCreator ( DtStateRepCreator  creator)
static

Give us a function to be used for creating SRs.

static DtStateRepCreator DtReflectedNavAid::stateRepCreator ( )
static
static void DtReflectedNavAid::setDecoderCreator ( DtDecoderCreator  creator)
static

Give us a function to be used for creating a decoder.

DtReflectedNavAid& DtReflectedNavAid::operator= ( const DtReflectedNavAid orig)
protected

assignment operator – not implemented

virtual DtNavAidStateRepository* DtReflectedNavAid::navAidStateRep ( ) const
virtual

Get the NavAid's state repository.

virtual DtNavAidStateRepository* DtReflectedNavAid::nasr ( ) const
virtual

Synonym for navAidStateRep().

virtual DtReflectedNavAid* DtReflectedNavAid::next ( ) const
virtual

Get the next remote NavAid.

virtual DtReflectedNavAid* DtReflectedNavAid::prev ( ) const
virtual

Get the previous remote NavAid.

virtual DtReflectedNavAid* DtReflectedNavAid::wrapNext ( ) const
virtual

Get the next remote NavAid.

Will cycle back to the first remote NavAid.

virtual DtReflectedNavAid* DtReflectedNavAid::wrapPrev ( ) const
virtual

Get the previous remote NavAid.

Will cycle back to the last remote NavAid.

virtual void DtReflectedNavAid::addPostUpdateCallback ( DtNavAidCallbackFunction  cb,
void *  userData 
)
virtual

Transmitter state callback registration/deregistration.

virtual void DtReflectedNavAid::removePostUpdateCallback ( DtNavAidCallbackFunction  cb,
void *  userData 
)
virtual
static DtStateRepCreator DtReflectedNavAid::setStateRepCreator ( DtStateRepCreator  creator)
static

Give us a function to be used for creating SRs.

static DtDecoderCreator DtReflectedNavAid::setDecoderCreator ( DtDecoderCreator  creator)
static

Give us a function to be used for creating decoders.

DtReflectedNavAid& DtReflectedNavAid::operator= ( const DtReflectedNavAid orig)
protected

assignment operator – not implemented

Member Data Documentation

DtEntityIdentifier DtReflectedNavAid::myId
protected
DtNavAidStateRepository* DtReflectedNavAid::myStateRep
protected

Referenced by nasr(), navAidStateRep(), and radioId().

DtNavAidDecoder* DtReflectedNavAid::myDecoder
protected
DtStringHashKey DtReflectedNavAid::myHashKey
protected
DtString DtReflectedNavAid::myIdString
protected
static DtStateRepCreator DtReflectedNavAid::theStateRepCreator
staticprotected
static DtDecoderCreator DtReflectedNavAid::theDecoderCreator
staticprotected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)