VR-Engage  2.3
Loading...
Searching...
No Matches
ownershipTransferRequest.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/vrfOwnershipTransfer.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/entityIdentifier.h>
18#include <vrfutil/uuid.h>
19#include <string>
20
21namespace makVre
22{
23//! \brief Message type identifier for OwnershipTransferRequestMessage.
24constexpr const char* OwnershipTransferRequestMessageType = "vrf.ownership.transferRequest";
25
26/**
27 * \class OwnershipTransferRequestMessage
28 * \brief Published by frontend states to request an ownership acquire or release. Every request carries a stable requestId so the coordinator and waiting states can ignore stale or unrelated responses.
29 *
30 * Message type: "vrf.ownership.transferRequest"
31 *
32 * \note This is an auto-generated class. Do not modify directly.
33 */
35{
36public:
37 //! \brief RequestType enumeration.
43
44 //! \brief Data payload for OwnershipTransferRequestMessage.
46 {
47 //! \brief Default constructor.
49
50 //! \name Data Members
51 //! \{
52
53 //! Monotonic counter from DtOwnershipTransferSettings::nextRequestId(). Echoed in the response so the waiting state can discard stale replies.
54 unsigned long long myRequestId;
55
56 //! ACQUIRE to take ownership onto the VRE backend, RELEASE to divest back to the original VRF backend.
58
59 //! DIS site:host:entity triple. Used for eligibility checks and stored in the attribute store as ownedEntityId.
60 DtEntityIdentifier myEntityId;
61
62 //! VRF-internal UUID. Primary key for lastVrfSim() lookup and pending-transfer correlation.
64
65 //! Numeric VR-Engage station ID from app().engageStationId(). Forwarded into auto-divest release data.
67
68 //! Player-station or role name from app().getPlayerStationName(). Set by loadingPlayerState; left empty by synthetic releases.
70
71 //! When true, the connector should not auto-divest the currently-owned entity. The current entity becomes a secondary owned entity. Used by embarkation-chained acquires.
73
74 //! When true, role engagement may complete without a wire transfer when the entity is already simulated by a remote VR-Engage ownship backend. False requires local ownership, including for towing.
76 //! \}
77
78 //! \name Operators
79 //! \{
82 //! \}
83 };
84
85 //! \brief Destructor.
87
88 //! \name Static Creators
89 //! \{
90 //! \brief Create a new default instance.
91 //! \return A dynamically allocated default message. Caller takes ownership.
93
94 //! \brief Create a copy of the given message.
95 //! \param origMsg The message to copy. Must not be null.
96 //! \return A dynamically allocated copy. Caller takes ownership.
98
99 //! \brief Create a new message initialized with the given data.
100 //! \param data The data payload to initialize the message with.
101 //! \return A dynamically allocated message. Caller takes ownership.
103 //! \}
104
105 //! \name Type Identity
106 //! \{
107 //! \brief Get the message type string for this message class.
108 static const std::string& theType();
109
110 //! \brief Get the message identifier for this message class.
112
113 //! \brief Get the version number for this message class.
115
116 //! \brief Get the message type string for this instance.
117 virtual const std::string& type() const override;
118
119 //! \brief Get the message identifier for this instance.
120 virtual const makVre::DtVreMessageId& messageId() const override;
121 //! \}
122
123 //! \name Accessors
124 //! \{
125 //! \name RequestId
126 //! \{
127 //! \copydoc OwnershipTransferRequestData::myRequestId
128 virtual unsigned long long getRequestId() const;
129 //! \copydoc OwnershipTransferRequestData::myRequestId
130 virtual void setRequestId(unsigned long long val);
131 //! \}
132
133 //! \name RequestType
134 //! \{
135 //! \copydoc OwnershipTransferRequestData::myRequestType
137 //! \copydoc OwnershipTransferRequestData::myRequestType
138 virtual void setRequestType(RequestType val);
139 //! \}
140
141 //! \name EntityId
142 //! \{
143 //! \copydoc OwnershipTransferRequestData::myEntityId
144 virtual const DtEntityIdentifier& getEntityId() const;
145 //! \copydoc OwnershipTransferRequestData::myEntityId
146 virtual void setEntityId(const DtEntityIdentifier& val);
147 //! \}
148
149 //! \name EntityUuid
150 //! \{
151 //! \copydoc OwnershipTransferRequestData::myEntityUuid
152 virtual const DtUUID& getEntityUuid() const;
153 //! \copydoc OwnershipTransferRequestData::myEntityUuid
154 virtual void setEntityUuid(const DtUUID& val);
155 //! \}
156
157 //! \name RequestingStationId
158 //! \{
159 //! \copydoc OwnershipTransferRequestData::myRequestingStationId
160 virtual const std::string& getRequestingStationId() const;
161 //! \copydoc OwnershipTransferRequestData::myRequestingStationId
162 virtual void setRequestingStationId(const std::string& val);
163 //! \}
164
165 //! \name RequestingRoleName
166 //! \{
167 //! \copydoc OwnershipTransferRequestData::myRequestingRoleName
168 virtual const std::string& getRequestingRoleName() const;
169 //! \copydoc OwnershipTransferRequestData::myRequestingRoleName
170 virtual void setRequestingRoleName(const std::string& val);
171 //! \}
172
173 //! \name RetainCurrentOwned
174 //! \{
175 //! \copydoc OwnershipTransferRequestData::myRetainCurrentOwned
176 virtual bool getRetainCurrentOwned() const;
177 //! \copydoc OwnershipTransferRequestData::myRetainCurrentOwned
178 virtual void setRetainCurrentOwned(bool val);
179 //! \}
180
181 //! \name AllowRemoteVreOwnership
182 //! \{
183 //! \copydoc OwnershipTransferRequestData::myAllowRemoteVreOwnership
184 virtual bool getAllowRemoteVreOwnership() const;
185 //! \copydoc OwnershipTransferRequestData::myAllowRemoteVreOwnership
186 virtual void setAllowRemoteVreOwnership(bool val);
187 //! \}
188 //! \}
189
190 //! \name Serialization
191 //! \{
192 //! \copydoc makVre::DtVreMessage::messageSize()
193 virtual int messageSize() const override;
194
195 //! \brief Decode a message from a byte buffer.
196 //! \param buffer The raw byte buffer to decode from.
197 //! \param length The length of the buffer in bytes.
198 //! \return A dynamically allocated decoded message. Caller takes ownership.
199 static makVre::DtVreMessage* decode(char* buffer, int length);
200
201 //! \brief Get a copy of the message data.
203
204 //! \brief Get a copy of the message data (const).
206 //! \}
207
208 //! \name Operators
209 //! \{
212 //! \}
213
214protected:
216
217 //! \copydoc makVre::DtVreMessage::serialize()
218 virtual void serialize(DtStreamWriter& writer) const override;
219
220 //! \copydoc makVre::DtVreMessage::deserialize()
221 virtual void deserialize(DtStreamReader& reader) override;
222
223protected:
226
228};
229} // namespace makVre
230
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 setRequestType(RequestType val)
ACQUIRE to take ownership onto the VRE backend, RELEASE to divest back to the original VRF backend.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual void setRequestId(unsigned long long val)
Monotonic counter from DtOwnershipTransferSettings::nextRequestId(). Echoed in the response so the wa...
virtual const DtEntityIdentifier & getEntityId() const
DIS site:host:entity triple. Used for eligibility checks and stored in the attribute store as ownedEn...
virtual const std::string & getRequestingStationId() const
Numeric VR-Engage station ID from app().engageStationId(). Forwarded into auto-divest release data.
static makVre::DtVreMessageId theMessageId
Definition ownershipTransferRequest.h:224
static UInt64 theVersion
Definition ownershipTransferRequest.h:225
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 const DtUUID & getEntityUuid() const
VRF-internal UUID. Primary key for lastVrfSim() lookup and pending-transfer correlation.
static OwnershipTransferRequestMessage * create()
Create a copy of the given message.
virtual RequestType getRequestType() const
ACQUIRE to take ownership onto the VRE backend, RELEASE to divest back to the original VRF backend.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual bool getRetainCurrentOwned() const
When true, the connector should not auto-divest the currently-owned entity. The current entity become...
static UInt64 theVersionNumber()
Get the version number for this message class.
RequestType
RequestType enumeration.
Definition ownershipTransferRequest.h:39
@ RequestType_RELEASE
Definition ownershipTransferRequest.h:41
@ RequestType_ACQUIRE
Definition ownershipTransferRequest.h:40
virtual const std::string & getRequestingRoleName() const
Player-station or role name from app().getPlayerStationName(). Set by loadingPlayerState; left empty ...
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void setRequestingStationId(const std::string &val)
Numeric VR-Engage station ID from app().engageStationId(). Forwarded into auto-divest release data.
virtual unsigned long long getRequestId() const
Monotonic counter from DtOwnershipTransferSettings::nextRequestId(). Echoed in the response so the wa...
virtual void setEntityUuid(const DtUUID &val)
VRF-internal UUID. Primary key for lastVrfSim() lookup and pending-transfer correlation.
OwnershipTransferRequestData getData()
Get a copy of the message data.
virtual void setEntityId(const DtEntityIdentifier &val)
DIS site:host:entity triple. Used for eligibility checks and stored in the attribute store as ownedEn...
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual void setRequestingRoleName(const std::string &val)
Player-station or role name from app().getPlayerStationName(). Set by loadingPlayerState; left empty ...
virtual int messageSize() const override
Get a copy of the message data.
static OwnershipTransferRequestMessage * createFrom(OwnershipTransferRequestMessage *origMsg)
Create a copy of the given message.
virtual bool getAllowRemoteVreOwnership() const
When true, role engagement may complete without a wire transfer when the entity is already simulated ...
OwnershipTransferRequestData getData() const
Get a copy of the message data (const).
static const std::string & theType()
Get the message type string for this instance.
virtual void setAllowRemoteVreOwnership(bool val)
When true, role engagement may complete without a wire transfer when the entity is already simulated ...
bool operator!=(const OwnershipTransferRequestMessage &rhs) const
virtual void setRetainCurrentOwned(bool val)
When true, the connector should not auto-divest the currently-owned entity. The current entity become...
virtual ~OwnershipTransferRequestMessage() override
Destructor.
static OwnershipTransferRequestMessage * createFromData(const OwnershipTransferRequestData data)
Create a new message initialized with the given data.
OwnershipTransferRequestData myData
Definition ownershipTransferRequest.h:227
bool operator==(const OwnershipTransferRequestMessage &rhs) 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 * OwnershipTransferRequestMessageType
Message type identifier for OwnershipTransferRequestMessage.
Definition ownershipTransferRequest.h:24
Data payload for OwnershipTransferRequestMessage.
Definition ownershipTransferRequest.h:46
DtEntityIdentifier myEntityId
DIS site:host:entity triple. Used for eligibility checks and stored in the attribute store as ownedEn...
Definition ownershipTransferRequest.h:60
unsigned long long myRequestId
Monotonic counter from DtOwnershipTransferSettings::nextRequestId(). Echoed in the response so the wa...
Definition ownershipTransferRequest.h:54
bool myAllowRemoteVreOwnership
When true, role engagement may complete without a wire transfer when the entity is already simulated ...
Definition ownershipTransferRequest.h:75
std::string myRequestingStationId
Numeric VR-Engage station ID from app().engageStationId(). Forwarded into auto-divest release data.
Definition ownershipTransferRequest.h:66
bool operator!=(const OwnershipTransferRequestData &rhs) const
DtUUID myEntityUuid
VRF-internal UUID. Primary key for lastVrfSim() lookup and pending-transfer correlation.
Definition ownershipTransferRequest.h:63
RequestType myRequestType
ACQUIRE to take ownership onto the VRE backend, RELEASE to divest back to the original VRF backend.
Definition ownershipTransferRequest.h:57
bool myRetainCurrentOwned
When true, the connector should not auto-divest the currently-owned entity. The current entity become...
Definition ownershipTransferRequest.h:72
std::string myRequestingRoleName
Player-station or role name from app().getPlayerStationName(). Set by loadingPlayerState; left empty ...
Definition ownershipTransferRequest.h:69
bool operator==(const OwnershipTransferRequestData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.