18#include "wsf_export.h"
23#include "UtReferenceTracked.hpp"
24#include "UtScriptAccessible.hpp"
96 void SetSerialNumber(
unsigned int aSerialNumber) { mSerialNumber = aSerialNumber; }
166 virtual bool CanBeReplacedBy(
const WsfMessage& aMessage)
const;
203 void PrintDataTagPrecise(std::ostream& aStream, std::streamsize aPrecision)
const;
209 aBuff& mStaticType& mType& mSubType& mDataTag& mSerialNumber& mSizeBits& mPriority;
210 aBuff& mOriginator& mOriginatorIndex;
211 aBuff& mSrcAddr& mDstAddr& mNextHopAddr;
226 unsigned int mSerialNumber;
231 size_t mOriginatorIndex;
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
std::ostream & operator<<(std::ostream &aStream, const WsfTSPI &aTSPI)
Stream out operator (typically, to a file); units are converted on output.
Definition WsfTSPI.cpp:92
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
void Serialize(T &aBuff)
(De)serialization for XIO
Definition WsfAuxDataEnabled.hpp:68
WsfAuxDataEnabled()=default
A base class for messages sent among simulation communication objects, processors and sensors.
Definition WsfMessage.hpp:33
void SetSubType(WsfStringId aSubType)
Definition WsfMessage.hpp:129
const wsf::comm::Address & GetSrcAddr() const
Definition WsfMessage.hpp:142
virtual WsfStringId GetComponentModeId() const
Definition WsfMessage.hpp:180
void SetSimulation(WsfSimulation *aSimulationPtr)
Definition WsfMessage.hpp:60
const wsf::comm::Address & GetDstAddr() const
Definition WsfMessage.hpp:151
void SetType(WsfStringId aType)
Definition WsfMessage.hpp:121
static constexpr size_t cBITS_IN_BYTE
Definition WsfMessage.hpp:36
WsfStringId GetStaticType() const
Definition WsfMessage.hpp:113
void SetSizeBytes(int aSizeBytes)
Definition WsfMessage.hpp:87
WsfMessage(WsfStringId aType)
Constructor for XIO (de)serialization.
Definition WsfMessage.cpp:25
WsfMessage & operator=(const WsfMessage &aRhs)=default
void SetGroup(WsfStringId aGroup) const
Definition WsfMessage.hpp:195
void Serialize(T &aBuff)
(De)serializer for XIO
Definition WsfMessage.hpp:207
WsfStringId GetType() const
Definition WsfMessage.hpp:117
const char * GetScriptClassName() const override
Definition WsfMessage.cpp:235
void SetSerialNumber(unsigned int aSerialNumber)
Definition WsfMessage.hpp:96
void SetPriority(int aPriority)
Definition WsfMessage.hpp:138
const wsf::comm::Address & GetNextHopAddr() const
Definition WsfMessage.hpp:159
void SetDstAddr(const wsf::comm::Address &aDstAddr)
Definition WsfMessage.hpp:155
int GetSizeBytes() const
Definition WsfMessage.hpp:83
size_t GetOriginatorIndex() const
Definition WsfMessage.hpp:71
void SetDataTag(double aDataTag)
Definition WsfMessage.hpp:108
int GetSizeBits() const
Definition WsfMessage.hpp:75
unsigned int GetSerialNumber() const
Definition WsfMessage.hpp:91
static WsfStringId GetTypeId()
Definition WsfMessage.cpp:159
WsfStringId GetOriginator() const
Definition WsfMessage.hpp:64
virtual WsfMessage * Clone() const
Definition WsfMessage.cpp:150
WsfMessage(const WsfMessage &aSrc)=default
WsfStringId GetSubType() const
Definition WsfMessage.hpp:125
void SetSizeBits(int aSizeBits)
Definition WsfMessage.hpp:79
int GetPriority() const
Definition WsfMessage.hpp:134
virtual WsfStringId GetComponentNameId() const
Definition WsfMessage.hpp:176
WsfStringId GetGroup() const
Definition WsfMessage.hpp:192
double GetDataTag() const
Definition WsfMessage.hpp:104
virtual WsfStringId GetComponentTypeId() const
Definition WsfMessage.hpp:178
WsfSimulation * GetSimulation() const
Get the simulation that owns the message.
Definition WsfMessage.hpp:55
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Definition WsfCommAddress.hpp:57