VR-Engage  2.3
Loading...
Searching...
No Matches
glsConfigResponse.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/glsProps.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/entityIdentifier.h>
18#include <string>
19#include <vector>
20
21namespace makVre
22{
23//! \brief Message type identifier for GlsConfigResponseMessage.
24constexpr const char* GlsConfigResponseMessageType = "gls.config.response";
25
26/**
27 * \class GlsConfigResponseMessage
28 * \brief Response to GlsConfigRequestMessage. Contains role-level configuration for this GLStudio cockpit element.
29 *
30 * Message type: "gls.config.response"
31 *
32 * \note This is an auto-generated class. Do not modify directly.
33 */
35{
36public:
37
38 //! \brief Nested data structure.
40 {
41 //! \brief Default constructor.
43
44 //! \brief Get the serialized size in bytes.
45 int size() const;
46 //! \brief Serialize to a stream writer.
47 void serialize(DtStreamWriter& writer) const;
48 //! \brief Deserialize from a stream reader.
50 //! \brief Equality comparison operator.
51 bool operator==(const KeyValuePair& rhs) const;
52 //! \brief Inequality comparison operator.
53 bool operator!=(const KeyValuePair& rhs) const;
54
55 std::string myKey;
56 std::string myValue;
57
58 };
59
60 //! \brief Data payload for GlsConfigResponseMessage.
62 {
63 //! \brief Default constructor.
65
66 //! \name Data Members
67 //! \{
68
69 DtEntityIdentifier myHostId;
70 std::string myPanelId;
71 std::vector<KeyValuePair> myConfig;
72 //! \}
73
74 //! \name Operators
75 //! \{
76 bool operator==(const GlsConfigResponseData& rhs) const;
77 bool operator!=(const GlsConfigResponseData& rhs) const;
78 //! \}
79 };
80
81 //! \brief Destructor.
82 virtual ~GlsConfigResponseMessage() 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& getHostId() const;
122 virtual void setHostId(const DtEntityIdentifier& val);
123
124 virtual const std::string& getPanelId() const;
125 virtual void setPanelId(const std::string& val);
126
127 virtual const std::vector<KeyValuePair>& getConfig() const;
128 virtual void setConfig(const std::vector<KeyValuePair>& 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 GlsConfigResponseMessage& rhs) const;
152 bool operator!=(const GlsConfigResponseMessage& 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
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 setPanelId(const std::string &val)
static GlsConfigResponseMessage * createFromData(const GlsConfigResponseData data)
Create a new message initialized with the given data.
virtual void setConfig(const std::vector< KeyValuePair > &val)
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual ~GlsConfigResponseMessage() override
Destructor.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual const std::vector< KeyValuePair > & getConfig() const
static UInt64 theVersion
Definition glsConfigResponse.h:166
static const std::string & theType()
Get the message type string for this instance.
virtual const DtEntityIdentifier & getHostId() const
static GlsConfigResponseMessage * createFrom(GlsConfigResponseMessage *origMsg)
Create a copy of the given message.
bool operator==(const GlsConfigResponseMessage &rhs) const
virtual const std::string & getPanelId() const
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
GlsConfigResponseData getData() const
Get a copy of the message data (const).
static makVre::DtVreMessageId theMessageId
Definition glsConfigResponse.h:165
virtual void setHostId(const DtEntityIdentifier &val)
virtual const std::string & type() const override
Get the message type string for this instance.
GlsConfigResponseData myData
Definition glsConfigResponse.h:168
GlsConfigResponseData getData()
Get a copy of the message data.
static GlsConfigResponseMessage * create()
Create a copy of the given message.
bool operator!=(const GlsConfigResponseMessage &rhs) const
virtual int messageSize() const override
Get a copy of the message data.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
static UInt64 theVersionNumber()
Get the version number for this message class.
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 * GlsConfigResponseMessageType
Message type identifier for GlsConfigResponseMessage.
Definition glsConfigResponse.h:24
Data payload for GlsConfigResponseMessage.
Definition glsConfigResponse.h:62
std::string myPanelId
Definition glsConfigResponse.h:70
bool operator==(const GlsConfigResponseData &rhs) const
DtEntityIdentifier myHostId
Definition glsConfigResponse.h:69
bool operator!=(const GlsConfigResponseData &rhs) const
std::vector< KeyValuePair > myConfig
Definition glsConfigResponse.h:71
void serialize(DtStreamWriter &writer) const
Serialize to a stream writer.
std::string myKey
Definition glsConfigResponse.h:55
int size() const
Get the serialized size in bytes.
std::string myValue
Definition glsConfigResponse.h:56
bool operator!=(const KeyValuePair &rhs) const
Inequality comparison operator.
void deserialize(DtStreamReader &reader)
Deserialize from a stream reader.
bool operator==(const KeyValuePair &rhs) const
Equality comparison operator.
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.