VR-Engage  2.3
Loading...
Searching...
No Matches
debugMetaRegister.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/utilities/vreDebugManager/debugManager.lua
11*/
12#pragma once
13
17#include <vlpi/simulationAddress.h>
18#include <string>
19#include <vector>
20
21namespace makVre
22{
23//! \brief Message type identifier for DebugMetaRegisterMessage.
24constexpr const char* DebugMetaRegisterMessageType = "debug.meta.register";
25
26/**
27 * \class DebugMetaRegisterMessage
28 * \brief Use to add an entry to the VR-Engage debug menu.
29 *
30 * Message type: "debug.meta.register"
31 *
32 * \note This is an auto-generated class. Do not modify directly.
33 */
34class VREDEBUGMANAGER_DLL DebugMetaRegisterMessage : public makVre::DtVreMessage
35{
36public:
37 //! \brief Action enumeration.
44 //! \brief Process enumeration.
52
53 //! \brief Nested data structure.
54 struct VREDEBUGMANAGER_DLL KeyValuePair
55 {
56 //! \brief Default constructor.
58
59 //! \brief Get the serialized size in bytes.
60 int size() const;
61 //! \brief Serialize to a stream writer.
62 void serialize(DtStreamWriter& writer) const;
63 //! \brief Deserialize from a stream reader.
65 //! \brief Equality comparison operator.
66 bool operator==(const KeyValuePair& rhs) const;
67 //! \brief Inequality comparison operator.
68 bool operator!=(const KeyValuePair& rhs) const;
69
70 std::string myKey;
71 std::string myType;
72 std::string myValue;
73
74 };
75
76 //! \brief Data payload for DebugMetaRegisterMessage.
77 struct VREDEBUGMANAGER_DLL DebugMetaRegisterData
78 {
79 //! \brief Default constructor.
81
82 //! \name Data Members
83 //! \{
84
85 DtSimulationAddress mySimulationAddress;
86 std::string myDisplayName;
87 std::string myDebugType;
88 std::string myDebugMenuSection;
93 std::vector<KeyValuePair> myExtraData;
94 //! \}
95
96 //! \name Operators
97 //! \{
98 bool operator==(const DebugMetaRegisterData& rhs) const;
99 bool operator!=(const DebugMetaRegisterData& rhs) const;
100 //! \}
101 };
102
103 //! \brief Destructor.
104 virtual ~DebugMetaRegisterMessage() override;
105
106 //! \name Static Creators
107 //! \{
108 //! \brief Create a new default instance.
109 //! \return A dynamically allocated default message. Caller takes ownership.
111
112 //! \brief Create a copy of the given message.
113 //! \param origMsg The message to copy. Must not be null.
114 //! \return A dynamically allocated copy. Caller takes ownership.
116
117 //! \brief Create a new message initialized with the given data.
118 //! \param data The data payload to initialize the message with.
119 //! \return A dynamically allocated message. Caller takes ownership.
121 //! \}
122
123 //! \name Type Identity
124 //! \{
125 //! \brief Get the message type string for this message class.
126 static const std::string& theType();
127
128 //! \brief Get the message identifier for this message class.
130
131 //! \brief Get the version number for this message class.
133
134 //! \brief Get the message type string for this instance.
135 virtual const std::string& type() const override;
136
137 //! \brief Get the message identifier for this instance.
138 virtual const makVre::DtVreMessageId& messageId() const override;
139 //! \}
140
141 //! \name Accessors
142 //! \{
143 virtual const DtSimulationAddress& getSimulationAddress() const;
144 virtual void setSimulationAddress(const DtSimulationAddress& val);
145
146 virtual const std::string& getDisplayName() const;
147 virtual void setDisplayName(const std::string& val);
148
149 virtual const std::string& getDebugType() const;
150 virtual void setDebugType(const std::string& val);
151
152 virtual const std::string& getDebugMenuSection() const;
153 virtual void setDebugMenuSection(const std::string& val);
154
155 virtual bool getShowInTable() const;
156 virtual void setShowInTable(bool val);
157
158 virtual Action getAction() const;
159 virtual void setAction(Action val);
160
161 virtual bool getEnabled() const;
162 virtual void setEnabled(bool val);
163
164 virtual Process getProcess() const;
165 virtual void setProcess(Process val);
166
167 virtual const std::vector<KeyValuePair>& getExtraData() const;
168 virtual void setExtraData(const std::vector<KeyValuePair>& val);
169 //! \}
170
171 //! \name Serialization
172 //! \{
173 //! \copydoc makVre::DtVreMessage::messageSize()
174 virtual int messageSize() const override;
175
176 //! \brief Decode a message from a byte buffer.
177 //! \param buffer The raw byte buffer to decode from.
178 //! \param length The length of the buffer in bytes.
179 //! \return A dynamically allocated decoded message. Caller takes ownership.
180 static makVre::DtVreMessage* decode(char* buffer, int length);
181
182 //! \brief Get a copy of the message data.
184
185 //! \brief Get a copy of the message data (const).
187 //! \}
188
189 //! \name Operators
190 //! \{
191 bool operator==(const DebugMetaRegisterMessage& rhs) const;
192 bool operator!=(const DebugMetaRegisterMessage& rhs) const;
193 //! \}
194
195 // Custom Functions
196 static DebugMetaRegisterMessage* createRegisterMessage(DtSimulationAddress addr, std::string displayName, std::string debugType, std::string debugMenuSection, bool enabled, DebugMetaRegisterMessage::Process proc);
197 static DebugMetaRegisterMessage* createUnregisterMessage(DtSimulationAddress addr, std::string debugType);
199
200protected:
202
203 //! \copydoc makVre::DtVreMessage::serialize()
204 virtual void serialize(DtStreamWriter& writer) const override;
205
206 //! \copydoc makVre::DtVreMessage::deserialize()
207 virtual void deserialize(DtStreamReader& reader) override;
208
209protected:
212
214};
215} // namespace makVre
216
virtual void setExtraData(const std::vector< KeyValuePair > &val)
virtual const std::vector< KeyValuePair > & getExtraData() const
DebugMetaRegisterData getData() const
Get a copy of the message data (const).
virtual Process getProcess() const
DebugMetaRegisterData getData()
Get a copy of the message data.
static UInt64 theVersionNumber()
Get the version number for this message class.
static makVre::DtVreMessageId theMessageId
Definition debugMetaRegister.h:210
virtual ~DebugMetaRegisterMessage() override
Destructor.
static DebugMetaRegisterMessage * createRegisterMessage(DtSimulationAddress addr, std::string displayName, std::string debugType, std::string debugMenuSection, bool enabled, DebugMetaRegisterMessage::Process proc)
virtual int messageSize() const override
Get a copy of the message data.
static DebugMetaRegisterMessage * create()
Create a copy of the given message.
virtual const std::string & getDebugMenuSection() const
virtual const DtSimulationAddress & getSimulationAddress() const
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void setProcess(Process val)
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual const std::string & getDisplayName() const
virtual const std::string & getDebugType() const
Process
Process enumeration.
Definition debugMetaRegister.h:46
@ Process_VRE_APP
Definition debugMetaRegister.h:47
@ Process_VRF_SIM
Definition debugMetaRegister.h:50
@ Process_VRE_SIM
Definition debugMetaRegister.h:49
@ Process_VRF_APP
Definition debugMetaRegister.h:48
virtual void setDebugMenuSection(const std::string &val)
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static DebugMetaRegisterMessage * createFrom(DebugMetaRegisterMessage *origMsg)
Create a copy of the given message.
static const std::string & theType()
Get the message type string for this instance.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual bool getEnabled() const
Action
Action enumeration.
Definition debugMetaRegister.h:39
@ Action_REGISTER
Definition debugMetaRegister.h:40
@ Action_REQUEST
Definition debugMetaRegister.h:42
@ Action_UNREGISTER
Definition debugMetaRegister.h:41
static DebugMetaRegisterMessage * createFromData(const DebugMetaRegisterData data)
Create a new message initialized with the given data.
static DebugMetaRegisterMessage * createRequestMessage()
virtual void setAction(Action val)
virtual void setShowInTable(bool val)
virtual void setDisplayName(const std::string &val)
static UInt64 theVersion
Definition debugMetaRegister.h:211
virtual bool getShowInTable() const
bool operator==(const DebugMetaRegisterMessage &rhs) const
virtual void setDebugType(const std::string &val)
virtual Action getAction() const
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void setSimulationAddress(const DtSimulationAddress &val)
bool operator!=(const DebugMetaRegisterMessage &rhs) const
DebugMetaRegisterData myData
Definition debugMetaRegister.h:213
virtual void setEnabled(bool val)
static DebugMetaRegisterMessage * createUnregisterMessage(DtSimulationAddress addr, std::string debugType)
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 Debug Manager library.
!
Definition glsVreMessageUtil.h:50
constexpr const char * DebugMetaRegisterMessageType
Message type identifier for DebugMetaRegisterMessage.
Definition debugMetaRegister.h:24
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
Data payload for DebugMetaRegisterMessage.
Definition debugMetaRegister.h:78
bool myEnabled
Definition debugMetaRegister.h:91
std::string myDebugType
Definition debugMetaRegister.h:87
DtSimulationAddress mySimulationAddress
Definition debugMetaRegister.h:85
Process myProcess
Definition debugMetaRegister.h:92
bool myShowInTable
Definition debugMetaRegister.h:89
std::string myDisplayName
Definition debugMetaRegister.h:86
bool operator==(const DebugMetaRegisterData &rhs) const
std::string myDebugMenuSection
Definition debugMetaRegister.h:88
bool operator!=(const DebugMetaRegisterData &rhs) const
Action myAction
Definition debugMetaRegister.h:90
std::vector< KeyValuePair > myExtraData
Definition debugMetaRegister.h:93
int size() const
Get the serialized size in bytes.
std::string myValue
Definition debugMetaRegister.h:72
void deserialize(DtStreamReader &reader)
Deserialize from a stream reader.
std::string myType
Definition debugMetaRegister.h:71
bool operator!=(const KeyValuePair &rhs) const
Inequality comparison operator.
bool operator==(const KeyValuePair &rhs) const
Equality comparison operator.
std::string myKey
Definition debugMetaRegister.h:70
void serialize(DtStreamWriter &writer) const
Serialize to a stream writer.
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.