VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
ExampleTDLMessage Class Reference

The variable portion is the string of the message itself. More...

Inheritance diagram for ExampleTDLMessage:
Inheritance graph
[legend]

Public Member Functions

 ExampleTDLMessage ()
 default constructor More...
 
 ExampleTDLMessage (const ExampleTDLMessage &orig)
 copy constructor: shallow; copies values only More...
 
const ExampleTDLMessageoperator= (ExampleTDLMessage &orig)
 assignment operator: shallow; assigns values only More...
 
virtual ~ExampleTDLMessage ()
 destructor More...
 
virtual int tdlMessageType () const
 TDL Message type. More...
 
virtual DtVrfTDLMessageclone () const
 
virtual void printDataToString (DtString &str)
 Print message. More...
 
virtual int messageVersion () const
 
virtual int fixedSize () const
 Fixed size of this message. More...
 
virtual int variableSize () const
 Returns the variable data size. Size of all the Statuss. More...
 
virtual void setMessage (const DtString &)
 Set message. More...
 
const DtStringmessage () const
 
virtual void setLocation (const DtVector &)
 Accessor for location of object. More...
 
virtual const DtVectorlocation () const
 
- Public Member Functions inherited from DtVrfTDLMessage
 DtVrfTDLMessage ()
 default constructor More...
 
 DtVrfTDLMessage (const DtVrfTDLMessage &orig)
 copy constructor: shallow; copies values only More...
 
const DtVrfTDLMessageoperator= (DtVrfTDLMessage &orig)
 assignment operator: shallow; assigns values only More...
 
virtual ~DtVrfTDLMessage ()
 destructor More...
 
virtual int headerVersion () const
 
virtual int getContentType (const char *buffer)
 Given the message buffer, get the content type from it. More...
 
virtual void setRecipient (const DtSimulationAddress &recipient)
 The recipient of this message. More...
 
virtual const DtSimulationAddress & recipient () const
 
virtual void setSender (const DtSimulationAddress &recipient)
 The sender of this message. More...
 
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. More...
 
virtual const charnetRep ()
 The buffer which is the content for this message. More...
 
virtual void setToNet (char *buffer)
 Sets the contents of this object into the memory buffer specified by myNetRep. More...
 
virtual bool setFromNet (const char *buffer, int bufferSize)
 Sets the content from the net by calling setFixedFromNet and setVariableFromNext. More...
 
virtual void setMarkingText (const DtString &)
 Accessor for marking text of the item sending this message. More...
 
virtual const DtStringmarkingText () const
 
virtual void setUUID (const DtString &)
 Accessor for the UUID for this item. More...
 
virtual const DtStringuuid () const
 
virtual void setTimeStamp (unsigned int)
 Accessor for time stamp. More...
 
virtual unsigned int timeStamp () const
 

Static Public Member Functions

static DtVrfTDLMessagecreator ()
 
- Static Public Member Functions inherited from DtVrfTDLMessage
static DtVrfTDLMessagecreator ()
 
static void setFactory (DtVrfTDLMessageFactory *)
 Factory accessors. More...
 
static DtVrfTDLMessageFactoryfactory ()
 

Protected Member Functions

virtual void setFixedToNet (char *buffer)
 Sets the fixed potion to the net. Must call parent method first. More...
 
virtual int setFixedFromNet (const char *buffer)
 Sets the fixed portion from the buffer into internal structures and variables. More...
 
virtual const charsetVariableFromNet (const char *buffer, const char *fixedBuffer, int messageVersion)
 Sets the variable portion into internal structures. More...
 
virtual charsetVariableToNet (char *buffer)
 Sets the variable portion to the net. More...
 
- Protected Member Functions inherited from DtVrfTDLMessage
virtual charcreateNetworkBuffer ()
 Creates the network buffer of the size needed. More...
 

Protected Attributes

DtVector myTgtLocation
 
DtString myTgtMessage
 
- Protected Attributes inherited from DtVrfTDLMessage
DtSimulationAddress myRecipient
 
DtSimulationAddress mySender
 
charmyNetRep
 
int myLastAllocatedSize
 
DtString myMarkingText
 
DtString myUUID
 
unsigned int myTimeStamp
 

Additional Inherited Members

- Static Protected Attributes inherited from DtVrfTDLMessage
static DtVrfTDLMessageFactorytheVrfTDLMessageFactory
 

Detailed Description

The variable portion is the string of the message itself.

Constructor & Destructor Documentation

ExampleTDLMessage::ExampleTDLMessage ( )

default constructor

ExampleTDLMessage::ExampleTDLMessage ( const ExampleTDLMessage orig)

copy constructor: shallow; copies values only

virtual ExampleTDLMessage::~ExampleTDLMessage ( )
virtual

destructor

Member Function Documentation

const ExampleTDLMessage& ExampleTDLMessage::operator= ( ExampleTDLMessage orig)

assignment operator: shallow; assigns values only

virtual int ExampleTDLMessage::tdlMessageType ( ) const
virtual

TDL Message type.

Reimplemented from DtVrfTDLMessage.

virtual DtVrfTDLMessage* ExampleTDLMessage::clone ( ) const
virtual

Reimplemented from DtVrfTDLMessage.

static DtVrfTDLMessage* ExampleTDLMessage::creator ( )
static
virtual void ExampleTDLMessage::printDataToString ( DtString str)
virtual

Print message.

Reimplemented from DtVrfTDLMessage.

virtual int ExampleTDLMessage::messageVersion ( ) const
virtual

Reimplemented from DtVrfTDLMessage.

virtual int ExampleTDLMessage::fixedSize ( ) const
virtual

Fixed size of this message.

Do not need to call parent method if this as the fixed portion will contain the header, as all messages structures are expected to be subclassed from the TDL message header

Reimplemented from DtVrfTDLMessage.

virtual int ExampleTDLMessage::variableSize ( ) const
virtual

Returns the variable data size. Size of all the Statuss.

Reimplemented from DtVrfTDLMessage.

virtual void ExampleTDLMessage::setMessage ( const DtString )
virtual

Set message.

const DtString& ExampleTDLMessage::message ( ) const
virtual void ExampleTDLMessage::setLocation ( const DtVector )
virtual

Accessor for location of object.

virtual const DtVector& ExampleTDLMessage::location ( ) const
virtual
virtual void ExampleTDLMessage::setFixedToNet ( char buffer)
protectedvirtual

Sets the fixed potion to the net. Must call parent method first.

Reimplemented from DtVrfTDLMessage.

virtual int ExampleTDLMessage::setFixedFromNet ( const char buffer)
protectedvirtual

Sets the fixed portion from the buffer into internal structures and variables.

Reimplemented from DtVrfTDLMessage.

virtual const char* ExampleTDLMessage::setVariableFromNet ( const char buffer,
const char fixedBuffer,
int  messageVersion 
)
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 from DtVrfTDLMessage.

virtual char* ExampleTDLMessage::setVariableToNet ( char buffer)
protectedvirtual

Sets the variable portion to the net.

Reimplemented from DtVrfTDLMessage.

Member Data Documentation

DtVector ExampleTDLMessage::myTgtLocation
protected
DtString ExampleTDLMessage::myTgtMessage
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)