VR-Engage  2.3
Loading...
Searching...
No Matches
backendStatus.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/backend.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17
18namespace makVre
19{
20//! \brief Message type identifier for BackendStatusMessage.
21constexpr const char* BackendStatusMessageType = "app.backendStatus.report";
22
23/**
24 * \class BackendStatusMessage
25 * \brief Contains status information for this VR-Engage's sim engine.
26 *
27 * Message type: "app.backendStatus.report"
28 *
29 * \note This is an auto-generated class. Do not modify directly.
30 */
32{
33public:
34
35 //! \brief Data payload for BackendStatusMessage.
37 {
38 //! \brief Default constructor.
40
41 //! \name Data Members
42 //! \{
43
44 //! True when backend launch has been initiated (address assigned)
46
47 //! True when backend has been discovered on the network and is responsive
49
50 //! True when backend has full scenario hosting capabilities
52
53 //! True when started but no scenario is loaded
54 bool myIdle;
55
56 //! True when a scenario has been loaded
58
59 //! True when scenario is loaded but cannot simulate (reloading)
61
62 //! True when backend is actively loading a scenario
64
65 //! True when started, loaded, and not in transition
66 bool myReady;
67 //! \}
68
69 //! \name Operators
70 //! \{
71 bool operator==(const BackendStatusData& rhs) const;
72 bool operator!=(const BackendStatusData& rhs) const;
73 //! \}
74 };
75
76 //! \brief Destructor.
77 virtual ~BackendStatusMessage() override;
78
79 //! \name Static Creators
80 //! \{
81 //! \brief Create a new default instance.
82 //! \return A dynamically allocated default message. Caller takes ownership.
84
85 //! \brief Create a copy of the given message.
86 //! \param origMsg The message to copy. Must not be null.
87 //! \return A dynamically allocated copy. Caller takes ownership.
89
90 //! \brief Create a new message initialized with the given data.
91 //! \param data The data payload to initialize the message with.
92 //! \return A dynamically allocated message. Caller takes ownership.
94 //! \}
95
96 //! \name Type Identity
97 //! \{
98 //! \brief Get the message type string for this message class.
99 static const std::string& theType();
100
101 //! \brief Get the message identifier for this message class.
103
104 //! \brief Get the version number for this message class.
106
107 //! \brief Get the message type string for this instance.
108 virtual const std::string& type() const override;
109
110 //! \brief Get the message identifier for this instance.
111 virtual const makVre::DtVreMessageId& messageId() const override;
112 //! \}
113
114 //! \name Accessors
115 //! \{
116 //! \name Enabled
117 //! \{
118 //! \copydoc BackendStatusData::myEnabled
119 virtual bool getEnabled() const;
120 //! \copydoc BackendStatusData::myEnabled
121 virtual void setEnabled(bool val);
122 //! \}
123
124 //! \name Started
125 //! \{
126 //! \copydoc BackendStatusData::myStarted
127 virtual bool getStarted() const;
128 //! \copydoc BackendStatusData::myStarted
129 virtual void setStarted(bool val);
130 //! \}
131
132 //! \name CanHost
133 //! \{
134 //! \copydoc BackendStatusData::myCanHost
135 virtual bool getCanHost() const;
136 //! \copydoc BackendStatusData::myCanHost
137 virtual void setCanHost(bool val);
138 //! \}
139
140 //! \name Idle
141 //! \{
142 //! \copydoc BackendStatusData::myIdle
143 virtual bool getIdle() const;
144 //! \copydoc BackendStatusData::myIdle
145 virtual void setIdle(bool val);
146 //! \}
147
148 //! \name Loaded
149 //! \{
150 //! \copydoc BackendStatusData::myLoaded
151 virtual bool getLoaded() const;
152 //! \copydoc BackendStatusData::myLoaded
153 virtual void setLoaded(bool val);
154 //! \}
155
156 //! \name Reloading
157 //! \{
158 //! \copydoc BackendStatusData::myReloading
159 virtual bool getReloading() const;
160 //! \copydoc BackendStatusData::myReloading
161 virtual void setReloading(bool val);
162 //! \}
163
164 //! \name Loading
165 //! \{
166 //! \copydoc BackendStatusData::myLoading
167 virtual bool getLoading() const;
168 //! \copydoc BackendStatusData::myLoading
169 virtual void setLoading(bool val);
170 //! \}
171
172 //! \name Ready
173 //! \{
174 //! \copydoc BackendStatusData::myReady
175 virtual bool getReady() const;
176 //! \copydoc BackendStatusData::myReady
177 virtual void setReady(bool val);
178 //! \}
179 //! \}
180
181 //! \name Serialization
182 //! \{
183 //! \copydoc makVre::DtVreMessage::messageSize()
184 virtual int messageSize() const override;
185
186 //! \brief Decode a message from a byte buffer.
187 //! \param buffer The raw byte buffer to decode from.
188 //! \param length The length of the buffer in bytes.
189 //! \return A dynamically allocated decoded message. Caller takes ownership.
190 static makVre::DtVreMessage* decode(char* buffer, int length);
191
192 //! \brief Get a copy of the message data.
194
195 //! \brief Get a copy of the message data (const).
197 //! \}
198
199 //! \name Operators
200 //! \{
201 bool operator==(const BackendStatusMessage& rhs) const;
202 bool operator!=(const BackendStatusMessage& rhs) const;
203 //! \}
204
205protected:
207
208 //! \copydoc makVre::DtVreMessage::serialize()
209 virtual void serialize(DtStreamWriter& writer) const override;
210
211 //! \copydoc makVre::DtVreMessage::deserialize()
212 virtual void deserialize(DtStreamReader& reader) override;
213
214protected:
217
219};
220} // namespace makVre
221
virtual bool getStarted() const
True when backend has been discovered on the network and is responsive.
static UInt64 theVersion
Definition backendStatus.h:216
virtual bool getIdle() const
True when started but no scenario is loaded.
virtual void setStarted(bool val)
True when backend has been discovered on the network and is responsive.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static BackendStatusMessage * createFromData(const BackendStatusData data)
Create a new message initialized with the given data.
bool operator!=(const BackendStatusMessage &rhs) const
BackendStatusData getData()
Get a copy of the message data.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual bool getEnabled() const
True when backend launch has been initiated (address assigned)
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static const std::string & theType()
Get the message type string for this instance.
virtual void setLoaded(bool val)
True when a scenario has been loaded.
virtual ~BackendStatusMessage() override
Destructor.
virtual bool getCanHost() const
True when backend has full scenario hosting capabilities.
virtual void setIdle(bool val)
True when started but no scenario is loaded.
virtual bool getReady() const
True when started, loaded, and not in transition.
bool operator==(const BackendStatusMessage &rhs) const
virtual bool getLoaded() const
True when a scenario has been loaded.
virtual int messageSize() const override
Get a copy of the message data.
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
static BackendStatusMessage * createFrom(BackendStatusMessage *origMsg)
Create a copy of the given message.
virtual const std::string & type() const override
Get the message type string for this instance.
virtual bool getReloading() const
True when scenario is loaded but cannot simulate (reloading)
virtual void setReady(bool val)
True when started, loaded, and not in transition.
BackendStatusData myData
Definition backendStatus.h:218
BackendStatusData getData() const
Get a copy of the message data (const).
virtual void setCanHost(bool val)
True when backend has full scenario hosting capabilities.
static makVre::DtVreMessageId theMessageId
Definition backendStatus.h:215
static BackendStatusMessage * create()
Create a copy of the given message.
virtual void setReloading(bool val)
True when scenario is loaded but cannot simulate (reloading)
virtual void setEnabled(bool val)
True when backend launch has been initiated (address assigned)
virtual void setLoading(bool val)
True when backend is actively loading a scenario.
virtual bool getLoading() const
True when backend is actively loading a scenario.
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
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 * BackendStatusMessageType
Message type identifier for BackendStatusMessage.
Definition backendStatus.h:21
Data payload for BackendStatusMessage.
Definition backendStatus.h:37
bool operator!=(const BackendStatusData &rhs) const
bool myCanHost
True when backend has full scenario hosting capabilities.
Definition backendStatus.h:51
bool myLoaded
True when a scenario has been loaded.
Definition backendStatus.h:57
bool myStarted
True when backend has been discovered on the network and is responsive.
Definition backendStatus.h:48
bool myEnabled
True when backend launch has been initiated (address assigned)
Definition backendStatus.h:45
bool myReady
True when started, loaded, and not in transition.
Definition backendStatus.h:66
bool myReloading
True when scenario is loaded but cannot simulate (reloading)
Definition backendStatus.h:60
bool myIdle
True when started but no scenario is loaded.
Definition backendStatus.h:54
bool operator==(const BackendStatusData &rhs) const
bool myLoading
True when backend is actively loading a scenario.
Definition backendStatus.h:63
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.