![]() |
VR-Link API Documentation for DIS
|
Instances of DtCommentRPdu are used to send/receive reliable comment PDUs. More...
Inheritance diagram for DtCommentRPdu:
Collaboration diagram for DtCommentRPdu:Public Member Functions | |
| DtCommentRPdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. | |
| DtCommentRPdu (const DtNetCommentRPdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtCommentRPdu (const DtEntityIdentifier &sender, const DtEntityIdentifier &receiver, const char *message, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtCommentRPdu (const DtCommentRPdu &orig) | |
| virtual | ~DtCommentRPdu () |
| destructor | |
| DtCommentRPdu & | operator= (const DtCommentRPdu &orig) |
| Assignment operator. | |
| virtual void | setComment (const char *message, int size) |
| Set the comment. | |
Static Public Member Functions | |
| static DtPdu * | create (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Create a DtCommentRPdu. | |
| static void | addCallback (DtExerciseConn *conn, DtCommentRPduCb cb, void *usr) |
| Add (register)/Remove (deregister) function to be called when pdu is received. | |
| static void | removeCallback (DtExerciseConn *conn, DtCommentRPduCb cb, void *usr) |
Protected Member Functions | |
| void | setCommentInternal (const char *message, int size) |
| Set the comment. | |
| virtual DtPduKind | internalGetPduKind () const |
| Returns the internal PDU kind. | |
| virtual DtNetDataPduTail * | dataSection () const |
| Returns the data portion of the pdu. | |
Static Protected Attributes | |
| static const int | theStaticSize |
Instances of DtCommentRPdu are used to send/receive reliable comment PDUs.
Constructors.
| DtCommentRPdu::DtCommentRPdu | ( | const DtNetCommentRPdu * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| DtCommentRPdu::DtCommentRPdu | ( | const DtEntityIdentifier & | sender, |
| const DtEntityIdentifier & | receiver, | ||
| const char * | message, | ||
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| DtCommentRPdu::DtCommentRPdu | ( | const DtCommentRPdu & | orig | ) |
| virtual DtCommentRPdu::~DtCommentRPdu | ( | ) | [virtual] |
destructor
| static void DtCommentRPdu::addCallback | ( | DtExerciseConn * | conn, |
| DtCommentRPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
Add (register)/Remove (deregister) function to be called when pdu is received.
| static DtPdu* DtCommentRPdu::create | ( | const DtNetPacket * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) | [static] |
Create a DtCommentRPdu.
Caller is responsible for deletion.
| virtual DtNetDataPduTail* DtCommentRPdu::dataSection | ( | ) | const [protected, virtual] |
Returns the data portion of the pdu.
Implements DtPduWithData.
| DtPduKind DtCommentRPdu::internalGetPduKind | ( | ) | const [inline, protected, virtual] |
| DtCommentRPdu& DtCommentRPdu::operator= | ( | const DtCommentRPdu & | orig | ) |
Assignment operator.
| static void DtCommentRPdu::removeCallback | ( | DtExerciseConn * | conn, |
| DtCommentRPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
| virtual void DtCommentRPdu::setComment | ( | const char * | message, |
| int | size | ||
| ) | [virtual] |
Set the comment.
| void DtCommentRPdu::setCommentInternal | ( | const char * | message, |
| int | size | ||
| ) | [protected] |
Set the comment.
Non-virtual since called from ctor.
const int DtCommentRPdu::theStaticSize [static, protected] |