VR-Engage  2.3
Loading...
Searching...
No Matches
cigiStartSession.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 VreCigiStartSessionMessage.
23constexpr const char* VreCigiStartSessionMessageType = "cigi.control.startSession";
24
25/**
26 * \class VreCigiStartSessionMessage
27 * \brief VR-Engage message of type "cigi.control.startSession".
28 *
29 * Message type: "cigi.control.startSession"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36 //! \brief SocketType enumeration.
43 //! \brief ForceFilter enumeration.
50 //! \brief IgSyncMode enumeration.
56
57 //! \brief Data payload for VreCigiStartSessionMessage.
59 {
60 //! \brief Default constructor.
62
63 //! \name Data Members
64 //! \{
65
66 DtSimulationAddress myHostSimAddress;
67 std::string myHostConfig;
68 std::string myIgAddress;
69 std::string myName;
70 //! \}
71
72 //! \name Operators
73 //! \{
74 bool operator==(const VreCigiStartSessionData& rhs) const;
75 bool operator!=(const VreCigiStartSessionData& rhs) const;
76 //! \}
77 };
78
79 //! \brief Destructor.
80 virtual ~VreCigiStartSessionMessage() override;
81
82 //! \name Static Creators
83 //! \{
84 //! \brief Create a new default instance.
85 //! \return A dynamically allocated default message. Caller takes ownership.
87
88 //! \brief Create a copy of the given message.
89 //! \param origMsg The message to copy. Must not be null.
90 //! \return A dynamically allocated copy. Caller takes ownership.
92
93 //! \brief Create a new message initialized with the given data.
94 //! \param data The data payload to initialize the message with.
95 //! \return A dynamically allocated message. Caller takes ownership.
97 //! \}
98
99 //! \name Type Identity
100 //! \{
101 //! \brief Get the message type string for this message class.
102 static const std::string& theType();
103
104 //! \brief Get the message identifier for this message class.
106
107 //! \brief Get the version number for this message class.
109
110 //! \brief Get the message type string for this instance.
111 virtual const std::string& type() const override;
112
113 //! \brief Get the message identifier for this instance.
114 virtual const makVre::DtVreMessageId& messageId() const override;
115 //! \}
116
117 //! \name Accessors
118 //! \{
119 virtual const DtSimulationAddress& getHostSimAddress() const;
120 virtual void setHostSimAddress(const DtSimulationAddress& val);
121
122 virtual const std::string& getHostConfig() const;
123 virtual void setHostConfig(const std::string& val);
124
125 virtual const std::string& getIgAddress() const;
126 virtual void setIgAddress(const std::string& val);
127
128 virtual const std::string& getName() const;
129 virtual void setName(const std::string& val);
130 //! \}
131
132 //! \name Serialization
133 //! \{
134 //! \copydoc makVre::DtVreMessage::messageSize()
135 virtual int messageSize() const override;
136
137 //! \brief Decode a message from a byte buffer.
138 //! \param buffer The raw byte buffer to decode from.
139 //! \param length The length of the buffer in bytes.
140 //! \return A dynamically allocated decoded message. Caller takes ownership.
141 static makVre::DtVreMessage* decode(char* buffer, int length);
142
143 //! \brief Get a copy of the message data.
145
146 //! \brief Get a copy of the message data (const).
148 //! \}
149
150 //! \name Operators
151 //! \{
154 //! \}
155
156protected:
158
159 //! \copydoc makVre::DtVreMessage::serialize()
160 virtual void serialize(DtStreamWriter& writer) const override;
161
162 //! \copydoc makVre::DtVreMessage::deserialize()
163 virtual void deserialize(DtStreamReader& reader) override;
164
165protected:
168
170};
171} // namespace makVre
172
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
bool operator==(const VreCigiStartSessionMessage &rhs) const
VreCigiStartSessionData getData()
Get a copy of the message data.
virtual ~VreCigiStartSessionMessage() override
Destructor.
static UInt64 theVersionNumber()
Get the version number for this message class.
static VreCigiStartSessionMessage * createFrom(VreCigiStartSessionMessage *origMsg)
Create a copy of the given message.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
ForceFilter
ForceFilter enumeration.
Definition cigiStartSession.h:45
@ ForceFilter_ALL
Definition cigiStartSession.h:48
@ ForceFilter_HOSTILE
Definition cigiStartSession.h:47
@ ForceFilter_FRIENDLY
Definition cigiStartSession.h:46
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.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
IgSyncMode
IgSyncMode enumeration.
Definition cigiStartSession.h:52
@ IgSyncMode_SYNCHRONOUS
Definition cigiStartSession.h:54
@ IgSyncMode_ASYNCHRONOUS
Definition cigiStartSession.h:53
static UInt64 theVersion
Definition cigiStartSession.h:167
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual const std::string & getIgAddress() const
static const std::string & theType()
Get the message type string for this instance.
virtual void setIgAddress(const std::string &val)
static VreCigiStartSessionMessage * createFromData(const VreCigiStartSessionData data)
Create a new message initialized with the given data.
VreCigiStartSessionData myData
Definition cigiStartSession.h:169
virtual void setHostConfig(const std::string &val)
virtual const DtSimulationAddress & getHostSimAddress() const
virtual int messageSize() const override
Get a copy of the message data.
static VreCigiStartSessionMessage * create()
Create a copy of the given message.
static makVre::DtVreMessageId theMessageId
Definition cigiStartSession.h:166
virtual void setName(const std::string &val)
virtual const std::string & getName() const
virtual const std::string & getHostConfig() const
bool operator!=(const VreCigiStartSessionMessage &rhs) const
SocketType
SocketType enumeration.
Definition cigiStartSession.h:38
@ SocketType_TCP_CLIENT
Definition cigiStartSession.h:40
@ SocketType_UDP
Definition cigiStartSession.h:39
@ SocketType_TCP_SERVER
Definition cigiStartSession.h:41
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void setHostSimAddress(const DtSimulationAddress &val)
VreCigiStartSessionData getData() const
Get a copy of the message data (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 * VreCigiStartSessionMessageType
Message type identifier for VreCigiStartSessionMessage.
Definition cigiStartSession.h:23
Data payload for VreCigiStartSessionMessage.
Definition cigiStartSession.h:59
std::string myIgAddress
Definition cigiStartSession.h:68
bool operator!=(const VreCigiStartSessionData &rhs) const
std::string myName
Definition cigiStartSession.h:69
bool operator==(const VreCigiStartSessionData &rhs) const
DtSimulationAddress myHostSimAddress
Definition cigiStartSession.h:66
std::string myHostConfig
Definition cigiStartSession.h:67
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.