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
DtReflectedRadioReceiver Class Reference

Instances of DtReflectedRadioReceiver represent radio receiver objects simulated by remote applications. More...

+ Inheritance diagram for DtReflectedRadioReceiver:
+ Collaboration diagram for DtReflectedRadioReceiver:

Public Types

typedef
DtRadioReceiverRepository *(* 
DtStateRepCreator )()
 Function prototype for functions that create DtRadioReceiverRepositories. More...
 

Public Member Functions

 DtReflectedRadioReceiver (DtExerciseConn *conn, const DtEntityIdentifier &id, int radioId)
 Constructor. More...
 
virtual ~DtReflectedRadioReceiver ()
 Destructor. More...
 
virtual DtRadioReceiverRepository * receiverRep () const
 Returns ptr to a DtRadioReceiverRepository – through which you can inspect current state info. More...
 
virtual DtRadioReceiverRepository * rsr () const
 Synonym for receiverRep(). More...
 
virtual DtStateRepository * stateRep () const
 Implementation for abstract base class. Calls rsr(). More...
 
virtual DtRadioReceiverDecoder * decoder ()
 Returns a pointer to the decoder being used to decode state messages into our DtRadioReceiverRepository. More...
 
virtual const DtEntityIdentifier & entityId () const
 Returns the entity identifier. More...
 
virtual const DtObjectId & id () const
 Get the radio receiver's id. (For DIS, DtObjectId is DtEntityIdentifier). More...
 
virtual const DtObjectId & localId () const
 Get the radio receiver's local id. For DIS - same as id(). More...
 
virtual const
DtGlobalObjectDesignator & 
globalId () const
 Get the radio receiver's object's global object designator - for DIS, it's the same as its DtEntityIdentifier. More...
 
virtual int radioId () const
 Get the radio receiver's radio ID. More...
 
virtual void processStateMessage (const DtStateMsg &msg)
 Process a radio receiver PDU. More...
 
virtual DtReflectedRadioReceiver * next () const
 Get the next and previous elements in the reflected radio receiver list. More...
 
virtual DtReflectedRadioReceiver * prev () const
 
virtual DtReflectedRadioReceiver * wrapNext () const
 Get the next and previous elements, wrap at the ends of the list. More...
 
virtual DtReflectedRadioReceiver * wrapPrev () const
 
virtual void addPostUpdateCallback (DtRadioReceiverCallbackFunction cb, void *userData)
 Radio Receiver callback registration/deregistration. More...
 
virtual void removePostUpdateCallback (DtRadioReceiverCallbackFunction cb, void *userData)
 
virtual const DtBaseHashKey & hashKey () const
 Get a hash key for this object. More...
 
virtual DtString idString () const
 Get a string identification of this object. More...
 
virtual void processRadioReceiver (const DtReceiverPdu &pdu)
 Process a receiver PDU. More...
 
- Public Member Functions inherited from DtReflectedObject
 DtReflectedObject (DtExerciseConn *conn)
 constructor More...
 
virtual ~DtReflectedObject ()
 destructor More...
 
virtual DtStateRepository * sr () const
 Synonym for stateRep(). More...
 
virtual DtTime lastTimeUpdated () const
 Returns the value of wallclock time at the time an update was last received for the entity. More...
 
virtual DtTime lastSimTimeUpdated () const
 Returns the value of sim time at the time an update was last received for the entity. More...
 
virtual DtTime lastReceivedTimeStamp () const
 Returns the value in seconds past the hour of the timeStamp from the last received PDU. More...
 
virtual void baseAddPostUpdateCallback (DtReflectedObjectCallbackFunction cb, void *userData)
 Object state callback registration/deregistration. More...
 
virtual void baseRemovePostUpdateCallback (DtReflectedObjectCallbackFunction cb, void *userData)
 
virtual DtReflectedObject * nextObj () const
 Get the next remote object. More...
 
virtual DtReflectedObject * prevObj () const
 Get the previous remote object. More...
 
virtual DtReflectedObject * wrapNextObj () const
 Get the next remote object. More...
 
virtual DtReflectedObject * wrapPrevObj () const
 Get the previous remote object. More...
 
- Public Member Functions inherited from DtListedObj
 DtListedObj ()
 Constructor. More...
 
virtual ~DtListedObj ()
 Destructor. More...
 
void * next () const
 Return next (previous) elements on the list, or NULL if hit the end (beginning) of the list. More...
 
void * prev () const
 
void * wrapNext () const
 Return next (previous) elements on the list, but wrap to the beginning (end) of the list when you hit the end (beginning). More...
 
void * wrapPrev () const
 

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

DtEntityIdentifier myId
 
DtString myIdString
 
DtRadioReceiverRepository * myStateRep
 
DtRadioReceiverDecoder * myDecoder
 
DtSystemHashKey myHashKey
 
- Protected Attributes inherited from DtReflectedObject
DtExerciseConn * myExConn
 
DtIntrusiveList myStateUpdateCallbacks
 
DtTime myLastTimeUpdated
 
DtTime myLastSimTimeUpdated
 
DtTime myLastReceivedTimeStamp
 
- Protected Attributes inherited from DtListedObj
DtList * myList
 
DtListItem * myItem
 

Static Protected Attributes

static DtStateRepCreator theStateRepCreator
 

Detailed Description

Instances of DtReflectedRadioReceiver represent radio receiver objects simulated by remote applications.

State data can be viewed through its state repository.

Member Typedef Documentation

typedef DtRadioReceiverRepository*(* DtReflectedRadioReceiver::DtStateRepCreator)()

Function prototype for functions that create DtRadioReceiverRepositories.

Constructor & Destructor Documentation

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

Constructor.

virtual DtReflectedRadioReceiver::~DtReflectedRadioReceiver ( )
virtual

Destructor.

DtReflectedRadioReceiver::DtReflectedRadioReceiver ( const DtReflectedRadioReceiver &  orig)
protected

Copy constructor – not implemented.

Member Function Documentation

virtual void DtReflectedRadioReceiver::addPostUpdateCallback ( DtRadioReceiverCallbackFunction  cb,
void *  userData 
)
virtual

Radio Receiver callback registration/deregistration.

virtual DtRadioReceiverDecoder* DtReflectedRadioReceiver::decoder ( )
virtual

Returns a pointer to the decoder being used to decode state messages into our DtRadioReceiverRepository.

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

Returns the entity identifier.

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

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

Implements DtReflectedObject.

virtual const DtBaseHashKey& DtReflectedRadioReceiver::hashKey ( ) const
virtual

Get a hash key for this object.

Implements DtReflectedObject.

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

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

virtual DtString DtReflectedRadioReceiver::idString ( ) const
virtual

Get a string identification of this object.

Implements DtReflectedObject.

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

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

virtual DtReflectedRadioReceiver* DtReflectedRadioReceiver::next ( ) const
virtual

Get the next and previous elements in the reflected radio receiver list.

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

Assignment operator – not implemented.

virtual DtReflectedRadioReceiver* DtReflectedRadioReceiver::prev ( ) const
virtual
virtual void DtReflectedRadioReceiver::processRadioReceiver ( const DtReceiverPdu &  pdu)
virtual

Process a receiver PDU.

Also calls down to base class processStateMessage().

virtual void DtReflectedRadioReceiver::processStateMessage ( const DtStateMsg &  msg)
virtual

Process a radio receiver PDU.

Calls processRadioReceiver().

Reimplemented from DtReflectedObject.

int DtReflectedRadioReceiver::radioId ( ) const
inlinevirtual

Get the radio receiver's radio ID.

References myStateRep, and DtRadioReceiverRepository::radioId().

virtual DtRadioReceiverRepository* DtReflectedRadioReceiver::receiverRep ( ) const
virtual

Returns ptr to a DtRadioReceiverRepository – through which you can inspect current state info.

virtual void DtReflectedRadioReceiver::removePostUpdateCallback ( DtRadioReceiverCallbackFunction  cb,
void *  userData 
)
virtual
virtual DtRadioReceiverRepository* DtReflectedRadioReceiver::rsr ( ) const
virtual

Synonym for receiverRep().

static void DtReflectedRadioReceiver::setStateRepCreator ( DtStateRepCreator  creator)
static

Give us a function to be used for creating SRs.

virtual DtStateRepository* DtReflectedRadioReceiver::stateRep ( ) const
virtual

Implementation for abstract base class. Calls rsr().

Implements DtReflectedObject.

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

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

virtual DtReflectedRadioReceiver* DtReflectedRadioReceiver::wrapPrev ( ) const
virtual

Member Data Documentation

DtRadioReceiverDecoder* DtReflectedRadioReceiver::myDecoder
protected
DtSystemHashKey DtReflectedRadioReceiver::myHashKey
protected
DtEntityIdentifier DtReflectedRadioReceiver::myId
protected
DtString DtReflectedRadioReceiver::myIdString
protected
DtRadioReceiverRepository* DtReflectedRadioReceiver::myStateRep
protected

Referenced by radioId().

DtStateRepCreator DtReflectedRadioReceiver::theStateRepCreator
staticprotected

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

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)