VR-Engage  2.3
Loading...
Searching...
No Matches
menuSetState.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/framework/vreMessages/actionMenu.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <string>
18
19namespace makVre
20{
21//! \brief Message type identifier for MenuSetStateMessage.
22constexpr const char* MenuSetStateMessageType = "menu.set.state";
23
24/**
25 * \class MenuSetStateMessage
26 * \brief Used to show, hide or toggle action menus and quick menus. Handled by DtMenuManager.
27 *
28 * Message type: "menu.set.state"
29 *
30 * \note This is an auto-generated class. Do not modify directly.
31 */
33{
34public:
35 //! \brief State enumeration.
42 //! \brief Type enumeration.
48
49 //! \brief Data payload for MenuSetStateMessage.
51 {
52 //! \brief Default constructor.
54
55 //! \name Data Members
56 //! \{
57
58 std::string myMenu;
60 std::string myDefaultSelection;
62 //! \}
63
64 //! \name Operators
65 //! \{
66 bool operator==(const MenuSetStateData& rhs) const;
67 bool operator!=(const MenuSetStateData& rhs) const;
68 //! \}
69 };
70
71 //! \brief Destructor.
72 virtual ~MenuSetStateMessage() override;
73
74 //! \name Static Creators
75 //! \{
76 //! \brief Create a new default instance.
77 //! \return A dynamically allocated default message. Caller takes ownership.
79
80 //! \brief Create a copy of the given message.
81 //! \param origMsg The message to copy. Must not be null.
82 //! \return A dynamically allocated copy. Caller takes ownership.
84
85 //! \brief Create a new message initialized with the given data.
86 //! \param data The data payload to initialize the message with.
87 //! \return A dynamically allocated message. Caller takes ownership.
89 //! \}
90
91 //! \name Type Identity
92 //! \{
93 //! \brief Get the message type string for this message class.
94 static const std::string& theType();
95
96 //! \brief Get the message identifier for this message class.
98
99 //! \brief Get the version number for this message class.
101
102 //! \brief Get the message type string for this instance.
103 virtual const std::string& type() const override;
104
105 //! \brief Get the message identifier for this instance.
106 virtual const makVre::DtVreMessageId& messageId() const override;
107 //! \}
108
109 //! \name Accessors
110 //! \{
111 virtual const std::string& getMenu() const;
112 virtual void setMenu(const std::string& val);
113
114 virtual State getState() const;
115 virtual void setState(State val);
116
117 virtual const std::string& getDefaultSelection() const;
118 virtual void setDefaultSelection(const std::string& val);
119
120 virtual Type getType() const;
121 virtual void setType(Type val);
122 //! \}
123
124 //! \name Serialization
125 //! \{
126 //! \copydoc makVre::DtVreMessage::messageSize()
127 virtual int messageSize() const override;
128
129 //! \brief Decode a message from a byte buffer.
130 //! \param buffer The raw byte buffer to decode from.
131 //! \param length The length of the buffer in bytes.
132 //! \return A dynamically allocated decoded message. Caller takes ownership.
133 static makVre::DtVreMessage* decode(char* buffer, int length);
134
135 //! \brief Get a copy of the message data.
137
138 //! \brief Get a copy of the message data (const).
140 //! \}
141
142 //! \name Operators
143 //! \{
144 bool operator==(const MenuSetStateMessage& rhs) const;
145 bool operator!=(const MenuSetStateMessage& rhs) const;
146 //! \}
147
148protected:
150
151 //! \copydoc makVre::DtVreMessage::serialize()
152 virtual void serialize(DtStreamWriter& writer) const override;
153
154 //! \copydoc makVre::DtVreMessage::deserialize()
155 virtual void deserialize(DtStreamReader& reader) override;
156
157protected:
160
162};
163} // namespace makVre
164
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
MenuSetStateData myData
Definition menuSetState.h:161
bool operator==(const MenuSetStateMessage &rhs) const
MenuSetStateData getData() const
Get a copy of the message data (const).
virtual void setState(State val)
virtual void setType(Type val)
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual int messageSize() const override
Get a copy of the message data.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static MenuSetStateMessage * createFrom(MenuSetStateMessage *origMsg)
Create a copy of the given message.
virtual const std::string & getDefaultSelection() const
State
State enumeration.
Definition menuSetState.h:37
@ State_TOGGLE
Definition menuSetState.h:40
@ State_SHOW
Definition menuSetState.h:38
@ State_HIDE
Definition menuSetState.h:39
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual const std::string & getMenu() const
Type
Type enumeration.
Definition menuSetState.h:44
@ Type_STATIC
Definition menuSetState.h:45
@ Type_QUICK
Definition menuSetState.h:46
static UInt64 theVersion
Definition menuSetState.h:159
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static const std::string & theType()
Get the message type string for this instance.
virtual Type getType() const
virtual State getState() const
static makVre::DtVreMessageId theMessageId
Definition menuSetState.h:158
virtual void setMenu(const std::string &val)
virtual void setDefaultSelection(const std::string &val)
virtual ~MenuSetStateMessage() override
Destructor.
static MenuSetStateMessage * createFromData(const MenuSetStateData data)
Create a new message initialized with the given data.
MenuSetStateData getData()
Get a copy of the message data.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual const std::string & type() const override
Get the message type string for this instance.
bool operator!=(const MenuSetStateMessage &rhs) const
static MenuSetStateMessage * create()
Create a copy of the given message.
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
!
Definition glsVreMessageUtil.h:50
constexpr const char * MenuSetStateMessageType
Message type identifier for MenuSetStateMessage.
Definition menuSetState.h:22
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
Data payload for MenuSetStateMessage.
Definition menuSetState.h:51
State myState
Definition menuSetState.h:59
bool operator!=(const MenuSetStateData &rhs) const
std::string myMenu
Definition menuSetState.h:58
Type myType
Definition menuSetState.h:61
bool operator==(const MenuSetStateData &rhs) const
std::string myDefaultSelection
Definition menuSetState.h:60
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.