![]() |
VR-Link API Documentation for DIS
|
Instances of DtActionResponseRPdu are used to send/receive reliable action response PDUs. More...
Inheritance diagram for DtActionResponseRPdu:
Collaboration diagram for DtActionResponseRPdu:Public Member Functions | |
| DtActionResponseRPdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. | |
| DtActionResponseRPdu (const DtNetActionResponseRPdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtActionResponseRPdu (const DtActionResponseRPdu &orig) | |
| virtual | ~DtActionResponseRPdu () |
| destructor | |
| DtActionResponseRPdu & | operator= (const DtActionResponseRPdu &orig) |
| Assignment operator. | |
| virtual void | setRequestId (unsigned long id) |
| Set/Get the request id. | |
| virtual unsigned long | requestId () const |
| virtual void | setRequestStatus (DtRequestStatus rStatus) |
| Set/Get the request status. | |
| virtual DtRequestStatus | requestStatus () const |
| 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 DtActionResponseRPdu. | |
| static void | addCallback (DtExerciseConn *conn, DtActionResponseRPduCb cb, void *usr) |
| Add (register)/Remove (deregister) function to be called when pdu is received. | |
| static void | removeCallback (DtExerciseConn *conn, DtActionResponseRPduCb cb, void *usr) |
Protected Member Functions | |
| virtual DtPduKind | internalGetPduKind () const |
| Returns the internal PDU kind. | |
| virtual DtNetDataPduTail * | dataSection () const |
| Returns the data portion of the net structure. | |
Static Protected Attributes | |
| static const int | theStaticSize |
Instances of DtActionResponseRPdu are used to send/receive reliable action response PDUs.
Constructors.
| DtActionResponseRPdu::DtActionResponseRPdu | ( | const DtNetActionResponseRPdu * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| DtActionResponseRPdu::DtActionResponseRPdu | ( | const DtActionResponseRPdu & | orig | ) |
| virtual DtActionResponseRPdu::~DtActionResponseRPdu | ( | ) | [virtual] |
destructor
| static void DtActionResponseRPdu::addCallback | ( | DtExerciseConn * | conn, |
| DtActionResponseRPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
Add (register)/Remove (deregister) function to be called when pdu is received.
| static DtPdu* DtActionResponseRPdu::create | ( | const DtNetPacket * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) | [static] |
Create a DtActionResponseRPdu.
Caller is responsible for deletion.
| virtual DtNetDataPduTail* DtActionResponseRPdu::dataSection | ( | ) | const [protected, virtual] |
Returns the data portion of the net structure.
Implements DtPduWithData.
| DtPduKind DtActionResponseRPdu::internalGetPduKind | ( | ) | const [inline, protected, virtual] |
| DtActionResponseRPdu& DtActionResponseRPdu::operator= | ( | const DtActionResponseRPdu & | orig | ) |
Assignment operator.
| virtual void DtActionResponseRPdu::printData | ( | ) | const [virtual] |
Print the data contained by this PDU.
Reimplemented from DtPduWithData.
| virtual void DtActionResponseRPdu::printDataToStream | ( | std::ostream & | stream | ) | const [virtual] |
Print the data to a stream.
Reimplemented from DtPduWithData.
| static void DtActionResponseRPdu::removeCallback | ( | DtExerciseConn * | conn, |
| DtActionResponseRPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
| virtual unsigned long DtActionResponseRPdu::requestId | ( | ) | const [virtual] |
| virtual DtRequestStatus DtActionResponseRPdu::requestStatus | ( | ) | const [virtual] |
| virtual void DtActionResponseRPdu::setRequestId | ( | unsigned long | id | ) | [virtual] |
Set/Get the request id.
| virtual void DtActionResponseRPdu::setRequestStatus | ( | DtRequestStatus | rStatus | ) | [virtual] |
Set/Get the request status.
const int DtActionResponseRPdu::theStaticSize [static, protected] |