VR-Engage  2.3
Loading...
Searching...
No Matches
ownershipTransferResponse.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 OwnershipTransferResponseMessage.
24constexpr const char* OwnershipTransferResponseMessageType = "vrf.ownership.transferResponse";
25
26/**
27 * \class OwnershipTransferResponseMessage
28 * \brief Terminal result published by the coordinator after an ownership acquire or release completes. Mirrors the requestId and entityUuid from the originating request so waiting states can ignore stale responses.
29 *
30 * Message type: "vrf.ownership.transferResponse"
31 *
32 * \note This is an auto-generated class. Do not modify directly.
33 */
35{
36public:
37 //! \brief ResponseStatus enumeration.
46 //! \brief ResponseType enumeration.
52
53 //! \brief Data payload for OwnershipTransferResponseMessage.
55 {
56 //! \brief Default constructor.
58
59 //! \name Data Members
60 //! \{
61
62 //! Echoed from the originating request. Consumer compares against its pending ID to discard stale responses.
63 unsigned long long myRequestId;
64
65 //! Terminal result. Loading-state acquires continue after SUCCESS, SKIPPED, DISABLED, or FAILURE; divest consumers retain their failure handling.
67
68 //! Mirrors the request type: ACQUIRE or RELEASE.
70
71 //! DIS entity triple echoed from the request. Not read by the loadingPlayerState consumer.
72 DtEntityIdentifier myEntityId;
73
74 //! VRF UUID echoed from the request. Not read by the loadingPlayerState consumer.
76
77 //! Human-readable detail string. Read on FAILURE to provide error context in the UI.
78 std::string myMessage;
79 //! \}
80
81 //! \name Operators
82 //! \{
85 //! \}
86 };
87
88 //! \brief Destructor.
90
91 //! \name Static Creators
92 //! \{
93 //! \brief Create a new default instance.
94 //! \return A dynamically allocated default message. Caller takes ownership.
96
97 //! \brief Create a copy of the given message.
98 //! \param origMsg The message to copy. Must not be null.
99 //! \return A dynamically allocated copy. Caller takes ownership.
101
102 //! \brief Create a new message initialized with the given data.
103 //! \param data The data payload to initialize the message with.
104 //! \return A dynamically allocated message. Caller takes ownership.
106 //! \}
107
108 //! \name Type Identity
109 //! \{
110 //! \brief Get the message type string for this message class.
111 static const std::string& theType();
112
113 //! \brief Get the message identifier for this message class.
115
116 //! \brief Get the version number for this message class.
118
119 //! \brief Get the message type string for this instance.
120 virtual const std::string& type() const override;
121
122 //! \brief Get the message identifier for this instance.
123 virtual const makVre::DtVreMessageId& messageId() const override;
124 //! \}
125
126 //! \name Accessors
127 //! \{
128 //! \name RequestId
129 //! \{
130 //! \copydoc OwnershipTransferResponseData::myRequestId
131 virtual unsigned long long getRequestId() const;
132 //! \copydoc OwnershipTransferResponseData::myRequestId
133 virtual void setRequestId(unsigned long long val);
134 //! \}
135
136 //! \name ResponseStatus
137 //! \{
138 //! \copydoc OwnershipTransferResponseData::myResponseStatus
140 //! \copydoc OwnershipTransferResponseData::myResponseStatus
142 //! \}
143
144 //! \name ResponseType
145 //! \{
146 //! \copydoc OwnershipTransferResponseData::myResponseType
148 //! \copydoc OwnershipTransferResponseData::myResponseType
149 virtual void setResponseType(ResponseType val);
150 //! \}
151
152 //! \name EntityId
153 //! \{
154 //! \copydoc OwnershipTransferResponseData::myEntityId
155 virtual const DtEntityIdentifier& getEntityId() const;
156 //! \copydoc OwnershipTransferResponseData::myEntityId
157 virtual void setEntityId(const DtEntityIdentifier& val);
158 //! \}
159
160 //! \name EntityUuid
161 //! \{
162 //! \copydoc OwnershipTransferResponseData::myEntityUuid
163 virtual const DtUUID& getEntityUuid() const;
164 //! \copydoc OwnershipTransferResponseData::myEntityUuid
165 virtual void setEntityUuid(const DtUUID& val);
166 //! \}
167
168 //! \name Message
169 //! \{
170 //! \copydoc OwnershipTransferResponseData::myMessage
171 virtual const std::string& getMessage() const;
172 //! \copydoc OwnershipTransferResponseData::myMessage
173 virtual void setMessage(const std::string& val);
174 //! \}
175 //! \}
176
177 //! \name Serialization
178 //! \{
179 //! \copydoc makVre::DtVreMessage::messageSize()
180 virtual int messageSize() const override;
181
182 //! \brief Decode a message from a byte buffer.
183 //! \param buffer The raw byte buffer to decode from.
184 //! \param length The length of the buffer in bytes.
185 //! \return A dynamically allocated decoded message. Caller takes ownership.
186 static makVre::DtVreMessage* decode(char* buffer, int length);
187
188 //! \brief Get a copy of the message data.
190
191 //! \brief Get a copy of the message data (const).
193 //! \}
194
195 //! \name Operators
196 //! \{
199 //! \}
200
201protected:
203
204 //! \copydoc makVre::DtVreMessage::serialize()
205 virtual void serialize(DtStreamWriter& writer) const override;
206
207 //! \copydoc makVre::DtVreMessage::deserialize()
208 virtual void deserialize(DtStreamReader& reader) override;
209
210protected:
213
215};
216} // namespace makVre
217
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
ResponseType
ResponseType enumeration.
Definition ownershipTransferResponse.h:48
@ ResponseType_RELEASE
Definition ownershipTransferResponse.h:50
@ ResponseType_ACQUIRE
Definition ownershipTransferResponse.h:49
virtual ResponseType getResponseType() const
Mirrors the request type: ACQUIRE or RELEASE.
static makVre::DtVreMessageId theMessageId
Definition ownershipTransferResponse.h:211
virtual void setEntityId(const DtEntityIdentifier &val)
DIS entity triple echoed from the request. Not read by the loadingPlayerState consumer.
static UInt64 theVersion
Definition ownershipTransferResponse.h:212
virtual void setMessage(const std::string &val)
Human-readable detail string. Read on FAILURE to provide error context in the UI.
virtual ResponseStatus getResponseStatus() const
Terminal result. Loading-state acquires continue after SUCCESS, SKIPPED, DISABLED,...
bool operator!=(const OwnershipTransferResponseMessage &rhs) const
static OwnershipTransferResponseMessage * create()
Create a copy of the given message.
bool operator==(const OwnershipTransferResponseMessage &rhs) const
OwnershipTransferResponseData getData()
Get a copy of the message data.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual const std::string & type() const override
Get the message type string for this instance.
virtual ~OwnershipTransferResponseMessage() override
Destructor.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual const std::string & getMessage() const
Human-readable detail string. Read on FAILURE to provide error context in the UI.
virtual void setEntityUuid(const DtUUID &val)
VRF UUID echoed from the request. Not read by the loadingPlayerState consumer.
static UInt64 theVersionNumber()
Get the version number for this message class.
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.
virtual void setRequestId(unsigned long long val)
Echoed from the originating request. Consumer compares against its pending ID to discard stale respon...
virtual const DtEntityIdentifier & getEntityId() const
DIS entity triple echoed from the request. Not read by the loadingPlayerState consumer.
static OwnershipTransferResponseMessage * createFrom(OwnershipTransferResponseMessage *origMsg)
Create a copy of the given message.
ResponseStatus
ResponseStatus enumeration.
Definition ownershipTransferResponse.h:39
@ ResponseStatus_SKIPPED
Definition ownershipTransferResponse.h:43
@ ResponseStatus_FAILURE
Definition ownershipTransferResponse.h:41
@ ResponseStatus_DISABLED
Definition ownershipTransferResponse.h:44
@ ResponseStatus_PENDING
Definition ownershipTransferResponse.h:42
@ ResponseStatus_SUCCESS
Definition ownershipTransferResponse.h:40
virtual unsigned long long getRequestId() const
Echoed from the originating request. Consumer compares against its pending ID to discard stale respon...
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
OwnershipTransferResponseData myData
Definition ownershipTransferResponse.h:214
virtual void setResponseStatus(ResponseStatus val)
Terminal result. Loading-state acquires continue after SUCCESS, SKIPPED, DISABLED,...
static const std::string & theType()
Get the message type string for this instance.
OwnershipTransferResponseData getData() const
Get a copy of the message data (const).
static OwnershipTransferResponseMessage * createFromData(const OwnershipTransferResponseData data)
Create a new message initialized with the given data.
virtual const DtUUID & getEntityUuid() const
VRF UUID echoed from the request. Not read by the loadingPlayerState consumer.
virtual void setResponseType(ResponseType val)
Mirrors the request type: ACQUIRE or RELEASE.
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 * OwnershipTransferResponseMessageType
Message type identifier for OwnershipTransferResponseMessage.
Definition ownershipTransferResponse.h:24
Data payload for OwnershipTransferResponseMessage.
Definition ownershipTransferResponse.h:55
ResponseStatus myResponseStatus
Terminal result. Loading-state acquires continue after SUCCESS, SKIPPED, DISABLED,...
Definition ownershipTransferResponse.h:66
std::string myMessage
Human-readable detail string. Read on FAILURE to provide error context in the UI.
Definition ownershipTransferResponse.h:78
unsigned long long myRequestId
Echoed from the originating request. Consumer compares against its pending ID to discard stale respon...
Definition ownershipTransferResponse.h:63
bool operator!=(const OwnershipTransferResponseData &rhs) const
ResponseType myResponseType
Mirrors the request type: ACQUIRE or RELEASE.
Definition ownershipTransferResponse.h:69
DtUUID myEntityUuid
VRF UUID echoed from the request. Not read by the loadingPlayerState consumer.
Definition ownershipTransferResponse.h:75
DtEntityIdentifier myEntityId
DIS entity triple echoed from the request. Not read by the loadingPlayerState consumer.
Definition ownershipTransferResponse.h:72
bool operator==(const OwnershipTransferResponseData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.