VR-Link API Documentation for DIS
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes
DtCommentRPdu Class Reference

Instances of DtCommentRPdu are used to send/receive reliable comment PDUs. More...

+ Inheritance diagram for DtCommentRPdu:
+ Collaboration diagram for DtCommentRPdu:

List of all members.

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

Detailed Description

Instances of DtCommentRPdu are used to send/receive reliable comment PDUs.


Constructor & Destructor Documentation

Constructors.

DtCommentRPdu::DtCommentRPdu ( const DtEntityIdentifier &  sender,
const DtEntityIdentifier &  receiver,
const char *  message,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)
virtual DtCommentRPdu::~DtCommentRPdu ( ) [virtual]

destructor


Member Function Documentation

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]

Returns the internal PDU kind.

Implements DtPdu.

References DtCommentRPduKind.

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.


Member Data Documentation

const int DtCommentRPdu::theStaticSize [static, protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)