VR-Forces 4.10 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
DtVrfTDLContactMessage Class Reference
Inheritance diagram for DtVrfTDLContactMessage:
Inheritance graph
[legend]

Public Member Functions

 DtVrfTDLContactMessage ()
 default constructor More...
 
 DtVrfTDLContactMessage (const DtVrfTDLContactMessage &orig)
 copy constructor: shallow; copies values only More...
 
const DtVrfTDLContactMessageoperator= (DtVrfTDLContactMessage &orig)
 assignment operator: shallow; assigns values only More...
 
virtual ~DtVrfTDLContactMessage ()
 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 void setOriginatorIdentifier (const DtString &)
 Accessor for originator id of object. More...
 
virtual const DtStringoriginatorIdentifier () const
 
virtual void setOriginatorMarkingText (const DtString &)
 Accessor for originator marking text. More...
 
virtual const DtStringoriginatorMarkingText () const
 
virtual int fixedSize () const
 Fixed size of this message. More...
 
virtual int variableSize () const
 Returns the variable data size. Size of all the resources. More...
 
- Public Member Functions inherited from DtVrfTDLPPLIMessage
 DtVrfTDLPPLIMessage ()
 default constructor More...
 
 DtVrfTDLPPLIMessage (const DtVrfTDLPPLIMessage &orig)
 copy constructor: shallow; copies values only More...
 
const DtVrfTDLPPLIMessageoperator= (DtVrfTDLPPLIMessage &orig)
 assignment operator: shallow; assigns values only More...
 
virtual ~DtVrfTDLPPLIMessage ()
 destructor More...
 
virtual void setLocation (const DtVector &)
 Accessor for location of object. More...
 
virtual const DtVectorlocation () const
 
virtual void setExpirationTime (double)
 Expiration time of report. More...
 
virtual double expirationTime () const
 
virtual void setEntityType (const DtEntityType &)
 Accessor for entity type. More...
 
virtual const DtEntityType & entityType () const
 
virtual void setForce (int)
 Accessor for force. More...
 
virtual int force () const
 
virtual void setSpeed (double)
 Accessor for speed (m/s) More...
 
virtual double speed () const
 
virtual void setHeading (double)
 Accessor for heading (radians) More...
 
virtual double heading () const
 
virtual void setDomain (const DtString &)
 Sets the domain to be used in transport. More...
 
const DtStringdomain () 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 DtVrfTDLPPLIMessage
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

DtString myOriginatorIdentifier
 
DtString myOriginatorMarkingText
 
- Protected Attributes inherited from DtVrfTDLPPLIMessage
DtVector myLocation
 
DtEntityType myEntityType
 
int myForce
 
double myHeading
 
double mySpeed
 
DtString myDomain
 
double myExpirationTime
 
- 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

DtVrfTDLContactMessage::DtVrfTDLContactMessage ( )

default constructor

DtVrfTDLContactMessage::DtVrfTDLContactMessage ( const DtVrfTDLContactMessage orig)

copy constructor: shallow; copies values only

virtual DtVrfTDLContactMessage::~DtVrfTDLContactMessage ( )
virtual

destructor

Member Function Documentation

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

assignment operator: shallow; assigns values only

virtual int DtVrfTDLContactMessage::tdlMessageType ( ) const
virtual

TDL Message type.

Reimplemented from DtVrfTDLPPLIMessage.

virtual DtVrfTDLMessage* DtVrfTDLContactMessage::clone ( ) const
virtual

Reimplemented from DtVrfTDLPPLIMessage.

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

Print message.

Reimplemented from DtVrfTDLPPLIMessage.

virtual int DtVrfTDLContactMessage::messageVersion ( ) const
virtual

Reimplemented from DtVrfTDLPPLIMessage.

virtual void DtVrfTDLContactMessage::setOriginatorIdentifier ( const DtString )
virtual

Accessor for originator id of object.

virtual const DtString& DtVrfTDLContactMessage::originatorIdentifier ( ) const
virtual
virtual void DtVrfTDLContactMessage::setOriginatorMarkingText ( const DtString )
virtual

Accessor for originator marking text.

virtual const DtString& DtVrfTDLContactMessage::originatorMarkingText ( ) const
virtual
virtual int DtVrfTDLContactMessage::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 DtVrfTDLPPLIMessage.

virtual int DtVrfTDLContactMessage::variableSize ( ) const
virtual

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

Reimplemented from DtVrfTDLMessage.

virtual void DtVrfTDLContactMessage::setFixedToNet ( char buffer)
protectedvirtual

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

Reimplemented from DtVrfTDLPPLIMessage.

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

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

Reimplemented from DtVrfTDLPPLIMessage.

virtual const char* DtVrfTDLContactMessage::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* DtVrfTDLContactMessage::setVariableToNet ( char buffer)
protectedvirtual

Sets the variable portion to the net.

Reimplemented from DtVrfTDLMessage.

Member Data Documentation

DtString DtVrfTDLContactMessage::myOriginatorIdentifier
protected
DtString DtVrfTDLContactMessage::myOriginatorMarkingText
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)