![]() |
VR-Link API Documentation for DIS
|
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. | |
Public Member Functions | |
| DtReflectedRadioReceiver (DtExerciseConn *conn, const DtEntityIdentifier &id, int radioId) | |
| Constructor. | |
| virtual | ~DtReflectedRadioReceiver () |
| Destructor. | |
| virtual DtRadioReceiverRepository * | receiverRep () const |
| Returns ptr to a DtRadioReceiverRepository -- through which you can inspect current state info. | |
| virtual DtRadioReceiverRepository * | rsr () const |
| Synonym for receiverRep(). | |
| virtual DtStateRepository * | stateRep () const |
| Implementation for abstract base class. Calls rsr(). | |
| virtual DtRadioReceiverDecoder * | decoder () |
| Returns a pointer to the decoder being used to decode state messages into our DtRadioReceiverRepository. | |
| virtual const DtEntityIdentifier & | entityId () const |
| Returns the entity identifier. | |
| virtual const DtObjectId & | id () const |
| Get the radio receiver's id. (For DIS, DtObjectId is DtEntityIdentifier). | |
| virtual const DtObjectId & | localId () const |
| Get the radio receiver's local id. For DIS - same as id(). | |
| virtual const DtGlobalObjectDesignator & | globalId () const |
| Get the radio receiver's object's global object designator - for DIS, it's the same as its DtEntityIdentifier. | |
| virtual int | radioId () const |
| Get the radio receiver's radio ID. | |
| virtual void | processStateMessage (const DtStateMsg &msg) |
| Process a radio receiver PDU. | |
| virtual DtReflectedRadioReceiver * | next () const |
| Get the next and previous elements in the reflected radio receiver list. | |
| virtual DtReflectedRadioReceiver * | prev () const |
| virtual DtReflectedRadioReceiver * | wrapNext () const |
| Get the next and previous elements, wrap at the ends of the list. | |
| virtual DtReflectedRadioReceiver * | wrapPrev () const |
| virtual void | addPostUpdateCallback (DtRadioReceiverCallbackFunction cb, void *userData) |
| Radio Receiver callback registration/deregistration. | |
| virtual void | removePostUpdateCallback (DtRadioReceiverCallbackFunction cb, void *userData) |
| virtual const DtBaseHashKey & | hashKey () const |
| Get a hash key for this object. | |
| virtual DtString | idString () const |
| Get a string identification of this object. | |
| virtual void | processRadioReceiver (const DtReceiverPdu &pdu) |
| Process a receiver PDU. | |
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 | |
| DtReflectedRadioReceiver (const DtReflectedRadioReceiver &orig) | |
| Copy constructor -- not implemented. | |
| DtReflectedRadioReceiver & | operator= (const DtReflectedRadioReceiver &orig) |
| Assignment operator -- not implemented. | |
Protected Attributes | |
| DtEntityIdentifier | myId |
| DtString | myIdString |
| DtRadioReceiverRepository * | myStateRep |
| DtRadioReceiverDecoder * | myDecoder |
| DtStringHashKey | myHashKey |
Static Protected Attributes | |
| static DtStateRepCreator | theStateRepCreator |
Instances of DtReflectedRadioReceiver represent radio receiver objects simulated by remote applications.
State data can be viewed through its state repository.
Function prototype for functions that create DtRadioReceiverRepositories.
| 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.
| 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.
Reimplemented from DtListedObj.
| DtReflectedRadioReceiver& DtReflectedRadioReceiver::operator= | ( | const DtReflectedRadioReceiver & | orig | ) | [protected] |
Assignment operator -- not implemented.
| virtual DtReflectedRadioReceiver* DtReflectedRadioReceiver::prev | ( | ) | const [virtual] |
Reimplemented from DtListedObj.
| 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] |
| int DtReflectedRadioReceiver::radioId | ( | ) | const [inline, virtual] |
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.
Reimplemented from DtListedObj.
| virtual DtReflectedRadioReceiver* DtReflectedRadioReceiver::wrapPrev | ( | ) | const [virtual] |
Reimplemented from DtListedObj.
DtStringHashKey DtReflectedRadioReceiver::myHashKey [protected] |
DtEntityIdentifier DtReflectedRadioReceiver::myId [protected] |
DtString DtReflectedRadioReceiver::myIdString [protected] |
Referenced by radioId().
DtStateRepCreator DtReflectedRadioReceiver::theStateRepCreator [static, protected] |