VR-Engage  2.3
Loading...
Searching...
No Matches
vrfResourceUpdate.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2026 MAK Technologies, Inc.
3** All rights reserved.
4*********************************************************************************/
5
6/**
7* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8* !!!!!!!!!This is an auto-generated file. Any changes will be destroyed!!!!!!!!!!!
9* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10* Generated from: /home/data/exports/DEV-CAM-BML-305/nightly/3375/libsrc/framework/vreMessages/vrfResources.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/entityIdentifier.h>
18#include <vector>
19
20namespace makVre
21{
22//! \brief Message type identifier for VrfResourceUpdateMessage.
23constexpr const char* VrfResourceUpdateMessageType = "vrf.resource.update";
24
25/**
26 * \class VrfResourceUpdateMessage
27 * \brief DtVrfRemoteControlConnector converts incoming makVrfEvents::DtResourceResponseEvent messages into individual VrfResourceUpdateMessage events.
28 *
29 * Message type: "vrf.resource.update"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36
37 //! \brief Nested data structure.
39 {
40 //! \brief Default constructor.
42
43 //! \brief Get the serialized size in bytes.
44 int size() const;
45 //! \brief Serialize to a stream writer.
46 void serialize(DtStreamWriter& writer) const;
47 //! \brief Deserialize from a stream reader.
49 //! \brief Equality comparison operator.
50 bool operator==(const Resource& rhs) const;
51 //! \brief Inequality comparison operator.
52 bool operator!=(const Resource& rhs) const;
53
54 DtEntityType myResourceType;
55 std::string myResourceName;
58
59 };
60
61 //! \brief Data payload for VrfResourceUpdateMessage.
63 {
64 //! \brief Default constructor.
66
67 //! \name Data Members
68 //! \{
69
70 DtEntityIdentifier myEntityId;
71 std::vector<Resource> myResources;
72 //! \}
73
74 //! \name Operators
75 //! \{
76 bool operator==(const VrfResourceUpdateData& rhs) const;
77 bool operator!=(const VrfResourceUpdateData& rhs) const;
78 //! \}
79 };
80
81 //! \brief Destructor.
82 virtual ~VrfResourceUpdateMessage() override;
83
84 //! \name Static Creators
85 //! \{
86 //! \brief Create a new default instance.
87 //! \return A dynamically allocated default message. Caller takes ownership.
89
90 //! \brief Create a copy of the given message.
91 //! \param origMsg The message to copy. Must not be null.
92 //! \return A dynamically allocated copy. Caller takes ownership.
94
95 //! \brief Create a new message initialized with the given data.
96 //! \param data The data payload to initialize the message with.
97 //! \return A dynamically allocated message. Caller takes ownership.
99 //! \}
100
101 //! \name Type Identity
102 //! \{
103 //! \brief Get the message type string for this message class.
104 static const std::string& theType();
105
106 //! \brief Get the message identifier for this message class.
108
109 //! \brief Get the version number for this message class.
111
112 //! \brief Get the message type string for this instance.
113 virtual const std::string& type() const override;
114
115 //! \brief Get the message identifier for this instance.
116 virtual const makVre::DtVreMessageId& messageId() const override;
117 //! \}
118
119 //! \name Accessors
120 //! \{
121 virtual const DtEntityIdentifier& getEntityId() const;
122 virtual void setEntityId(const DtEntityIdentifier& val);
123
124 virtual const std::vector<Resource>& getResources() const;
125 virtual void setResources(const std::vector<Resource>& val);
126 //! \}
127
128 //! \name Serialization
129 //! \{
130 //! \copydoc makVre::DtVreMessage::messageSize()
131 virtual int messageSize() const override;
132
133 //! \brief Decode a message from a byte buffer.
134 //! \param buffer The raw byte buffer to decode from.
135 //! \param length The length of the buffer in bytes.
136 //! \return A dynamically allocated decoded message. Caller takes ownership.
137 static makVre::DtVreMessage* decode(char* buffer, int length);
138
139 //! \brief Get a copy of the message data.
141
142 //! \brief Get a copy of the message data (const).
144 //! \}
145
146 //! \name Operators
147 //! \{
148 bool operator==(const VrfResourceUpdateMessage& rhs) const;
149 bool operator!=(const VrfResourceUpdateMessage& rhs) const;
150 //! \}
151
152protected:
154
155 //! \copydoc makVre::DtVreMessage::serialize()
156 virtual void serialize(DtStreamWriter& writer) const override;
157
158 //! \copydoc makVre::DtVreMessage::deserialize()
159 virtual void deserialize(DtStreamReader& reader) override;
160
161protected:
164
166};
167} // namespace makVre
168
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
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
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
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.