15 #include <vlutil/vlNetTypes.h>
17 #include <vlutil/vlSmartPointers.h>
52 virtual int contentCategoryType()
const = 0;
55 virtual int radioMessageType()
const;
70 virtual void setReceiver(
const DtUUID& receiver);
71 virtual const DtUUID& receiver()
const;
82 virtual void setTransmitter(
const DtUUID& transmitter);
83 virtual const DtUUID& transmitter()
const;
85 virtual void setSender(
const DtUUID& transmitter) { setTransmitter(transmitter); };
91 virtual char* netRep();
95 virtual int netRepSize()
const;
98 virtual bool setFromNet(
const char* networkBuffer,
99 unsigned contentSize);
103 virtual bool setToNet();
114 static void addVrfObjectMessageCreatorFcn(
int type,
117 static void addRadioMessageCreatorFcn(
int type,
125 virtual int scenarioRunId()
const;
126 virtual void setScenarioRunId(
int);
129 virtual char* createNetworkBuffer();
141 namespace DtBufferSerialize
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
DtUUID myTransmitter
Definition: vrfObjectMessage.h:132
DtBoost::shared_ptr< DtVrfObjectMessage > DtVrfObjectMessagePtr
Boost shared pointer to a DtVrfObjectMessage.
Definition: vrfObjectMessage.h:167
virtual void setSender(const DtUUID &transmitter)
Note that sending/receiving by echelon id is no longer supported. Only supported sending by name or U...
Definition: vrfObjectMessage.h:85
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
const char DtVrfObjectMessageFrontEndAddress[]
Any messages sent to this address to be received by any VR-Forces front ends or other remote control ...
Definition: vrfObjectMessage.h:25
Contains the DtUUID class declaration.
DtUUID myReceiver
Definition: vrfObjectMessage.h:133
File: simMsg.h.
Definition: simMessage.h:35
virtual void setRecipient(const DtUUID &receiver)
Note that sending/receiving by echelon id is no longer supported. Only supported sending by name or U...
Definition: vrfObjectMessage.h:73
int myScenarioRunId
Definition: vrfObjectMessage.h:135
DtVrfObjectMessage *(* DtVrfObjectMessageCreatorFcn)()
Creator function for DtVrfObjectMessage instances.
Definition: vrfObjectMessageFactory.h:21
virtual void printDataToString(DtString &str)
print the message
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer. buffer must have at least the number of bytes returned...
The base class for all messages to/from a specific DtVrfObject. Various subclasses of this class will...
Definition: vrfObjectMessage.h:30
virtual const DtUUID & recipient() const
Note that sending/receiving by echelon id is no longer supported. Only supported sending by name or U...
Definition: vrfObjectMessage.h:74
virtual const DtUUID & sender() const
Note that sending/receiving by echelon id is no longer supported. Only supported sending by name or U...
Definition: vrfObjectMessage.h:86
virtual int messageType() const =0
A pure virtual function that derived classes define to return the appropriate message type category (...
DtVrfObjectMessageFactory is a hashlist of DtVrfObjectMessage creator functions indexed by the intege...
Definition: vrfObjectMessageFactory.h:25
char * myNetRep
Definition: vrfObjectMessage.h:134
const char DtVrfObjectMessageSendToAll[]
DtVrfObjectMessage.
Definition: vrfObjectMessage.h:22
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
DtBoost::shared_ptr< const DtVrfObjectMessage > DtVrfObjectMessageConstPtr
Boost shared pointer to a const DtVrfObjectMessage.
Definition: vrfObjectMessage.h:165
const DtSimMessage & operator=(const DtSimMessage &orig)
assignment operator
static DtVrfObjectMessageFactory * myFactory
Definition: vrfObjectMessage.h:137