VR-Engage  2.3
Loading...
Searching...
No Matches
vrfSessionStatus.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/vrfSessionStatus.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <string>
18
19namespace makVre
20{
21//! \brief Message type identifier for VrfSessionStatusMessage.
22constexpr const char* VrfSessionStatusMessageType = "vrf.session.status";
23
24/**
25 * \class VrfSessionStatusMessage
26 * \brief Contains the state of the current VRF session, if there is one.
27 *
28 * Message type: "vrf.session.status"
29 *
30 * \note This is an auto-generated class. Do not modify directly.
31 */
33{
34public:
35
36 //! \brief Data payload for VrfSessionStatusMessage.
38 {
39 //! \brief Default constructor.
41
42 //! \name Data Members
43 //! \{
44
45 std::string myScenarioName;
46 std::string myScenarioFilename;
47 std::string myTerrainFilename;
54 //! \}
55
56 //! \name Operators
57 //! \{
58 bool operator==(const VrfSessionStatusData& rhs) const;
59 bool operator!=(const VrfSessionStatusData& rhs) const;
60 //! \}
61 };
62
63 //! \brief Destructor.
64 virtual ~VrfSessionStatusMessage() override;
65
66 //! \name Static Creators
67 //! \{
68 //! \brief Create a new default instance.
69 //! \return A dynamically allocated default message. Caller takes ownership.
71
72 //! \brief Create a copy of the given message.
73 //! \param origMsg The message to copy. Must not be null.
74 //! \return A dynamically allocated copy. Caller takes ownership.
76
77 //! \brief Create a new message initialized with the given data.
78 //! \param data The data payload to initialize the message with.
79 //! \return A dynamically allocated message. Caller takes ownership.
81 //! \}
82
83 //! \name Type Identity
84 //! \{
85 //! \brief Get the message type string for this message class.
86 static const std::string& theType();
87
88 //! \brief Get the message identifier for this message class.
90
91 //! \brief Get the version number for this message class.
93
94 //! \brief Get the message type string for this instance.
95 virtual const std::string& type() const override;
96
97 //! \brief Get the message identifier for this instance.
98 virtual const makVre::DtVreMessageId& messageId() const override;
99 //! \}
100
101 //! \name Accessors
102 //! \{
103 virtual const std::string& getScenarioName() const;
104 virtual void setScenarioName(const std::string& val);
105
106 virtual const std::string& getScenarioFilename() const;
107 virtual void setScenarioFilename(const std::string& val);
108
109 virtual const std::string& getTerrainFilename() const;
110 virtual void setTerrainFilename(const std::string& val);
111
112 virtual const std::string& getGuiTerrainFilename() const;
113 virtual void setGuiTerrainFilename(const std::string& val);
114
115 virtual bool getIsHosted() const;
116 virtual void setIsHosted(bool val);
117
118 virtual bool getWeAreHost() const;
119 virtual void setWeAreHost(bool val);
120
121 virtual bool getVreHost() const;
122 virtual void setVreHost(bool val);
123
124 virtual bool getVrfHost() const;
125 virtual void setVrfHost(bool val);
126
127 virtual double getExerciseStartTime() const;
128 virtual void setExerciseStartTime(double val);
129 //! \}
130
131 //! \name Serialization
132 //! \{
133 //! \copydoc makVre::DtVreMessage::messageSize()
134 virtual int messageSize() const override;
135
136 //! \brief Decode a message from a byte buffer.
137 //! \param buffer The raw byte buffer to decode from.
138 //! \param length The length of the buffer in bytes.
139 //! \return A dynamically allocated decoded message. Caller takes ownership.
140 static makVre::DtVreMessage* decode(char* buffer, int length);
141
142 //! \brief Get a copy of the message data.
144
145 //! \brief Get a copy of the message data (const).
147 //! \}
148
149 //! \name Operators
150 //! \{
151 bool operator==(const VrfSessionStatusMessage& rhs) const;
152 bool operator!=(const VrfSessionStatusMessage& rhs) const;
153 //! \}
154
155protected:
157
158 //! \copydoc makVre::DtVreMessage::serialize()
159 virtual void serialize(DtStreamWriter& writer) const override;
160
161 //! \copydoc makVre::DtVreMessage::deserialize()
162 virtual void deserialize(DtStreamReader& reader) override;
163
164protected:
167
169};
170} // namespace makVre
171
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 bool getWeAreHost() const
virtual const std::string & getScenarioFilename() const
virtual const std::string & getTerrainFilename() const
VrfSessionStatusData myData
Definition vrfSessionStatus.h:168
virtual void setIsHosted(bool val)
virtual double getExerciseStartTime() const
bool operator!=(const VrfSessionStatusMessage &rhs) const
virtual bool getVreHost() const
static const std::string & theType()
Get the message type string for this instance.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static UInt64 theVersion
Definition vrfSessionStatus.h:166
virtual void setScenarioName(const std::string &val)
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static makVre::DtVreMessageId theMessageId
Definition vrfSessionStatus.h:165
VrfSessionStatusData getData()
Get a copy of the message data.
virtual const std::string & getGuiTerrainFilename() const
virtual void setGuiTerrainFilename(const std::string &val)
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void setVreHost(bool val)
virtual int messageSize() const override
Get a copy of the message data.
static VrfSessionStatusMessage * createFrom(VrfSessionStatusMessage *origMsg)
Create a copy of the given message.
virtual void setScenarioFilename(const std::string &val)
virtual void setExerciseStartTime(double val)
virtual void setTerrainFilename(const std::string &val)
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static VrfSessionStatusMessage * createFromData(const VrfSessionStatusData data)
Create a new message initialized with the given data.
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual bool getVrfHost() const
virtual const std::string & getScenarioName() const
virtual ~VrfSessionStatusMessage() override
Destructor.
virtual void setWeAreHost(bool val)
static VrfSessionStatusMessage * create()
Create a copy of the given message.
VrfSessionStatusData getData() const
Get a copy of the message data (const).
virtual bool getIsHosted() const
bool operator==(const VrfSessionStatusMessage &rhs) const
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual void setVrfHost(bool val)
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 * VrfSessionStatusMessageType
Message type identifier for VrfSessionStatusMessage.
Definition vrfSessionStatus.h:22
Data payload for VrfSessionStatusMessage.
Definition vrfSessionStatus.h:38
std::string myTerrainFilename
Definition vrfSessionStatus.h:47
bool myWeAreHost
Definition vrfSessionStatus.h:50
std::string myScenarioName
Definition vrfSessionStatus.h:45
bool operator!=(const VrfSessionStatusData &rhs) const
double myExerciseStartTime
Definition vrfSessionStatus.h:53
std::string myScenarioFilename
Definition vrfSessionStatus.h:46
bool myIsHosted
Definition vrfSessionStatus.h:49
bool myVrfHost
Definition vrfSessionStatus.h:52
bool operator==(const VrfSessionStatusData &rhs) const
std::string myGuiTerrainFilename
Definition vrfSessionStatus.h:48
bool myVreHost
Definition vrfSessionStatus.h:51
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.