VR-Forces Developer's Guide
 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.

Inheritance diagram for ExampleTDLMessage:
Inheritance graph
[legend]

Public Member Functions

 ExampleTDLMessage ()
 
 ExampleTDLMessage (const ExampleTDLMessage &orig)
 
const ExampleTDLMessageoperator= (ExampleTDLMessage &orig)
 
virtual ~ExampleTDLMessage ()
 
virtual int tdlMessageType () const
 
virtual DtVrfTDLMessageclone () const
 
virtual void printDataToString (DtString &str)
 
virtual int messageVersion () const
 
virtual int fixedSize () const
 
virtual int variableSize () const
 
virtual void setMessage (const DtString &)
 
const DtStringmessage () const
 
virtual void setLocation (const DtVector &)
 
virtual const DtVectorlocation () const
 
- Public Member Functions inherited from DtVrfTDLMessage
 DtVrfTDLMessage ()
 
 DtVrfTDLMessage (const DtVrfTDLMessage &orig)
 
const DtVrfTDLMessageoperator= (DtVrfTDLMessage &orig)
 
virtual ~DtVrfTDLMessage ()
 
virtual int headerVersion () const
 
virtual int getContentType (const char *buffer)
 
virtual void setRecipient (const DtSimulationAddress &recipient)
 
virtual const DtSimulationAddress & recipient () const
 
virtual void setSender (const DtSimulationAddress &recipient)
 
virtual const DtSimulationAddress & sender () const
 
virtual int netRepSize () const
 
virtual const charnetRep ()
 
virtual void setToNet (char *buffer)
 
virtual bool setFromNet (const char *buffer, int bufferSize)
 
virtual void setMarkingText (const DtString &)
 
virtual const DtStringmarkingText () const
 
virtual void setUUID (const DtString &)
 
virtual const DtStringuuid () const
 
virtual void setTimeStamp (unsigned int)
 
virtual unsigned int timeStamp () const
 

Static Public Member Functions

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

Protected Member Functions

virtual void setFixedToNet (char *buffer)
 
virtual int setFixedFromNet (const char *buffer)
 
virtual const charsetVariableFromNet (const char *buffer, const char *fixedBuffer, int messageVersion)
 
virtual charsetVariableToNet (char *buffer)
 
- Protected Member Functions inherited from DtVrfTDLMessage
virtual charcreateNetworkBuffer ()
 

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
 

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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)