VR-Engage  2.3
Loading...
Searching...
No Matches
cigiSessionStatus.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/cigiHostControl.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/simulationAddress.h>
18#include <string>
19
20namespace makVre
21{
22//! \brief Message type identifier for VreCigiSessionStatusMessage.
23constexpr const char* VreCigiSessionStatusMessageType = "cigi.status.sessionStatus";
24
25/**
26 * \class VreCigiSessionStatusMessage
27 * \brief VR-Engage message of type "cigi.status.sessionStatus".
28 *
29 * Message type: "cigi.status.sessionStatus"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36 //! \brief Status enumeration.
43
44 //! \brief Data payload for VreCigiSessionStatusMessage.
46 {
47 //! \brief Default constructor.
49
50 //! \name Data Members
51 //! \{
52
53 DtSimulationAddress myHostSimAddress;
54 std::string myName;
56 //! \}
57
58 //! \name Operators
59 //! \{
60 bool operator==(const VreCigiSessionStatusData& rhs) const;
61 bool operator!=(const VreCigiSessionStatusData& rhs) const;
62 //! \}
63 };
64
65 //! \brief Destructor.
66 virtual ~VreCigiSessionStatusMessage() override;
67
68 //! \name Static Creators
69 //! \{
70 //! \brief Create a new default instance.
71 //! \return A dynamically allocated default message. Caller takes ownership.
73
74 //! \brief Create a copy of the given message.
75 //! \param origMsg The message to copy. Must not be null.
76 //! \return A dynamically allocated copy. Caller takes ownership.
78
79 //! \brief Create a new message initialized with the given data.
80 //! \param data The data payload to initialize the message with.
81 //! \return A dynamically allocated message. Caller takes ownership.
83 //! \}
84
85 //! \name Type Identity
86 //! \{
87 //! \brief Get the message type string for this message class.
88 static const std::string& theType();
89
90 //! \brief Get the message identifier for this message class.
92
93 //! \brief Get the version number for this message class.
95
96 //! \brief Get the message type string for this instance.
97 virtual const std::string& type() const override;
98
99 //! \brief Get the message identifier for this instance.
100 virtual const makVre::DtVreMessageId& messageId() const override;
101 //! \}
102
103 //! \name Accessors
104 //! \{
105 virtual const DtSimulationAddress& getHostSimAddress() const;
106 virtual void setHostSimAddress(const DtSimulationAddress& val);
107
108 virtual const std::string& getName() const;
109 virtual void setName(const std::string& val);
110
111 virtual Status getStatus() const;
112 virtual void setStatus(Status 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 //! \{
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 setHostSimAddress(const DtSimulationAddress &val)
virtual const DtSimulationAddress & getHostSimAddress() const
virtual int messageSize() const override
Get a copy of the message data.
VreCigiSessionStatusData myData
Definition cigiSessionStatus.h:152
static const std::string & theType()
Get the message type string for this instance.
static VreCigiSessionStatusMessage * createFrom(VreCigiSessionStatusMessage *origMsg)
Create a copy of the given message.
static makVre::DtVreMessageId theMessageId
Definition cigiSessionStatus.h:149
virtual void setName(const std::string &val)
virtual void setStatus(Status val)
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 ~VreCigiSessionStatusMessage() override
Destructor.
bool operator!=(const VreCigiSessionStatusMessage &rhs) const
VreCigiSessionStatusData getData() const
Get a copy of the message data (const).
VreCigiSessionStatusData getData()
Get a copy of the message data.
static UInt64 theVersionNumber()
Get the version number for this message class.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static VreCigiSessionStatusMessage * createFromData(const VreCigiSessionStatusData data)
Create a new message initialized with the given data.
bool operator==(const VreCigiSessionStatusMessage &rhs) const
virtual const std::string & getName() const
static VreCigiSessionStatusMessage * create()
Create a copy of the given message.
static UInt64 theVersion
Definition cigiSessionStatus.h:150
Status
Status enumeration.
Definition cigiSessionStatus.h:38
@ Status_FAILED
Definition cigiSessionStatus.h:41
@ Status_STARTED
Definition cigiSessionStatus.h:39
@ Status_ENDED
Definition cigiSessionStatus.h:40
virtual Status getStatus() const
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
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 * VreCigiSessionStatusMessageType
Message type identifier for VreCigiSessionStatusMessage.
Definition cigiSessionStatus.h:23
Data payload for VreCigiSessionStatusMessage.
Definition cigiSessionStatus.h:46
std::string myName
Definition cigiSessionStatus.h:54
DtSimulationAddress myHostSimAddress
Definition cigiSessionStatus.h:53
bool operator!=(const VreCigiSessionStatusData &rhs) const
Status myStatus
Definition cigiSessionStatus.h:55
bool operator==(const VreCigiSessionStatusData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.