VR-Engage  2.2
Loading...
Searching...
No Matches
debugMetaRegister.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----------------------
12Use to add an entry to 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* DebugMetaRegisterMessageType = "debug.meta.register";
29
30class VREDEBUGMANAGER_DLL DebugMetaRegisterMessage : public makVre::DtVreMessage
31{
32public:
35
36 struct VREDEBUGMANAGER_DLL KeyValuePair
37 {
39
40 int size() const;
41 void serialize(DtStreamWriter& writer) const;
43 bool operator==(const KeyValuePair& rhs) const;
44
45 std::string myKey;
46 std::string myType;
47 std::string myValue;
48
49 };
50
51
52 // Struct for defining data
53 struct VREDEBUGMANAGER_DLL DebugMetaRegisterData
54 {
56
57 DtSimulationAddress mySimulationAddress;
58 std::string myDisplayName;
59 std::string myDebugType;
60 std::string myDebugMenuSection;
65 std::vector<KeyValuePair> myExtraData;
66
67 bool operator==(const DebugMetaRegisterData& rhs) const;
68 };
69
70 // Default static creators to promote the usage of not using new.
74
75 //! \brief static message identity functions
76 static const std::string& theType();
79
80 //! \brief Get the name of the message type
81 virtual const std::string& type() const override;
82 virtual const makVre::DtVreMessageId& messageId() const override;
83
84 // default destructor
85 virtual ~DebugMetaRegisterMessage() override;
86
87 virtual const DtSimulationAddress& getSimulationAddress() const;
88 virtual void setSimulationAddress(const DtSimulationAddress& val);
89
90 virtual const std::string& getDisplayName() const;
91 virtual void setDisplayName(const std::string& val);
92
93 virtual const std::string& getDebugType() const;
94 virtual void setDebugType(const std::string& val);
95
96 virtual const std::string& getDebugMenuSection() const;
97 virtual void setDebugMenuSection(const std::string& val);
98
99 virtual bool getShowInTable() const;
100 virtual void setShowInTable(bool val);
101
102 virtual Action getAction() const;
103 virtual void setAction(Action val);
104
105 virtual bool getEnabled() const;
106 virtual void setEnabled(bool val);
107
108 virtual Process getProcess() const;
109 virtual void setProcess(Process val);
110
111 virtual const std::vector<KeyValuePair>& getExtraData() const;
112 virtual void setExtraData(const std::vector<KeyValuePair>& val);
113
114
115 // Accessors
116 virtual int messageSize() const override;
117 static makVre::DtVreMessage* decode(char* buffer, int length);
120
121 // Operators
122 bool operator==(const DebugMetaRegisterMessage& rhs) const;
123
124 // Custom Functions
125 static DebugMetaRegisterMessage* createRegisterMessage(DtSimulationAddress addr, std::string displayName, std::string debugType, std::string debugMenuSection, bool enabled, DebugMetaRegisterMessage::Process proc);
126 static DebugMetaRegisterMessage* createUnregisterMessage(DtSimulationAddress addr, std::string debugType);
127
128protected:
129 // Inaccessible default constructor to promote the usage of the static creator functions
131
132 virtual void serialize(DtStreamWriter& writer) const override;
133 virtual void deserialize(DtStreamReader& reader) override;
134
135protected:
138
139 // Store the data for future use
141};
142
143} // ::makVre
144
145
146
virtual void setExtraData(const std::vector< KeyValuePair > &val)
virtual const std::vector< KeyValuePair > & getExtraData() const
DebugMetaRegisterData getData() const
virtual Process getProcess() const
DebugMetaRegisterData getData()
static DebugMetaRegisterMessage * createFrom(DebugMetaRegisterMessage *)
static makVre::DtVreMessageId theMessageId
Definition debugMetaRegister.h:136
virtual ~DebugMetaRegisterMessage() override
static DebugMetaRegisterMessage * createRegisterMessage(DtSimulationAddress addr, std::string displayName, std::string debugType, std::string debugMenuSection, bool enabled, DebugMetaRegisterMessage::Process proc)
virtual int messageSize() const override
Static decode function pattern for derived classes.
static DebugMetaRegisterMessage * create()
virtual const std::string & getDebugMenuSection() const
virtual const DtSimulationAddress & getSimulationAddress() const
static const makVre::DtVreMessageId & theId()
virtual void setProcess(Process val)
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
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
Definition debugMetaRegister.h:34
@ Process_VRE_APP
Definition debugMetaRegister.h:34
@ Process_VRF_SIM
Definition debugMetaRegister.h:34
@ Process_VRE_SIM
Definition debugMetaRegister.h:34
@ Process_VRF_APP
Definition debugMetaRegister.h:34
virtual void setDebugMenuSection(const std::string &val)
static makVre::DtVreMessage * decode(char *buffer, int length)
static const std::string & theType()
static message identity functions
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual bool getEnabled() const
Action
Definition debugMetaRegister.h:33
@ Action_REGISTER
Definition debugMetaRegister.h:33
@ Action_UNREGISTER
Definition debugMetaRegister.h:33
virtual void setAction(Action val)
virtual void setShowInTable(bool val)
virtual void setDisplayName(const std::string &val)
static UInt64 theVersion
Definition debugMetaRegister.h:137
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 name of the message type.
static DebugMetaRegisterMessage * createFromData(const DebugMetaRegisterData)
virtual void setSimulationAddress(const DtSimulationAddress &val)
DebugMetaRegisterData myData
Definition debugMetaRegister.h:140
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: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
constexpr const char * DebugMetaRegisterMessageType
Definition debugMetaRegister.h:28
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
bool myEnabled
Definition debugMetaRegister.h:63
std::string myDebugType
Definition debugMetaRegister.h:59
DtSimulationAddress mySimulationAddress
Definition debugMetaRegister.h:57
Process myProcess
Definition debugMetaRegister.h:64
bool myShowInTable
Definition debugMetaRegister.h:61
std::string myDisplayName
Definition debugMetaRegister.h:58
bool operator==(const DebugMetaRegisterData &rhs) const
std::string myDebugMenuSection
Definition debugMetaRegister.h:60
Action myAction
Definition debugMetaRegister.h:62
std::vector< KeyValuePair > myExtraData
Definition debugMetaRegister.h:65
std::string myValue
Definition debugMetaRegister.h:47
void deserialize(DtStreamReader &reader)
std::string myType
Definition debugMetaRegister.h:46
bool operator==(const KeyValuePair &rhs) const
std::string myKey
Definition debugMetaRegister.h:45
void serialize(DtStreamWriter &writer) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.