VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtAdminMessage Class Reference
Inheritance diagram for DtAdminMessage:
Inheritance graph
[legend]

Public Member Functions

 DtAdminMessage ()
 default constructor
 DtAdminMessage (const DtAdminMessage &orig)
virtual ~DtAdminMessage ()
 destructor
virtual DtAdminContentadminContent () const
 Returns a pointer to the DtAdminContent object in the message.
virtual void setAdminContent (DtAdminContent *content)
 Sets the content of the message.
virtual int contentCategoryType () const
virtual const
DtAdminContentMessageType
contentType () const
virtual DtSimMessageclone () const
 Required override. Clones itself and the DtAdminContnet it points to.
virtual int netRepSize () const
virtual bool setFromNet (const char *networkBuffer, unsigned contentSize)
 Extracts the content type, creates the content (using the admin content factory), and then tells the content to fill itself in from the network buffer.
virtual bool setToNet ()
 Fill in our content type, tell the content to fill itself out, and then copy its buffer into ours.
virtual void printDataToString (DtString &str)
 Print message.
- Public Member Functions inherited from DtVrfObjectMessage
 DtVrfObjectMessage ()
 default constructor
 DtVrfObjectMessage (const DtVrfObjectMessage &orig)
 copy constructor: shallow; copies values only.
const DtVrfObjectMessageoperator= (const DtVrfObjectMessage &orig)
 assignment operator: shallow; assigns values only.
virtual ~DtVrfObjectMessage ()
 destructor
virtual int messageType () const
virtual int radioMessageType () const
virtual void setRecipient (const DtString &recipient)
virtual const DtStringrecipient () const
virtual void setSender (const DtString &sender)
virtual const DtStringsender () const
virtual charnetRep ()
 Returns a pointer to the simulation network representation of this message.
virtual void setReceiver (const DtString &receiver)
 The name or echelon ID of the intended receiver of the message.
virtual const DtStringreceiver () const
 The name or echelon ID of the intended receiver of the message.
virtual void setReceiverIsEchelonId (bool yesNo)
 The receiver address is either an echelon Id String or a name string.
virtual bool receiverIsEchelonId () const
 The receiver address is either an echelon Id String or a name string.
virtual void setTransmitter (const DtString &transmitter)
 The name or echelon ID of the sender of the message.
virtual const DtStringtransmitter () const
 The name or echelon ID of the sender of the message.
virtual void setTransmitterIsEchelonId (bool yesNo)
 The transmitter address is either an echelon Id String or a name string.
virtual bool transmitterIsEchelonId () const
 The transmitter address is either an echelon Id String or a name string.
- Public Member Functions inherited from DtSimMessage
 DtSimMessage ()
 default constructor
 DtSimMessage (const DtSimMessage &orig)
 copy constructor
const DtSimMessageoperator= (const DtSimMessage &orig)
 assignment operator
virtual ~DtSimMessage ()
 destructor

Static Public Member Functions

static DtVrfObjectMessagecreator ()
- Static Public Member Functions inherited from DtVrfObjectMessage
static DtVrfObjectMessagecreateVrfObjectMessage (int type)
 Creates a new DtVrfObjectMessage subclass using the static factory.
static DtVrfObjectMessagecreateRadioMessage (int type)
static void addVrfObjectMessageCreatorFcn (int type, DtVrfObjectMessageCreatorFcn fcn)
 Adds a new creator function to the DtVrfObjectMessageFactory.
static void addRadioMessageCreatorFcn (int type, DtVrfObjectMessageCreatorFcn fcn)
static void setFactory (DtVrfObjectMessageFactory *factory)
static DtVrfObjectMessageFactoryfactory ()

Protected Member Functions

const DtAdminMessageoperator= (DtAdminMessage &orig)
- Protected Member Functions inherited from DtVrfObjectMessage
virtual charcreateNetworkBuffer ()

Protected Attributes

DtAdminContentmyAdminContent
bool myOwnContent
- Protected Attributes inherited from DtVrfObjectMessage
DtString myTransmitter
DtString myReceiver
bool myTransmitterIsEchelonId
bool myReceiverIsEchelonId
charmyNetRep

Additional Inherited Members

- Static Protected Attributes inherited from DtVrfObjectMessage
static DtVrfObjectMessageFactorymyFactory

Constructor & Destructor Documentation

DtAdminMessage::DtAdminMessage ( )

default constructor

DtAdminMessage::DtAdminMessage ( const DtAdminMessage orig)
virtual DtAdminMessage::~DtAdminMessage ( )
virtual

destructor

Member Function Documentation

const DtAdminMessage& DtAdminMessage::operator= ( DtAdminMessage orig)
protected
virtual DtAdminContent* DtAdminMessage::adminContent ( ) const
virtual

Returns a pointer to the DtAdminContent object in the message.

virtual void DtAdminMessage::setAdminContent ( DtAdminContent content)
virtual

Sets the content of the message.

Note
This method only keeps a pointer to the content, and does not clone it. The caller must ensure that the content exists for the lifetime of this message.
virtual int DtAdminMessage::contentCategoryType ( ) const
virtual
Returns
DtAdminMessageType.

Implements DtVrfObjectMessage.

virtual const DtAdminContentMessageType& DtAdminMessage::contentType ( ) const
virtual
Returns
the type of the content.
virtual DtSimMessage* DtAdminMessage::clone ( ) const
virtual

Required override. Clones itself and the DtAdminContnet it points to.

Implements DtSimMessage.

virtual int DtAdminMessage::netRepSize ( ) const
virtual
Returns
the serialization size of this message.

Reimplemented from DtVrfObjectMessage.

virtual bool DtAdminMessage::setFromNet ( const char networkBuffer,
unsigned  contentSize 
)
virtual

Extracts the content type, creates the content (using the admin content factory), and then tells the content to fill itself in from the network buffer.

Reimplemented from DtVrfObjectMessage.

virtual bool DtAdminMessage::setToNet ( )
virtual

Fill in our content type, tell the content to fill itself out, and then copy its buffer into ours.

Reimplemented from DtVrfObjectMessage.

virtual void DtAdminMessage::printDataToString ( DtString str)
virtual

Print message.

Reimplemented from DtVrfObjectMessage.

static DtVrfObjectMessage* DtAdminMessage::creator ( )
static

Member Data Documentation

DtAdminContent* DtAdminMessage::myAdminContent
protected
bool DtAdminMessage::myOwnContent
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)