VR-Engage  2.2
Loading...
Searching...
No Matches
debugMetaData.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/utilities/vreDebugManager/debugManager.lua
10*/
11/*-----------------COMMENT----------------------
12Used to transfer data to and from the VR-Engage debug menu.
13-------------------COMMENT----------------------*/
14#pragma once
15
19#include <vlpi/simulationAddress.h>
20#include <string>
21#include <vector>
22
23
24namespace makVre
25{
26
27
28constexpr const char* DebugMetaDataMessageType = "debug.meta.data";
29
30class VREDEBUGMANAGER_DLL DebugMetaDataMessage : public makVre::DtVreMessage
31{
32public:
34
35 struct VREDEBUGMANAGER_DLL KeyValuePair
36 {
38
39 int size() const;
40 void serialize(DtStreamWriter& writer) const;
42 bool operator==(const KeyValuePair& rhs) const;
43
44 std::string myKey;
45 std::string myType;
46 std::string myValue;
47
48 };
49
50
51 // Struct for defining data
52 struct VREDEBUGMANAGER_DLL DebugMetaDataData
53 {
55
56 DtSimulationAddress mySimulationAddress;
57 std::string myDebugType;
59 std::vector<KeyValuePair> myExtraData;
60
61 bool operator==(const DebugMetaDataData& rhs) const;
62 };
63
64 // Default static creators to promote the usage of not using new.
68
69 //! \brief static message identity functions
70 static const std::string& theType();
73
74 //! \brief Get the name of the message type
75 virtual const std::string& type() const override;
76 virtual const makVre::DtVreMessageId& messageId() const override;
77
78 // default destructor
79 virtual ~DebugMetaDataMessage() override;
80
81 virtual const DtSimulationAddress& getSimulationAddress() const;
82 virtual void setSimulationAddress(const DtSimulationAddress& val);
83
84 virtual const std::string& getDebugType() const;
85 virtual void setDebugType(const std::string& val);
86
87 virtual Action getAction() const;
88 virtual void setAction(Action val);
89
90 virtual const std::vector<KeyValuePair>& getExtraData() const;
91 virtual void setExtraData(const std::vector<KeyValuePair>& val);
92
93
94 // Accessors
95 virtual int messageSize() const override;
96 static makVre::DtVreMessage* decode(char* buffer, int length);
99
100 // Operators
101 bool operator==(const DebugMetaDataMessage& rhs) const;
102
103protected:
104 // Inaccessible default constructor to promote the usage of the static creator functions
106
107 virtual void serialize(DtStreamWriter& writer) const override;
108 virtual void deserialize(DtStreamReader& reader) override;
109
110protected:
113
114 // Store the data for future use
116};
117
118} // ::makVre
119
120
121
static UInt64 theVersionNumber()
virtual void setExtraData(const std::vector< KeyValuePair > &val)
virtual const std::vector< KeyValuePair > & getExtraData() const
static makVre::DtVreMessage * decode(char *buffer, int length)
static DebugMetaDataMessage * create()
virtual Action getAction() const
static const makVre::DtVreMessageId & theId()
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
DebugMetaDataData getData()
virtual void setDebugType(const std::string &val)
static makVre::DtVreMessageId theMessageId
Definition debugMetaData.h:111
virtual const DtSimulationAddress & getSimulationAddress() const
static DebugMetaDataMessage * createFrom(DebugMetaDataMessage *)
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
bool operator==(const DebugMetaDataMessage &rhs) const
virtual const std::string & getDebugType() const
static DebugMetaDataMessage * createFromData(const DebugMetaDataData)
static UInt64 theVersion
Definition debugMetaData.h:112
DebugMetaDataData getData() const
virtual ~DebugMetaDataMessage() override
DebugMetaDataData myData
Definition debugMetaData.h:115
virtual int messageSize() const override
Static decode function pattern for derived classes.
virtual void setAction(Action val)
Action
Definition debugMetaData.h:33
@ Action_SET
Definition debugMetaData.h:33
@ Action_REQUEST
Definition debugMetaData.h:33
@ Action_RESPONSE
Definition debugMetaData.h:33
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual const std::string & type() const override
Get the name of the message type.
virtual void setSimulationAddress(const DtSimulationAddress &val)
static const std::string & theType()
static message identity functions
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
Defines export macros for the VREngage Debug Manager library.
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 * DebugMetaDataMessageType
Definition debugMetaData.h:28
Action myAction
Definition debugMetaData.h:58
std::string myDebugType
Definition debugMetaData.h:57
DtSimulationAddress mySimulationAddress
Definition debugMetaData.h:56
bool operator==(const DebugMetaDataData &rhs) const
std::vector< KeyValuePair > myExtraData
Definition debugMetaData.h:59
void serialize(DtStreamWriter &writer) const
bool operator==(const KeyValuePair &rhs) const
std::string myValue
Definition debugMetaData.h:46
std::string myType
Definition debugMetaData.h:45
std::string myKey
Definition debugMetaData.h:44
void deserialize(DtStreamReader &reader)
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.