![]() |
VR-Forces 4.3.1 Class Documentation
|
The base class for all messages to/from a specific DtVrfObject. More...

Public Member Functions | |
| DtVrfObjectMessage () | |
| default constructor | |
| DtVrfObjectMessage (const DtVrfObjectMessage &orig) | |
| copy constructor: shallow; copies values only. | |
| const DtVrfObjectMessage & | operator= (const DtVrfObjectMessage &orig) |
| assignment operator: shallow; assigns values only. | |
| virtual | ~DtVrfObjectMessage () |
| destructor | |
| virtual int | messageType () const |
| virtual int | contentCategoryType () const =0 |
| virtual int | radioMessageType () const |
| virtual void | setRecipient (const DtString &recipient) |
| virtual const DtString & | recipient () const |
| virtual void | setSender (const DtString &sender) |
| virtual const DtString & | sender () const |
| virtual char * | netRep () |
| Returns a pointer to the simulation network representation of this message. | |
| virtual int | netRepSize () const |
| Returns the size of the simulation network representation of this message. | |
| virtual bool | setFromNet (const char *networkBuffer, unsigned contentSize) |
| Fills in the message from the network buffer. | |
| virtual bool | setToNet () |
| Fill in our network representation. | |
| virtual void | printDataToString (DtString &str) |
| Print message. | |
| virtual void | setReceiver (const DtString &receiver) |
| The name or echelon ID of the intended receiver of the message. | |
| virtual const DtString & | receiver () 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 DtString & | transmitter () 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. | |
Static Public Member Functions | |
| static DtVrfObjectMessage * | createVrfObjectMessage (int type) |
| Creates a new DtVrfObjectMessage subclass using the static factory. | |
| static DtVrfObjectMessage * | createRadioMessage (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 DtVrfObjectMessageFactory * | factory () |
Protected Member Functions | |
| virtual char * | createNetworkBuffer () |
Protected Attributes | |
| DtString | myTransmitter |
| DtString | myReceiver |
| bool | myTransmitterIsEchelonId |
| bool | myReceiverIsEchelonId |
| char * | myNetRep |
Static Protected Attributes | |
| static DtVrfObjectMessageFactory * | myFactory |
The base class for all messages to/from a specific DtVrfObject.
Various subclasses of this class will have different types of contents, such as tasks or set data requests.
| DtVrfObjectMessage::DtVrfObjectMessage | ( | ) |
default constructor
| DtVrfObjectMessage::DtVrfObjectMessage | ( | const DtVrfObjectMessage & | orig | ) |
copy constructor: shallow; copies values only.
|
virtual |
destructor
| const DtVrfObjectMessage& DtVrfObjectMessage::operator= | ( | const DtVrfObjectMessage & | orig | ) |
assignment operator: shallow; assigns values only.
|
virtual |
Implements DtSimMessage.
|
pure virtual |
Implemented in DtTaskMessage, DtReportMessage, DtSetDataRequestMessage, and DtAdminMessage.
|
virtual |
|
virtual |
The name or echelon ID of the intended receiver of the message.
|
virtual |
The name or echelon ID of the intended receiver of the message.
|
virtual |
The receiver address is either an echelon Id String or a name string.
This boolean determines which it is.
|
virtual |
The receiver address is either an echelon Id String or a name string.
This boolean determines which it is.
|
virtual |
The name or echelon ID of the sender of the message.
setTransmitterIsEchelonId() and transmitterIsEchelonId() indicates if it is a name or echelon ID. This may be set to DtVrfObjectMessageFrontEndAddress if the message was sent by a VRF remote control application, like VR-Forces GUI.
|
virtual |
The name or echelon ID of the sender of the message.
setTransmitterIsEchelonId() and transmitterIsEchelonId() indicates if it is a name or echelon ID. This may be set to DtVrfObjectMessageFrontEndAddress if the message was sent by a VRF remote control application, like VR-Forces GUI.
|
virtual |
The transmitter address is either an echelon Id String or a name string.
This boolean determines which it is. By default, this value is true.
|
virtual |
The transmitter address is either an echelon Id String or a name string.
This boolean determines which it is. By default, this value is true.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Returns a pointer to the simulation network representation of this message.
|
virtual |
Returns the size of the simulation network representation of this message.
This size includes any task, set data, or report contents.
Reimplemented in DtTaskMessage, DtReportMessage, DtSetDataRequestMessage, and DtAdminMessage.
|
virtual |
Fills in the message from the network buffer.
Reimplemented in DtTaskMessage, DtReportMessage, DtSetDataRequestMessage, and DtAdminMessage.
|
virtual |
Fill in our network representation.
Reimplemented in DtTaskMessage, DtReportMessage, DtSetDataRequestMessage, and DtAdminMessage.
|
virtual |
Print message.
Reimplemented from DtSimMessage.
Reimplemented in DtTaskMessage, DtReportMessage, DtSetDataRequestMessage, and DtAdminMessage.
|
static |
Creates a new DtVrfObjectMessage subclass using the static factory.
|
static |
|
static |
Adds a new creator function to the DtVrfObjectMessageFactory.
|
static |
|
static |
|
static |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |