17#include <vlpi/entityIdentifier.h>
113 virtual const std::string&
type()
const override;
Reader class for decoding values from a byte array.
Definition byteStream.h:43
Writer class for encoding values into a byte array.
Definition byteStream.h:166
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Message identifier class for the VREngage messaging system.
Definition vreMessageId.h:35
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual void setResources(const std::vector< Resource > &val)
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual ~VrfResourceUpdateMessage() override
Destructor.
virtual const std::vector< Resource > & getResources() const
VrfResourceUpdateMessage()
static VrfResourceUpdateMessage * createFromData(const VrfResourceUpdateData data)
Create a new message initialized with the given data.
static const std::string & theType()
Get the message type string for this instance.
static makVre::DtVreMessageId theMessageId
Definition vrfResourceUpdate.h:162
VrfResourceUpdateData myData
Definition vrfResourceUpdate.h:165
bool operator==(const VrfResourceUpdateMessage &rhs) const
virtual int messageSize() const override
Get a copy of the message data.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
bool operator!=(const VrfResourceUpdateMessage &rhs) const
virtual void setEntityId(const DtEntityIdentifier &val)
static VrfResourceUpdateMessage * create()
Create a copy of the given message.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
VrfResourceUpdateData getData()
Get a copy of the message data.
static VrfResourceUpdateMessage * createFrom(VrfResourceUpdateMessage *origMsg)
Create a copy of the given message.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual const std::string & type() const override
Get the message type string for this instance.
virtual const DtEntityIdentifier & getEntityId() const
static UInt64 theVersionNumber()
Get the version number for this message class.
VrfResourceUpdateData getData() const
Get a copy of the message data (const).
static UInt64 theVersion
Definition vrfResourceUpdate.h:163
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
!
Definition glsVreMessageUtil.h:50
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * VrfResourceUpdateMessageType
Message type identifier for VrfResourceUpdateMessage.
Definition vrfResourceUpdate.h:23
void deserialize(DtStreamReader &reader)
Deserialize from a stream reader.
bool operator!=(const Resource &rhs) const
Inequality comparison operator.
DtEntityType myResourceType
Definition vrfResourceUpdate.h:54
bool operator==(const Resource &rhs) const
Equality comparison operator.
int size() const
Get the serialized size in bytes.
double myFullAmount
Definition vrfResourceUpdate.h:57
std::string myResourceName
Definition vrfResourceUpdate.h:55
void serialize(DtStreamWriter &writer) const
Serialize to a stream writer.
double myCurrentAmount
Definition vrfResourceUpdate.h:56
Resource()
Default constructor.
Data payload for VrfResourceUpdateMessage.
Definition vrfResourceUpdate.h:63
bool operator!=(const VrfResourceUpdateData &rhs) const
bool operator==(const VrfResourceUpdateData &rhs) const
DtEntityIdentifier myEntityId
Definition vrfResourceUpdate.h:70
std::vector< Resource > myResources
Definition vrfResourceUpdate.h:71
VrfResourceUpdateData()
Default constructor.
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.