VR-Engage  2.2
Loading...
Searching...
No Matches
menuSetState.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/framework/vreMessages/actionMenu.lua
10*/
11/*-----------------COMMENT----------------------
12Used to show, hide or toggle action menus and quick menus. Handled by DtMenuManager.
13-------------------COMMENT----------------------*/
14#pragma once
15
18#include <vreMessages/export.h>
19#include <string>
20
21
22namespace makVre
23{
24
25
26constexpr const char* MenuSetStateMessageType = "menu.set.state";
27
29{
30public:
33
34
35 // Struct for defining data
47
48 // Default static creators to promote the usage of not using new.
52
53 //! \brief static message identity functions
54 static const std::string& theType();
57
58 //! \brief Get the name of the message type
59 virtual const std::string& type() const override;
60 virtual const makVre::DtVreMessageId& messageId() const override;
61
62 // default destructor
63 virtual ~MenuSetStateMessage() override;
64
65 virtual const std::string& getMenu() const;
66 virtual void setMenu(const std::string& val);
67
68 virtual State getState() const;
69 virtual void setState(State val);
70
71 virtual const std::string& getDefaultSelection() const;
72 virtual void setDefaultSelection(const std::string& val);
73
74 virtual Type getType() const;
75 virtual void setType(Type val);
76
77
78 // Accessors
79 virtual int messageSize() const override;
80 static makVre::DtVreMessage* decode(char* buffer, int length);
83
84 // Operators
85 bool operator==(const MenuSetStateMessage& rhs) const;
86
87protected:
88 // Inaccessible default constructor to promote the usage of the static creator functions
90
91 virtual void serialize(DtStreamWriter& writer) const override;
92 virtual void deserialize(DtStreamReader& reader) override;
93
94protected:
97
98 // Store the data for future use
100};
101
102} // ::makVre
103
104
105
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
MenuSetStateData myData
Definition menuSetState.h:99
bool operator==(const MenuSetStateMessage &rhs) const
MenuSetStateData getData() const
static MenuSetStateMessage * createFrom(MenuSetStateMessage *)
virtual void setState(State val)
virtual void setType(Type val)
static const makVre::DtVreMessageId & theId()
virtual int messageSize() const override
Static decode function pattern for derived classes.
static makVre::DtVreMessage * decode(char *buffer, int length)
virtual const std::string & getDefaultSelection() const
State
Definition menuSetState.h:31
@ State_TOGGLE
Definition menuSetState.h:31
@ State_SHOW
Definition menuSetState.h:31
@ State_HIDE
Definition menuSetState.h:31
static UInt64 theVersionNumber()
virtual const std::string & getMenu() const
Type
Definition menuSetState.h:32
@ Type_STATIC
Definition menuSetState.h:32
@ Type_QUICK
Definition menuSetState.h:32
static UInt64 theVersion
Definition menuSetState.h:96
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static const std::string & theType()
static message identity functions
virtual Type getType() const
virtual State getState() const
static makVre::DtVreMessageId theMessageId
Definition menuSetState.h:95
virtual void setMenu(const std::string &val)
virtual void setDefaultSelection(const std::string &val)
virtual ~MenuSetStateMessage() override
MenuSetStateData getData()
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual const std::string & type() const override
Get the name of the message type.
static MenuSetStateMessage * createFromData(const MenuSetStateData)
static MenuSetStateMessage * create()
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * MenuSetStateMessageType
Definition menuSetState.h:26
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
State myState
Definition menuSetState.h:41
std::string myMenu
Definition menuSetState.h:40
Type myType
Definition menuSetState.h:43
bool operator==(const MenuSetStateData &rhs) const
std::string myDefaultSelection
Definition menuSetState.h:42
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.