VR-Engage  2.3
Loading...
Searching...
No Matches
sessionLoadData.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 SessionLoadDataMessage.
22constexpr const char* SessionLoadDataMessageType = "vrf.session.load";
23
24/**
25 * \class SessionLoadDataMessage
26 * \brief Used to pass data between application states. Not sent or handled using the DtVreMessageManager.
27 *
28 * Message type: "vrf.session.load"
29 *
30 * \note This is an auto-generated class. Do not modify directly.
31 */
33{
34public:
35
36 //! \brief Data payload for SessionLoadDataMessage.
38 {
39 //! \brief Default constructor.
41
42 //! \name Data Members
43 //! \{
44
45 std::string myScenarioFilename;
46 std::string myTerrainFilename;
53 //! \}
54
55 //! \name Operators
56 //! \{
57 bool operator==(const SessionLoadDataData& rhs) const;
58 bool operator!=(const SessionLoadDataData& rhs) const;
59 //! \}
60 };
61
62 //! \brief Destructor.
63 virtual ~SessionLoadDataMessage() override;
64
65 //! \name Static Creators
66 //! \{
67 //! \brief Create a new default instance.
68 //! \return A dynamically allocated default message. Caller takes ownership.
70
71 //! \brief Create a copy of the given message.
72 //! \param origMsg The message to copy. Must not be null.
73 //! \return A dynamically allocated copy. Caller takes ownership.
75
76 //! \brief Create a new message initialized with the given data.
77 //! \param data The data payload to initialize the message with.
78 //! \return A dynamically allocated message. Caller takes ownership.
80 //! \}
81
82 //! \name Type Identity
83 //! \{
84 //! \brief Get the message type string for this message class.
85 static const std::string& theType();
86
87 //! \brief Get the message identifier for this message class.
89
90 //! \brief Get the version number for this message class.
92
93 //! \brief Get the message type string for this instance.
94 virtual const std::string& type() const override;
95
96 //! \brief Get the message identifier for this instance.
97 virtual const makVre::DtVreMessageId& messageId() const override;
98 //! \}
99
100 //! \name Accessors
101 //! \{
102 virtual const std::string& getScenarioFilename() const;
103 virtual void setScenarioFilename(const std::string& val);
104
105 virtual const std::string& getTerrainFilename() const;
106 virtual void setTerrainFilename(const std::string& val);
107
108 virtual const std::string& getGuiTerrainFilename() const;
109 virtual void setGuiTerrainFilename(const std::string& val);
110
111 virtual bool getIsHosted() const;
112 virtual void setIsHosted(bool val);
113
114 virtual bool getWeAreHost() const;
115 virtual void setWeAreHost(bool val);
116
117 virtual bool getStartingNew() const;
118 virtual void setStartingNew(bool val);
119
120 virtual bool getUsingBackend() const;
121 virtual void setUsingBackend(bool val);
122
123 virtual bool getUsingOwnshipSim() const;
124 virtual void setUsingOwnshipSim(bool val);
125 //! \}
126
127 //! \name Serialization
128 //! \{
129 //! \copydoc makVre::DtVreMessage::messageSize()
130 virtual int messageSize() const override;
131
132 //! \brief Decode a message from a byte buffer.
133 //! \param buffer The raw byte buffer to decode from.
134 //! \param length The length of the buffer in bytes.
135 //! \return A dynamically allocated decoded message. Caller takes ownership.
136 static makVre::DtVreMessage* decode(char* buffer, int length);
137
138 //! \brief Get a copy of the message data.
140
141 //! \brief Get a copy of the message data (const).
143 //! \}
144
145 //! \name Operators
146 //! \{
147 bool operator==(const SessionLoadDataMessage& rhs) const;
148 bool operator!=(const SessionLoadDataMessage& rhs) const;
149 //! \}
150
151protected:
153
154 //! \copydoc makVre::DtVreMessage::serialize()
155 virtual void serialize(DtStreamWriter& writer) const override;
156
157 //! \copydoc makVre::DtVreMessage::deserialize()
158 virtual void deserialize(DtStreamReader& reader) override;
159
160protected:
163
165};
166} // namespace makVre
167
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.
virtual void setUsingBackend(bool val)
virtual void setStartingNew(bool val)
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual int messageSize() const override
Get a copy of the message data.
static const std::string & theType()
Get the message type string for this instance.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
bool operator==(const SessionLoadDataMessage &rhs) const
virtual void setGuiTerrainFilename(const std::string &val)
static makVre::DtVreMessageId theMessageId
Definition sessionLoadData.h:161
virtual void setUsingOwnshipSim(bool val)
virtual void setTerrainFilename(const std::string &val)
bool operator!=(const SessionLoadDataMessage &rhs) const
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual bool getUsingBackend() const
virtual bool getStartingNew() const
virtual void setScenarioFilename(const std::string &val)
virtual bool getUsingOwnshipSim() const
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void setWeAreHost(bool val)
SessionLoadDataData myData
Definition sessionLoadData.h:164
static SessionLoadDataMessage * createFromData(const SessionLoadDataData data)
Create a new message initialized with the given data.
virtual ~SessionLoadDataMessage() override
Destructor.
static UInt64 theVersion
Definition sessionLoadData.h:162
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual void setIsHosted(bool val)
virtual const std::string & getGuiTerrainFilename() const
SessionLoadDataData getData()
Get a copy of the message data.
virtual bool getWeAreHost() const
virtual const std::string & getTerrainFilename() const
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
SessionLoadDataData getData() const
Get a copy of the message data (const).
static SessionLoadDataMessage * create()
Create a copy of the given message.
static SessionLoadDataMessage * createFrom(SessionLoadDataMessage *origMsg)
Create a copy of the given message.
virtual bool getIsHosted() const
virtual const std::string & getScenarioFilename() 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 * SessionLoadDataMessageType
Message type identifier for SessionLoadDataMessage.
Definition sessionLoadData.h:22
Data payload for SessionLoadDataMessage.
Definition sessionLoadData.h:38
bool myWeAreHost
Definition sessionLoadData.h:49
std::string myGuiTerrainFilename
Definition sessionLoadData.h:47
bool myUsingBackend
Definition sessionLoadData.h:51
std::string myTerrainFilename
Definition sessionLoadData.h:46
bool operator==(const SessionLoadDataData &rhs) const
bool operator!=(const SessionLoadDataData &rhs) const
bool myIsHosted
Definition sessionLoadData.h:48
bool myUsingOwnshipSim
Definition sessionLoadData.h:52
bool myStartingNew
Definition sessionLoadData.h:50
std::string myScenarioFilename
Definition sessionLoadData.h:45
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.