VR-Engage  2.3
Loading...
Searching...
No Matches
toggleMouseControl.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/input.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <string>
18
19namespace makVre
20{
21//! \brief Message type identifier for ToggleMouseControlMessage.
22constexpr const char* ToggleMouseControlMessageType = "system.input.mouse";
23
24/**
25 * \class ToggleMouseControlMessage
26 * \brief Toggle mouse control on/off for mouselook.
27 *
28 * Message type: "system.input.mouse"
29 *
30 * \note This is an auto-generated class. Do not modify directly.
31 */
33{
34public:
35
36 //! \brief Data payload for ToggleMouseControlMessage.
38 {
39 //! \brief Default constructor.
41
42 //! \name Data Members
43 //! \{
44
45 std::string myWindowName;
46 std::string myChannelName;
47 bool myState;
48 //! \}
49
50 //! \name Operators
51 //! \{
52 bool operator==(const ToggleMouseControlData& rhs) const;
53 bool operator!=(const ToggleMouseControlData& rhs) const;
54 //! \}
55 };
56
57 //! \brief Destructor.
58 virtual ~ToggleMouseControlMessage() override;
59
60 //! \name Static Creators
61 //! \{
62 //! \brief Create a new default instance.
63 //! \return A dynamically allocated default message. Caller takes ownership.
65
66 //! \brief Create a copy of the given message.
67 //! \param origMsg The message to copy. Must not be null.
68 //! \return A dynamically allocated copy. Caller takes ownership.
70
71 //! \brief Create a new message initialized with the given data.
72 //! \param data The data payload to initialize the message with.
73 //! \return A dynamically allocated message. Caller takes ownership.
75 //! \}
76
77 //! \name Type Identity
78 //! \{
79 //! \brief Get the message type string for this message class.
80 static const std::string& theType();
81
82 //! \brief Get the message identifier for this message class.
84
85 //! \brief Get the version number for this message class.
87
88 //! \brief Get the message type string for this instance.
89 virtual const std::string& type() const override;
90
91 //! \brief Get the message identifier for this instance.
92 virtual const makVre::DtVreMessageId& messageId() const override;
93 //! \}
94
95 //! \name Accessors
96 //! \{
97 virtual const std::string& getWindowName() const;
98 virtual void setWindowName(const std::string& val);
99
100 virtual const std::string& getChannelName() const;
101 virtual void setChannelName(const std::string& val);
102
103 virtual bool getState() const;
104 virtual void setState(bool val);
105 //! \}
106
107 //! \name Serialization
108 //! \{
109 //! \copydoc makVre::DtVreMessage::messageSize()
110 virtual int messageSize() const override;
111
112 //! \brief Decode a message from a byte buffer.
113 //! \param buffer The raw byte buffer to decode from.
114 //! \param length The length of the buffer in bytes.
115 //! \return A dynamically allocated decoded message. Caller takes ownership.
116 static makVre::DtVreMessage* decode(char* buffer, int length);
117
118 //! \brief Get a copy of the message data.
120
121 //! \brief Get a copy of the message data (const).
123 //! \}
124
125 //! \name Operators
126 //! \{
127 bool operator==(const ToggleMouseControlMessage& rhs) const;
128 bool operator!=(const ToggleMouseControlMessage& rhs) const;
129 //! \}
130
131protected:
133
134 //! \copydoc makVre::DtVreMessage::serialize()
135 virtual void serialize(DtStreamWriter& writer) const override;
136
137 //! \copydoc makVre::DtVreMessage::deserialize()
138 virtual void deserialize(DtStreamReader& reader) override;
139
140protected:
143
145};
146} // namespace makVre
147
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
virtual const std::string & getChannelName() const
virtual void setWindowName(const std::string &val)
static ToggleMouseControlMessage * createFrom(ToggleMouseControlMessage *origMsg)
Create a copy of the given message.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
bool operator==(const ToggleMouseControlMessage &rhs) const
virtual int messageSize() const override
Get a copy of the message data.
ToggleMouseControlData myData
Definition toggleMouseControl.h:144
ToggleMouseControlData getData()
Get a copy of the message data.
static ToggleMouseControlMessage * create()
Create a copy of the given message.
virtual bool getState() const
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual void setState(bool val)
virtual void setChannelName(const std::string &val)
static ToggleMouseControlMessage * createFromData(const ToggleMouseControlData data)
Create a new message initialized with the given data.
static const std::string & theType()
Get the message type string for this instance.
virtual ~ToggleMouseControlMessage() override
Destructor.
ToggleMouseControlData getData() const
Get a copy of the message data (const).
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static makVre::DtVreMessageId theMessageId
Definition toggleMouseControl.h:141
bool operator!=(const ToggleMouseControlMessage &rhs) const
virtual const std::string & getWindowName() const
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static UInt64 theVersion
Definition toggleMouseControl.h:142
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 * ToggleMouseControlMessageType
Message type identifier for ToggleMouseControlMessage.
Definition toggleMouseControl.h:22
Data payload for ToggleMouseControlMessage.
Definition toggleMouseControl.h:38
std::string myWindowName
Definition toggleMouseControl.h:45
bool myState
Definition toggleMouseControl.h:47
bool operator==(const ToggleMouseControlData &rhs) const
bool operator!=(const ToggleMouseControlData &rhs) const
std::string myChannelName
Definition toggleMouseControl.h:46
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.