VR-Engage  2.3
Loading...
Searching...
No Matches
loadBackend.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#include <string>
18
19namespace makVre
20{
21//! \brief Message type identifier for LoadBackendMessage.
22constexpr const char* LoadBackendMessageType = "app.backend.load";
23
24/**
25 * \class LoadBackendMessage
26 * \brief Send to create a new scenario or load an existing scenario on this Vr-Engage's sim engine.
27 *
28 * Message type: "app.backend.load"
29 *
30 * \note This is an auto-generated class. Do not modify directly.
31 */
33{
34public:
35
36 //! \brief Data payload for LoadBackendMessage.
38 {
39 //! \brief Default constructor.
41
42 //! \name Data Members
43 //! \{
44
45 std::string myScenarioFilename;
46 std::string myTerrainFilename;
50 //! \}
51
52 //! \name Operators
53 //! \{
54 bool operator==(const LoadBackendData& rhs) const;
55 bool operator!=(const LoadBackendData& rhs) const;
56 //! \}
57 };
58
59 //! \brief Destructor.
60 virtual ~LoadBackendMessage() override;
61
62 //! \name Static Creators
63 //! \{
64 //! \brief Create a new default instance.
65 //! \return A dynamically allocated default message. Caller takes ownership.
67
68 //! \brief Create a copy of the given message.
69 //! \param origMsg The message to copy. Must not be null.
70 //! \return A dynamically allocated copy. Caller takes ownership.
72
73 //! \brief Create a new message initialized with the given data.
74 //! \param data The data payload to initialize the message with.
75 //! \return A dynamically allocated message. Caller takes ownership.
77 //! \}
78
79 //! \name Type Identity
80 //! \{
81 //! \brief Get the message type string for this message class.
82 static const std::string& theType();
83
84 //! \brief Get the message identifier for this message class.
86
87 //! \brief Get the version number for this message class.
89
90 //! \brief Get the message type string for this instance.
91 virtual const std::string& type() const override;
92
93 //! \brief Get the message identifier for this instance.
94 virtual const makVre::DtVreMessageId& messageId() const override;
95 //! \}
96
97 //! \name Accessors
98 //! \{
99 virtual const std::string& getScenarioFilename() const;
100 virtual void setScenarioFilename(const std::string& val);
101
102 virtual const std::string& getTerrainFilename() const;
103 virtual void setTerrainFilename(const std::string& val);
104
105 virtual const std::string& getGuiTerrainFilename() const;
106 virtual void setGuiTerrainFilename(const std::string& val);
107
108 virtual const std::string& getComponentAttachTable() const;
109 virtual void setComponentAttachTable(const std::string& val);
110
111 virtual double getExerciseStartDateAndTime() const;
112 virtual void setExerciseStartDateAndTime(double val);
113 //! \}
114
115 //! \name Serialization
116 //! \{
117 //! \copydoc makVre::DtVreMessage::messageSize()
118 virtual int messageSize() const override;
119
120 //! \brief Decode a message from a byte buffer.
121 //! \param buffer The raw byte buffer to decode from.
122 //! \param length The length of the buffer in bytes.
123 //! \return A dynamically allocated decoded message. Caller takes ownership.
124 static makVre::DtVreMessage* decode(char* buffer, int length);
125
126 //! \brief Get a copy of the message data.
128
129 //! \brief Get a copy of the message data (const).
131 //! \}
132
133 //! \name Operators
134 //! \{
135 bool operator==(const LoadBackendMessage& rhs) const;
136 bool operator!=(const LoadBackendMessage& rhs) const;
137 //! \}
138
139protected:
141
142 //! \copydoc makVre::DtVreMessage::serialize()
143 virtual void serialize(DtStreamWriter& writer) const override;
144
145 //! \copydoc makVre::DtVreMessage::deserialize()
146 virtual void deserialize(DtStreamReader& reader) override;
147
148protected:
151
153};
154} // namespace makVre
155
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 void setTerrainFilename(const std::string &val)
bool operator!=(const LoadBackendMessage &rhs) const
virtual ~LoadBackendMessage() override
Destructor.
LoadBackendData myData
Definition loadBackend.h:152
static const std::string & theType()
Get the message type string for this instance.
static LoadBackendMessage * createFrom(LoadBackendMessage *origMsg)
Create a copy of the given message.
virtual int messageSize() const override
Get a copy of the message data.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static UInt64 theVersion
Definition loadBackend.h:150
static LoadBackendMessage * createFromData(const LoadBackendData data)
Create a new message initialized with the given data.
LoadBackendData getData() const
Get a copy of the message data (const).
virtual void setComponentAttachTable(const std::string &val)
bool operator==(const LoadBackendMessage &rhs) const
static makVre::DtVreMessageId theMessageId
Definition loadBackend.h:149
virtual const std::string & getComponentAttachTable() const
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual void setExerciseStartDateAndTime(double val)
virtual const std::string & getGuiTerrainFilename() const
virtual const std::string & getScenarioFilename() const
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
LoadBackendData getData()
Get a copy of the message data.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual double getExerciseStartDateAndTime() const
virtual const std::string & getTerrainFilename() const
virtual const std::string & type() const override
Get the message type string for this instance.
static LoadBackendMessage * create()
Create a copy of the given message.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual void setScenarioFilename(const std::string &val)
virtual void setGuiTerrainFilename(const std::string &val)
static UInt64 theVersionNumber()
Get the version number for this message class.
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 * LoadBackendMessageType
Message type identifier for LoadBackendMessage.
Definition loadBackend.h:22
Data payload for LoadBackendMessage.
Definition loadBackend.h:38
bool operator!=(const LoadBackendData &rhs) const
bool operator==(const LoadBackendData &rhs) const
std::string myGuiTerrainFilename
Definition loadBackend.h:47
double myExerciseStartDateAndTime
Definition loadBackend.h:49
std::string myScenarioFilename
Definition loadBackend.h:45
std::string myComponentAttachTable
Definition loadBackend.h:48
std::string myTerrainFilename
Definition loadBackend.h:46
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.