VR-Engage  2.3
Loading...
Searching...
No Matches
focusState.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
18namespace makVre
19{
20//! \brief Message type identifier for FocusStateMessage.
21constexpr const char* FocusStateMessageType = "system.input.focusState";
22
23/**
24 * \class FocusStateMessage
25 * \brief Signals whether the VRE window has focus.
26 *
27 * Message type: "system.input.focusState"
28 *
29 * \note This is an auto-generated class. Do not modify directly.
30 */
32{
33public:
34
35 //! \brief Data payload for FocusStateMessage.
37 {
38 //! \brief Default constructor.
40
41 //! \name Data Members
42 //! \{
43
45 //! \}
46
47 //! \name Operators
48 //! \{
49 bool operator==(const FocusStateData& rhs) const;
50 bool operator!=(const FocusStateData& rhs) const;
51 //! \}
52 };
53
54 //! \brief Destructor.
55 virtual ~FocusStateMessage() override;
56
57 //! \name Static Creators
58 //! \{
59 //! \brief Create a new default instance.
60 //! \return A dynamically allocated default message. Caller takes ownership.
62
63 //! \brief Create a copy of the given message.
64 //! \param origMsg The message to copy. Must not be null.
65 //! \return A dynamically allocated copy. Caller takes ownership.
67
68 //! \brief Create a new message initialized with the given data.
69 //! \param data The data payload to initialize the message with.
70 //! \return A dynamically allocated message. Caller takes ownership.
72 //! \}
73
74 //! \name Type Identity
75 //! \{
76 //! \brief Get the message type string for this message class.
77 static const std::string& theType();
78
79 //! \brief Get the message identifier for this message class.
81
82 //! \brief Get the version number for this message class.
84
85 //! \brief Get the message type string for this instance.
86 virtual const std::string& type() const override;
87
88 //! \brief Get the message identifier for this instance.
89 virtual const makVre::DtVreMessageId& messageId() const override;
90 //! \}
91
92 //! \name Accessors
93 //! \{
94 virtual bool getFocused() const;
95 virtual void setFocused(bool val);
96 //! \}
97
98 //! \name Serialization
99 //! \{
100 //! \copydoc makVre::DtVreMessage::messageSize()
101 virtual int messageSize() const override;
102
103 //! \brief Decode a message from a byte buffer.
104 //! \param buffer The raw byte buffer to decode from.
105 //! \param length The length of the buffer in bytes.
106 //! \return A dynamically allocated decoded message. Caller takes ownership.
107 static makVre::DtVreMessage* decode(char* buffer, int length);
108
109 //! \brief Get a copy of the message data.
111
112 //! \brief Get a copy of the message data (const).
114 //! \}
115
116 //! \name Operators
117 //! \{
118 bool operator==(const FocusStateMessage& rhs) const;
119 bool operator!=(const FocusStateMessage& rhs) const;
120 //! \}
121
122protected:
124
125 //! \copydoc makVre::DtVreMessage::serialize()
126 virtual void serialize(DtStreamWriter& writer) const override;
127
128 //! \copydoc makVre::DtVreMessage::deserialize()
129 virtual void deserialize(DtStreamReader& reader) override;
130
131protected:
134
136};
137} // namespace makVre
138
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 theVersionNumber()
Get the version number for this message class.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void setFocused(bool val)
static makVre::DtVreMessageId theMessageId
Definition focusState.h:132
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static FocusStateMessage * createFromData(const FocusStateData data)
Create a new message initialized with the given data.
virtual ~FocusStateMessage() override
Destructor.
static FocusStateMessage * create()
Create a copy of the given message.
bool operator==(const FocusStateMessage &rhs) const
static const std::string & theType()
Get the message type string for this instance.
FocusStateData getData()
Get a copy of the message data.
bool operator!=(const FocusStateMessage &rhs) const
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual bool getFocused() const
static FocusStateMessage * createFrom(FocusStateMessage *origMsg)
Create a copy of the given message.
FocusStateData myData
Definition focusState.h:135
static UInt64 theVersion
Definition focusState.h:133
virtual int messageSize() const override
Get a copy of the message data.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
FocusStateData getData() const
Get a copy of the message data (const).
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 * FocusStateMessageType
Message type identifier for FocusStateMessage.
Definition focusState.h:21
Data payload for FocusStateMessage.
Definition focusState.h:37
bool operator!=(const FocusStateData &rhs) const
bool operator==(const FocusStateData &rhs) const
bool myFocused
Definition focusState.h:44
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.