VR-Engage  2.3
Loading...
Searching...
No Matches
menuInput.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
18namespace makVre
19{
20//! \brief Message type identifier for MenuInputMessage.
21constexpr const char* MenuInputMessageType = "menu.input";
22
23/**
24 * \class MenuInputMessage
25 * \brief Used to interact with the action menu and quick menus using keyboard, gamepad or joystick input.
26 *
27 * Message type: "menu.input"
28 *
29 * \note This is an auto-generated class. Do not modify directly.
30 */
32{
33public:
34 //! \brief Input enumeration.
47
48 //! \brief Data payload for MenuInputMessage.
50 {
51 //! \brief Default constructor.
53
54 //! \name Data Members
55 //! \{
56
58 int myItem;
59 //! \}
60
61 //! \name Operators
62 //! \{
63 bool operator==(const MenuInputData& rhs) const;
64 bool operator!=(const MenuInputData& rhs) const;
65 //! \}
66 };
67
68 //! \brief Destructor.
69 virtual ~MenuInputMessage() override;
70
71 //! \name Static Creators
72 //! \{
73 //! \brief Create a new default instance.
74 //! \return A dynamically allocated default message. Caller takes ownership.
76
77 //! \brief Create a copy of the given message.
78 //! \param origMsg The message to copy. Must not be null.
79 //! \return A dynamically allocated copy. Caller takes ownership.
81
82 //! \brief Create a new message initialized with the given data.
83 //! \param data The data payload to initialize the message with.
84 //! \return A dynamically allocated message. Caller takes ownership.
86 //! \}
87
88 //! \name Type Identity
89 //! \{
90 //! \brief Get the message type string for this message class.
91 static const std::string& theType();
92
93 //! \brief Get the message identifier for this message class.
95
96 //! \brief Get the version number for this message class.
98
99 //! \brief Get the message type string for this instance.
100 virtual const std::string& type() const override;
101
102 //! \brief Get the message identifier for this instance.
103 virtual const makVre::DtVreMessageId& messageId() const override;
104 //! \}
105
106 //! \name Accessors
107 //! \{
108 virtual Input getInput() const;
109 virtual void setInput(Input val);
110
111 virtual int getItem() const;
112 virtual void setItem(int val);
113 //! \}
114
115 //! \name Serialization
116 //! \{
117 //! \copydoc makVre::DtVreMessage::messageSize()
118 virtual int messageSize() const override;
119
120 //! \brief Decode a message from a byte buffer.
121 //! \param buffer The raw byte buffer to decode from.
122 //! \param length The length of the buffer in bytes.
123 //! \return A dynamically allocated decoded message. Caller takes ownership.
124 static makVre::DtVreMessage* decode(char* buffer, int length);
125
126 //! \brief Get a copy of the message data.
128
129 //! \brief Get a copy of the message data (const).
131 //! \}
132
133 //! \name Operators
134 //! \{
135 bool operator==(const MenuInputMessage& rhs) const;
136 bool operator!=(const MenuInputMessage& rhs) const;
137 //! \}
138
139protected:
141
142 //! \copydoc makVre::DtVreMessage::serialize()
143 virtual void serialize(DtStreamWriter& writer) const override;
144
145 //! \copydoc makVre::DtVreMessage::deserialize()
146 virtual void deserialize(DtStreamReader& reader) override;
147
148protected:
151
153};
154} // namespace makVre
155
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
static UInt64 theVersion
Definition menuInput.h:150
bool operator==(const MenuInputMessage &rhs) const
static MenuInputMessage * createFrom(MenuInputMessage *origMsg)
Create a copy of the given message.
Input
Input enumeration.
Definition menuInput.h:36
@ Input_KEY
Definition menuInput.h:45
@ Input_PAGE_UP
Definition menuInput.h:39
@ Input_DOWN
Definition menuInput.h:38
@ Input_PAGE_DOWN
Definition menuInput.h:40
@ Input_UP
Definition menuInput.h:37
@ Input_RIGHT
Definition menuInput.h:42
@ Input_ACCEPT
Definition menuInput.h:43
@ Input_CANCEL
Definition menuInput.h:44
@ Input_LEFT
Definition menuInput.h:41
virtual void setInput(Input val)
MenuInputData myData
Definition menuInput.h:152
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual void setItem(int val)
virtual Input getInput() const
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.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual ~MenuInputMessage() override
Destructor.
static const std::string & theType()
Get the message type string for this instance.
virtual const std::string & type() const override
Get the message type string for this instance.
MenuInputData getData()
Get a copy of the message data.
MenuInputData getData() const
Get a copy of the message data (const).
virtual int getItem() const
bool operator!=(const MenuInputMessage &rhs) const
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
static MenuInputMessage * createFromData(const MenuInputData data)
Create a new message initialized with the given data.
static MenuInputMessage * create()
Create a copy of the given message.
static makVre::DtVreMessageId theMessageId
Definition menuInput.h:149
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
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * MenuInputMessageType
Message type identifier for MenuInputMessage.
Definition menuInput.h:21
Data payload for MenuInputMessage.
Definition menuInput.h:50
bool operator!=(const MenuInputData &rhs) const
int myItem
Definition menuInput.h:58
bool operator==(const MenuInputData &rhs) const
Input myInput
Definition menuInput.h:57
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.