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