![]() |
VR-Link API Documentation for DIS
|
This class provides a wrapper around the DIS Receiver PDU network structure. More...
Inheritance diagram for DtReceiverPdu:
Collaboration diagram for DtReceiverPdu:Public Types | |
| enum | { PduStaticSize = 36 } |
| The static size of a Receiver PDU. More... | |
Public Member Functions | |
| DtReceiverPdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Default constructor. | |
| DtReceiverPdu (const DtNetReceiverPdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructor that takes a Receiver PDU network structure. | |
| ~DtReceiverPdu () | |
| Destructor. | |
| virtual void | printData () const |
| Print the PDU's data to DtInfo. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print the PDU's data to the specified stream. | |
| const DtEntityIdentifier & | entityId () const |
| Set/Get the Entity ID of the entity that the receiver is attached to. | |
| void | setEntityId (const DtEntityIdentifier &id) |
| Set/Get the Entity ID of the entity that the receiver is attached to. | |
| unsigned int | radioId () const |
| Set/Get the radio ID. | |
| void | setRadioId (unsigned int id) |
| Set/Get the radio ID. | |
| DtRadioReceiverState | receiverState () const |
| Set/Get the receiver state. | |
| void | setReceiverState (DtRadioReceiverState state) |
| Set/Get the receiver state. | |
| float | receivedPower () const |
| Set/Get the received power. | |
| void | setReceivedPower (float power) |
| Set/Get the received power. | |
| const DtEntityIdentifier & | transmitEntityId () const |
| Set/Get the transmitter's entity ID. | |
| void | setTransmitEntityId (const DtEntityIdentifier &id) |
| Set/Get the transmitter's entity ID. | |
| unsigned int | transmitRadioId () const |
| Set/Get the transmitter's radio ID. | |
| void | setTransmitRadioId (unsigned int id) |
| Set/Get the transmitter's radio ID. | |
Static Public Member Functions | |
| static DtPdu * | create (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Static creator function that creates a Receiver PDU from a packet received on the network. | |
| static void | addCallback (DtExerciseConn *conn, DtReceiverPduCb cb, void *usr) |
| Add a callback to be called on Receiver PDU receipt. | |
| static void | removeCallback (DtExerciseConn *conn, DtReceiverPduCb cb, void *usr) |
| Remove the callback that's called on Receiver PDU receipt. | |
Protected Member Functions | |
| DtPduKind | internalGetPduKind () const |
| Returns the PDU kind. | |
Protected Attributes | |
| DtEntityIdentifier | theId |
| DtEntityIdentifier | transId |
This class provides a wrapper around the DIS Receiver PDU network structure.
Default constructor.
| DtReceiverPdu::DtReceiverPdu | ( | const DtNetReceiverPdu * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
Constructor that takes a Receiver PDU network structure.
| DtReceiverPdu::~DtReceiverPdu | ( | ) | [inline] |
Destructor.
| static void DtReceiverPdu::addCallback | ( | DtExerciseConn * | conn, |
| DtReceiverPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
Add a callback to be called on Receiver PDU receipt.
| static DtPdu* DtReceiverPdu::create | ( | const DtNetPacket * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) | [static] |
Static creator function that creates a Receiver PDU from a packet received on the network.
| const DtEntityIdentifier& DtReceiverPdu::entityId | ( | ) | const |
Set/Get the Entity ID of the entity that the receiver is attached to.
| DtPduKind DtReceiverPdu::internalGetPduKind | ( | ) | const [inline, protected, virtual] |
| virtual void DtReceiverPdu::printData | ( | ) | const [virtual] |
Print the PDU's data to DtInfo.
Reimplemented from DtPdu.
| virtual void DtReceiverPdu::printDataToStream | ( | std::ostream & | stream | ) | const [virtual] |
Print the PDU's data to the specified stream.
Reimplemented from DtPdu.
| unsigned int DtReceiverPdu::radioId | ( | ) | const |
Set/Get the radio ID.
| float DtReceiverPdu::receivedPower | ( | ) | const |
Set/Get the received power.
Set/Get the receiver state.
| static void DtReceiverPdu::removeCallback | ( | DtExerciseConn * | conn, |
| DtReceiverPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
Remove the callback that's called on Receiver PDU receipt.
| void DtReceiverPdu::setEntityId | ( | const DtEntityIdentifier & | id | ) |
Set/Get the Entity ID of the entity that the receiver is attached to.
| void DtReceiverPdu::setRadioId | ( | unsigned int | id | ) |
Set/Get the radio ID.
| void DtReceiverPdu::setReceivedPower | ( | float | power | ) |
Set/Get the received power.
| void DtReceiverPdu::setReceiverState | ( | DtRadioReceiverState | state | ) |
Set/Get the receiver state.
| void DtReceiverPdu::setTransmitEntityId | ( | const DtEntityIdentifier & | id | ) |
Set/Get the transmitter's entity ID.
| void DtReceiverPdu::setTransmitRadioId | ( | unsigned int | id | ) |
Set/Get the transmitter's radio ID.
| const DtEntityIdentifier& DtReceiverPdu::transmitEntityId | ( | ) | const |
Set/Get the transmitter's entity ID.
| unsigned int DtReceiverPdu::transmitRadioId | ( | ) | const |
Set/Get the transmitter's radio ID.
DtEntityIdentifier DtReceiverPdu::theId [protected] |
DtEntityIdentifier DtReceiverPdu::transId [protected] |