![]() |
VR-Link API Documentation for DIS
|
Instances of DtSetDataPdu are used to send/receive set data PDUs. More...
Inheritance diagram for DtSetDataPdu:
Collaboration diagram for DtSetDataPdu:Public Types | |
| enum | { PduStaticSize = 40 } |
Public Member Functions | |
| DtSetDataPdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. | |
| DtSetDataPdu (const DtNetSetDataPdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| unsigned long | requestId () const |
| Get/Set the request ID. | |
| void | setRequestId (unsigned long id) |
| virtual void | printData () const |
| Print the data contained by this PDU. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print the data to a given stream. | |
Static Public Member Functions | |
| static DtPdu * | create (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Create a DtSetDataPdu. | |
| static void | addCallback (DtExerciseConn *conn, DtSetDataPduCb cb, void *usr) |
| Add (register)/Remove (deregister) function to be called when pdu is received. | |
| static void | removeCallback (DtExerciseConn *conn, DtSetDataPduCb cb, void *usr) |
Protected Member Functions | |
| DtPduKind | internalGetPduKind () const |
| Returns the internal PDU kind. | |
| DtNetDataPduTail * | dataSection () const |
| Returns the data portion of the net structure. | |
Instances of DtSetDataPdu are used to send/receive set data PDUs.
Constructors.
| DtSetDataPdu::DtSetDataPdu | ( | const DtNetSetDataPdu * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| static void DtSetDataPdu::addCallback | ( | DtExerciseConn * | conn, |
| DtSetDataPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
Add (register)/Remove (deregister) function to be called when pdu is received.
| static DtPdu* DtSetDataPdu::create | ( | const DtNetPacket * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) | [static] |
Create a DtSetDataPdu.
Caller is responsible for deletion.
| DtNetDataPduTail* DtSetDataPdu::dataSection | ( | ) | const [protected, virtual] |
Returns the data portion of the net structure.
Implements DtPduWithData.
| DtPduKind DtSetDataPdu::internalGetPduKind | ( | ) | const [inline, protected, virtual] |
| virtual void DtSetDataPdu::printData | ( | ) | const [virtual] |
Print the data contained by this PDU.
Reimplemented from DtPduWithData.
| virtual void DtSetDataPdu::printDataToStream | ( | std::ostream & | stream | ) | const [virtual] |
Print the data to a given stream.
Reimplemented from DtPduWithData.
| static void DtSetDataPdu::removeCallback | ( | DtExerciseConn * | conn, |
| DtSetDataPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
| unsigned long DtSetDataPdu::requestId | ( | ) | const |
Get/Set the request ID.
| void DtSetDataPdu::setRequestId | ( | unsigned long | id | ) |