VR-Engage  2.3
Loading...
Searching...
No Matches
CmConfigResponse.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/entity.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 CmConfigResponseMessage.
23constexpr const char* CmConfigResponseMessageType = "entity.cmConfig.response";
24
25/**
26 * \class CmConfigResponseMessage
27 * \brief Response to CmConfigRequestMessage.
28 *
29 * Message type: "entity.cmConfig.response"
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 CmConfig& rhs) const;
51 //! \brief Inequality comparison operator.
52 bool operator!=(const CmConfig& rhs) const;
53
54 std::string myName;
55 std::string myDisplayLabel;
57
58 };
59
60 //! \brief Data payload for CmConfigResponseMessage.
62 {
63 //! \brief Default constructor.
65
66 //! \name Data Members
67 //! \{
68
69 DtEntityIdentifier myEntityId;
70 std::vector<CmConfig> myCmConfigs;
72 //! \}
73
74 //! \name Operators
75 //! \{
76 bool operator==(const CmConfigResponseData& rhs) const;
77 bool operator!=(const CmConfigResponseData& rhs) const;
78 //! \}
79 };
80
81 //! \brief Destructor.
82 virtual ~CmConfigResponseMessage() 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<CmConfig>& getCmConfigs() const;
125 virtual void setCmConfigs(const std::vector<CmConfig>& val);
126
127 virtual bool getAutoCmEnabled() const;
128 virtual void setAutoCmEnabled(bool val);
129 //! \}
130
131 //! \name Serialization
132 //! \{
133 //! \copydoc makVre::DtVreMessage::messageSize()
134 virtual int messageSize() const override;
135
136 //! \brief Decode a message from a byte buffer.
137 //! \param buffer The raw byte buffer to decode from.
138 //! \param length The length of the buffer in bytes.
139 //! \return A dynamically allocated decoded message. Caller takes ownership.
140 static makVre::DtVreMessage* decode(char* buffer, int length);
141
142 //! \brief Get a copy of the message data.
144
145 //! \brief Get a copy of the message data (const).
147 //! \}
148
149 //! \name Operators
150 //! \{
151 bool operator==(const CmConfigResponseMessage& rhs) const;
152 bool operator!=(const CmConfigResponseMessage& rhs) const;
153 //! \}
154
155protected:
157
158 //! \copydoc makVre::DtVreMessage::serialize()
159 virtual void serialize(DtStreamWriter& writer) const override;
160
161 //! \copydoc makVre::DtVreMessage::deserialize()
162 virtual void deserialize(DtStreamReader& reader) override;
163
164protected:
167
169};
170} // namespace makVre
171
virtual const std::vector< CmConfig > & getCmConfigs() const
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual const DtEntityIdentifier & getEntityId() const
CmConfigResponseData myData
Definition CmConfigResponse.h:168
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void setAutoCmEnabled(bool val)
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static const std::string & theType()
Get the message type string for this instance.
virtual void setEntityId(const DtEntityIdentifier &val)
CmConfigResponseData getData()
Get a copy of the message data.
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static CmConfigResponseMessage * create()
Create a copy of the given message.
virtual ~CmConfigResponseMessage() override
Destructor.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
CmConfigResponseData getData() const
Get a copy of the message data (const).
static UInt64 theVersion
Definition CmConfigResponse.h:166
virtual void setCmConfigs(const std::vector< CmConfig > &val)
static CmConfigResponseMessage * createFromData(const CmConfigResponseData data)
Create a new message initialized with the given data.
bool operator==(const CmConfigResponseMessage &rhs) const
virtual int messageSize() const override
Get a copy of the message data.
static CmConfigResponseMessage * createFrom(CmConfigResponseMessage *origMsg)
Create a copy of the given message.
virtual bool getAutoCmEnabled() const
static makVre::DtVreMessageId theMessageId
Definition CmConfigResponse.h:165
bool operator!=(const CmConfigResponseMessage &rhs) const
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
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
constexpr const char * CmConfigResponseMessageType
Message type identifier for CmConfigResponseMessage.
Definition CmConfigResponse.h:23
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
int myAmount
Definition CmConfigResponse.h:56
std::string myName
Definition CmConfigResponse.h:54
void serialize(DtStreamWriter &writer) const
Serialize to a stream writer.
void deserialize(DtStreamReader &reader)
Deserialize from a stream reader.
bool operator==(const CmConfig &rhs) const
Equality comparison operator.
std::string myDisplayLabel
Definition CmConfigResponse.h:55
bool operator!=(const CmConfig &rhs) const
Inequality comparison operator.
int size() const
Get the serialized size in bytes.
Data payload for CmConfigResponseMessage.
Definition CmConfigResponse.h:62
bool operator!=(const CmConfigResponseData &rhs) const
std::vector< CmConfig > myCmConfigs
Definition CmConfigResponse.h:70
bool operator==(const CmConfigResponseData &rhs) const
bool myAutoCmEnabled
Definition CmConfigResponse.h:71
DtEntityIdentifier myEntityId
Definition CmConfigResponse.h:69
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.