VR-Engage  2.2
Loading...
Searching...
No Matches
glsConfigResponse.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2025 MAK Technologies, Inc.
3** All rights reserved.
4*********************************************************************************/
5
6/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7!!!!!!!!!This is an auto-generated file. Any changes will be destroyed!!!!!!!!!!!
8!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9Generated from: /data/exports/DEV-CAM-BML-043/nightly/3085/libsrc/framework/vreMessages/glsProps.lua
10*/
11/*-----------------COMMENT----------------------
12Response to GlsConfigRequestMessage. Contains role-level configuration for this GLStudio cockpit element.
13-------------------COMMENT----------------------*/
14#pragma once
15
18#include <vreMessages/export.h>
19#include <vlpi/entityIdentifier.h>
20#include <string>
21#include <vector>
22
23
24namespace makVre
25{
26
27
28constexpr const char* GlsConfigResponseMessageType = "gls.config.response";
29
31{
32public:
33
35 {
37
38 int size() const;
39 void serialize(DtStreamWriter& writer) const;
41 bool operator==(const KeyValuePair& rhs) const;
42
43 std::string myKey;
44 std::string myValue;
45
46 };
47
48
49 // Struct for defining data
51 {
53
54 DtEntityIdentifier myHostId;
55 std::string myPanelId;
56 std::vector<KeyValuePair> myConfig;
57
58 bool operator==(const GlsConfigResponseData& rhs) const;
59 };
60
61 // Default static creators to promote the usage of not using new.
65
66 //! \brief static message identity functions
67 static const std::string& theType();
70
71 //! \brief Get the name of the message type
72 virtual const std::string& type() const override;
73 virtual const makVre::DtVreMessageId& messageId() const override;
74
75 // default destructor
76 virtual ~GlsConfigResponseMessage() override;
77
78 virtual const DtEntityIdentifier& getHostId() const;
79 virtual void setHostId(const DtEntityIdentifier& val);
80
81 virtual const std::string& getPanelId() const;
82 virtual void setPanelId(const std::string& val);
83
84 virtual const std::vector<KeyValuePair>& getConfig() const;
85 virtual void setConfig(const std::vector<KeyValuePair>& val);
86
87
88 // Accessors
89 virtual int messageSize() const override;
90 static makVre::DtVreMessage* decode(char* buffer, int length);
93
94 // Operators
95 bool operator==(const GlsConfigResponseMessage& rhs) const;
96
97protected:
98 // Inaccessible default constructor to promote the usage of the static creator functions
100
101 virtual void serialize(DtStreamWriter& writer) const override;
102 virtual void deserialize(DtStreamReader& reader) override;
103
104protected:
107
108 // Store the data for future use
110};
111
112} // ::makVre
113
114
115
Reader class for decoding values from a byte array.
Definition byteStream.h:42
Writer class for encoding values into a byte array.
Definition byteStream.h:161
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)
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
Gets the message ID object.
static GlsConfigResponseMessage * createFromData(const GlsConfigResponseData)
virtual ~GlsConfigResponseMessage() override
static makVre::DtVreMessage * decode(char *buffer, int length)
virtual const std::vector< KeyValuePair > & getConfig() const
static UInt64 theVersion
Definition glsConfigResponse.h:106
static const std::string & theType()
static message identity functions
virtual const DtEntityIdentifier & getHostId() const
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
static makVre::DtVreMessageId theMessageId
Definition glsConfigResponse.h:105
virtual void setHostId(const DtEntityIdentifier &val)
virtual const std::string & type() const override
Get the name of the message type.
GlsConfigResponseData myData
Definition glsConfigResponse.h:109
GlsConfigResponseData getData()
static GlsConfigResponseMessage * create()
virtual int messageSize() const override
Static decode function pattern for derived classes.
static const makVre::DtVreMessageId & theId()
static GlsConfigResponseMessage * createFrom(GlsConfigResponseMessage *)
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * GlsConfigResponseMessageType
Definition glsConfigResponse.h:28
std::string myPanelId
Definition glsConfigResponse.h:55
bool operator==(const GlsConfigResponseData &rhs) const
DtEntityIdentifier myHostId
Definition glsConfigResponse.h:54
std::vector< KeyValuePair > myConfig
Definition glsConfigResponse.h:56
void serialize(DtStreamWriter &writer) const
std::string myKey
Definition glsConfigResponse.h:43
std::string myValue
Definition glsConfigResponse.h:44
void deserialize(DtStreamReader &reader)
bool operator==(const KeyValuePair &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.