![]() |
VR-Forces 4.7 Class Documentation
|

Public Member Functions | |
| DtVrfTDLMessage () | |
| default constructor | |
| DtVrfTDLMessage (const DtVrfTDLMessage &orig) | |
| copy constructor: shallow; copies values only | |
| const DtVrfTDLMessage & | operator= (DtVrfTDLMessage &orig) |
| assignment operator: shallow; assigns values only | |
| virtual | ~DtVrfTDLMessage () |
| destructor | |
| virtual int | tdlMessageType () const |
| TDL Message type. | |
| virtual DtVrfTDLMessage * | clone () const |
| virtual int | messageVersion () const |
| virtual int | headerVersion () const |
| virtual int | getContentType (const char *buffer) |
| Given the message buffer, get the content type from it. | |
| virtual void | printDataToString (DtString &str) |
| Print message. | |
| virtual void | setRecipient (const DtSimulationAddress &recipient) |
| The recipient of this message. | |
| virtual const DtSimulationAddress & | recipient () const |
| virtual void | setSender (const DtSimulationAddress &recipient) |
| The sender of this message. | |
| virtual const DtSimulationAddress & | sender () const |
| virtual int | netRepSize () const |
| The number of bytes on the network for this message. Returns the sum of the fixed and variable sizes. | |
| virtual const char * | netRep () |
| The buffer which is the content for this message. | |
| virtual void | setToNet (char *buffer) |
| Sets the contents of this object into the memory buffer specified by myNetRep. | |
| virtual bool | setFromNet (const char *buffer, int bufferSize) |
| Sets the content from the net by calling setFixedFromNet and setVariableFromNext. | |
| virtual int | fixedSize () const |
| Returns the size of the fixed portion of this message. | |
| virtual int | variableSize () const |
| Returns the variable data size. | |
| virtual void | setMarkingText (const DtString &) |
| Accessor for marking text of the item sending this message. | |
| virtual const DtString & | markingText () const |
| virtual void | setUUID (const DtString &) |
| Accessor for the UUID for this item. | |
| virtual const DtString & | uuid () const |
| virtual void | setTimeStamp (unsigned int) |
| Accessor for time stamp. | |
| virtual unsigned int | timeStamp () const |
Static Public Member Functions | |
| static DtVrfTDLMessage * | creator () |
| static void | setFactory (DtVrfTDLMessageFactory *) |
| Factory accessors. | |
| static DtVrfTDLMessageFactory * | factory () |
Protected Member Functions | |
| virtual char * | createNetworkBuffer () |
| Creates the network buffer of the size needed. | |
| virtual void | setFixedToNet (char *buffer) |
| Sets the fixed portion of the buffer to the net. Returns the pointer at the end of this fixed portion. | |
| virtual int | setFixedFromNet (const char *buffer) |
| Sets the fixed portion from the buffer into internal structures and variables. | |
| virtual const char * | setVariableFromNet (const char *buffer, const char *fixedBuffer, int messageVersion) |
| Sets the variable portion into internal structures. | |
| virtual char * | setVariableToNet (char *buffer) |
| Sets the variable portion to the net. | |
Protected Attributes | |
| DtSimulationAddress | myRecipient |
| DtSimulationAddress | mySender |
| char * | myNetRep |
| int | myLastAllocatedSize |
| DtString | myMarkingText |
| DtString | myUUID |
| unsigned int | myTimeStamp |
Static Protected Attributes | |
| static DtVrfTDLMessageFactory * | theVrfTDLMessageFactory |
| DtVrfTDLMessage::DtVrfTDLMessage | ( | ) |
default constructor
| DtVrfTDLMessage::DtVrfTDLMessage | ( | const DtVrfTDLMessage & | orig | ) |
copy constructor: shallow; copies values only
|
virtual |
destructor
| const DtVrfTDLMessage& DtVrfTDLMessage::operator= | ( | DtVrfTDLMessage & | orig | ) |
assignment operator: shallow; assigns values only
|
virtual |
TDL Message type.
Reimplemented in DtVrfTDLPPLIMessage, DtVrfTDLStatusMessage, ExampleTDLMessage, DtVrfTDLContactMessage, and DtVrfTDLRemoveMessage.
|
virtual |
Reimplemented in DtVrfTDLPPLIMessage, DtVrfTDLStatusMessage, ExampleTDLMessage, DtVrfTDLContactMessage, and DtVrfTDLRemoveMessage.
|
static |
Reimplemented in DtVrfTDLPPLIMessage, DtVrfTDLStatusMessage, ExampleTDLMessage, DtVrfTDLContactMessage, and DtVrfTDLRemoveMessage.
|
virtual |
Reimplemented in DtVrfTDLPPLIMessage, DtVrfTDLStatusMessage, ExampleTDLMessage, DtVrfTDLContactMessage, and DtVrfTDLRemoveMessage.
|
virtual |
Given the message buffer, get the content type from it.
|
virtual |
Print message.
Reimplemented in DtVrfTDLPPLIMessage, DtVrfTDLStatusMessage, ExampleTDLMessage, DtVrfTDLContactMessage, and DtVrfTDLRemoveMessage.
|
static |
Factory accessors.
|
static |
|
virtual |
The recipient of this message.
|
virtual |
|
virtual |
The sender of this message.
|
virtual |
|
virtual |
The number of bytes on the network for this message. Returns the sum of the fixed and variable sizes.
|
virtual |
The buffer which is the content for this message.
Note that this is not const such that, if neet be, the message content will be created when this is called
|
virtual |
Sets the contents of this object into the memory buffer specified by myNetRep.
It is assumed that the memory has been preallocated to the correct size as per netRepSize(). As per network layout will call setFixedToNet first followed by setVariableToNet
Sets the content from the net by calling setFixedFromNet and setVariableFromNext.
|
virtual |
Returns the size of the fixed portion of this message.
It is assumed that each subclass of this message will subclass from the DtVrfTDLMessageHeader structure to have it's information be contains therein when restoring and setting to the network
Reimplemented in DtVrfTDLPPLIMessage, DtVrfTDLContactMessage, DtVrfTDLStatusMessage, and ExampleTDLMessage.
|
virtual |
Returns the variable data size.
Reimplemented in DtVrfTDLContactMessage, DtVrfTDLStatusMessage, and ExampleTDLMessage.
|
virtual |
Accessor for marking text of the item sending this message.
|
virtual |
|
virtual |
Accessor for the UUID for this item.
|
virtual |
|
virtual |
Accessor for time stamp.
|
protectedvirtual |
Creates the network buffer of the size needed.
|
protectedvirtual |
Sets the fixed portion of the buffer to the net. Returns the pointer at the end of this fixed portion.
Reimplemented in DtVrfTDLPPLIMessage, DtVrfTDLStatusMessage, ExampleTDLMessage, and DtVrfTDLContactMessage.
Sets the fixed portion from the buffer into internal structures and variables.
Returns the message version (passed into variable)
Reimplemented in DtVrfTDLPPLIMessage, ExampleTDLMessage, and DtVrfTDLContactMessage.
|
protectedvirtual |
Sets the variable portion into internal structures.
Returns a pointer at the end of this variable such that a subclass can continue on reading
Reimplemented in DtVrfTDLStatusMessage, ExampleTDLMessage, and DtVrfTDLContactMessage.
Sets the variable portion to the net.
Reimplemented in DtVrfTDLStatusMessage, ExampleTDLMessage, and DtVrfTDLContactMessage.
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |