VR-Engage  2.3
Loading...
Searching...
No Matches
debugMetaData.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 DebugMetaDataMessage.
24constexpr const char* DebugMetaDataMessageType = "debug.meta.data";
25
26/**
27 * \class DebugMetaDataMessage
28 * \brief Used to transfer data to and from the VR-Engage debug menu.
29 *
30 * Message type: "debug.meta.data"
31 *
32 * \note This is an auto-generated class. Do not modify directly.
33 */
34class VREDEBUGMANAGER_DLL DebugMetaDataMessage : public makVre::DtVreMessage
35{
36public:
37 //! \brief Action enumeration.
44
45 //! \brief Nested data structure.
46 struct VREDEBUGMANAGER_DLL KeyValuePair
47 {
48 //! \brief Default constructor.
50
51 //! \brief Get the serialized size in bytes.
52 int size() const;
53 //! \brief Serialize to a stream writer.
54 void serialize(DtStreamWriter& writer) const;
55 //! \brief Deserialize from a stream reader.
57 //! \brief Equality comparison operator.
58 bool operator==(const KeyValuePair& rhs) const;
59 //! \brief Inequality comparison operator.
60 bool operator!=(const KeyValuePair& rhs) const;
61
62 std::string myKey;
63 std::string myType;
64 std::string myValue;
65
66 };
67
68 //! \brief Data payload for DebugMetaDataMessage.
69 struct VREDEBUGMANAGER_DLL DebugMetaDataData
70 {
71 //! \brief Default constructor.
73
74 //! \name Data Members
75 //! \{
76
77 DtSimulationAddress mySimulationAddress;
78 std::string myDebugType;
80 std::vector<KeyValuePair> myExtraData;
81 //! \}
82
83 //! \name Operators
84 //! \{
85 bool operator==(const DebugMetaDataData& rhs) const;
86 bool operator!=(const DebugMetaDataData& rhs) const;
87 //! \}
88 };
89
90 //! \brief Destructor.
91 virtual ~DebugMetaDataMessage() override;
92
93 //! \name Static Creators
94 //! \{
95 //! \brief Create a new default instance.
96 //! \return A dynamically allocated default message. Caller takes ownership.
98
99 //! \brief Create a copy of the given message.
100 //! \param origMsg The message to copy. Must not be null.
101 //! \return A dynamically allocated copy. Caller takes ownership.
103
104 //! \brief Create a new message initialized with the given data.
105 //! \param data The data payload to initialize the message with.
106 //! \return A dynamically allocated message. Caller takes ownership.
108 //! \}
109
110 //! \name Type Identity
111 //! \{
112 //! \brief Get the message type string for this message class.
113 static const std::string& theType();
114
115 //! \brief Get the message identifier for this message class.
117
118 //! \brief Get the version number for this message class.
120
121 //! \brief Get the message type string for this instance.
122 virtual const std::string& type() const override;
123
124 //! \brief Get the message identifier for this instance.
125 virtual const makVre::DtVreMessageId& messageId() const override;
126 //! \}
127
128 //! \name Accessors
129 //! \{
130 virtual const DtSimulationAddress& getSimulationAddress() const;
131 virtual void setSimulationAddress(const DtSimulationAddress& val);
132
133 virtual const std::string& getDebugType() const;
134 virtual void setDebugType(const std::string& val);
135
136 virtual Action getAction() const;
137 virtual void setAction(Action val);
138
139 virtual const std::vector<KeyValuePair>& getExtraData() const;
140 virtual void setExtraData(const std::vector<KeyValuePair>& val);
141 //! \}
142
143 //! \name Serialization
144 //! \{
145 //! \copydoc makVre::DtVreMessage::messageSize()
146 virtual int messageSize() const override;
147
148 //! \brief Decode a message from a byte buffer.
149 //! \param buffer The raw byte buffer to decode from.
150 //! \param length The length of the buffer in bytes.
151 //! \return A dynamically allocated decoded message. Caller takes ownership.
152 static makVre::DtVreMessage* decode(char* buffer, int length);
153
154 //! \brief Get a copy of the message data.
156
157 //! \brief Get a copy of the message data (const).
159 //! \}
160
161 //! \name Operators
162 //! \{
163 bool operator==(const DebugMetaDataMessage& rhs) const;
164 bool operator!=(const DebugMetaDataMessage& rhs) const;
165 //! \}
166
167protected:
169
170 //! \copydoc makVre::DtVreMessage::serialize()
171 virtual void serialize(DtStreamWriter& writer) const override;
172
173 //! \copydoc makVre::DtVreMessage::deserialize()
174 virtual void deserialize(DtStreamReader& reader) override;
175
176protected:
179
181};
182} // namespace makVre
183
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual void setExtraData(const std::vector< KeyValuePair > &val)
virtual const std::vector< KeyValuePair > & getExtraData() const
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static DebugMetaDataMessage * create()
Create a copy of the given message.
virtual Action getAction() const
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
DebugMetaDataData getData()
Get a copy of the message data.
bool operator!=(const DebugMetaDataMessage &rhs) const
static DebugMetaDataMessage * createFromData(const DebugMetaDataData data)
Create a new message initialized with the given data.
virtual void setDebugType(const std::string &val)
static makVre::DtVreMessageId theMessageId
Definition debugMetaData.h:177
static DebugMetaDataMessage * createFrom(DebugMetaDataMessage *origMsg)
Create a copy of the given message.
virtual const DtSimulationAddress & getSimulationAddress() const
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
bool operator==(const DebugMetaDataMessage &rhs) const
virtual const std::string & getDebugType() const
static UInt64 theVersion
Definition debugMetaData.h:178
DebugMetaDataData getData() const
Get a copy of the message data (const).
virtual ~DebugMetaDataMessage() override
Destructor.
DebugMetaDataData myData
Definition debugMetaData.h:180
virtual int messageSize() const override
Get a copy of the message data.
virtual void setAction(Action val)
Action
Action enumeration.
Definition debugMetaData.h:39
@ Action_SET
Definition debugMetaData.h:40
@ Action_REQUEST
Definition debugMetaData.h:41
@ Action_RESPONSE
Definition debugMetaData.h:42
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void setSimulationAddress(const DtSimulationAddress &val)
static const std::string & theType()
Get the message type string for this instance.
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
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * DebugMetaDataMessageType
Message type identifier for DebugMetaDataMessage.
Definition debugMetaData.h:24
Data payload for DebugMetaDataMessage.
Definition debugMetaData.h:70
Action myAction
Definition debugMetaData.h:79
std::string myDebugType
Definition debugMetaData.h:78
DtSimulationAddress mySimulationAddress
Definition debugMetaData.h:77
bool operator!=(const DebugMetaDataData &rhs) const
bool operator==(const DebugMetaDataData &rhs) const
std::vector< KeyValuePair > myExtraData
Definition debugMetaData.h:80
int size() const
Get the serialized size in bytes.
bool operator!=(const KeyValuePair &rhs) const
Inequality comparison operator.
void serialize(DtStreamWriter &writer) const
Serialize to a stream writer.
bool operator==(const KeyValuePair &rhs) const
Equality comparison operator.
std::string myValue
Definition debugMetaData.h:64
std::string myType
Definition debugMetaData.h:63
std::string myKey
Definition debugMetaData.h:62
void deserialize(DtStreamReader &reader)
Deserialize from a stream reader.
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.