VR-Engage  2.3
Loading...
Searching...
No Matches
vreOwnershipTransferStatus.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 <vrfutil/uuid.h>
18#include <vlpi/entityIdentifier.h>
19
20namespace makVre
21{
22//! \brief Message type identifier for VreOwnershipTransferStatusMessage.
23constexpr const char* VreOwnershipTransferStatusMessageType = "vrf.ownership.transferStatus";
24
25/**
26 * \class VreOwnershipTransferStatusMessage
27 * \brief Broadcasts non-terminal ownership transfer progress within the frontend process. The state machine does not unblock on this message; it is used for UI progress updates only.
28 *
29 * Message type: "vrf.ownership.transferStatus"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36 //! \brief StatusCode enumeration.
47
48 //! \brief Data payload for VreOwnershipTransferStatusMessage.
50 {
51 //! \brief Default constructor.
53
54 //! \name Data Members
55 //! \{
56
57 //! Copied from the pending transfer's requestId for correlation.
58 unsigned long long myRequestId;
59
60 //! VRF UUID of the entity whose ownership is being transferred.
62
63 //! DIS entity triple of the entity whose ownership is being transferred.
64 DtEntityIdentifier myEntityId;
65
66 //! Non-terminal progress indicator sent at each stage of the VRF ownership negotiation.
68 //! \}
69
70 //! \name Operators
71 //! \{
74 //! \}
75 };
76
77 //! \brief Destructor.
79
80 //! \name Static Creators
81 //! \{
82 //! \brief Create a new default instance.
83 //! \return A dynamically allocated default message. Caller takes ownership.
85
86 //! \brief Create a copy of the given message.
87 //! \param origMsg The message to copy. Must not be null.
88 //! \return A dynamically allocated copy. Caller takes ownership.
90
91 //! \brief Create a new message initialized with the given data.
92 //! \param data The data payload to initialize the message with.
93 //! \return A dynamically allocated message. Caller takes ownership.
95 //! \}
96
97 //! \name Type Identity
98 //! \{
99 //! \brief Get the message type string for this message class.
100 static const std::string& theType();
101
102 //! \brief Get the message identifier for this message class.
104
105 //! \brief Get the version number for this message class.
107
108 //! \brief Get the message type string for this instance.
109 virtual const std::string& type() const override;
110
111 //! \brief Get the message identifier for this instance.
112 virtual const makVre::DtVreMessageId& messageId() const override;
113 //! \}
114
115 //! \name Accessors
116 //! \{
117 //! \name RequestId
118 //! \{
119 //! \copydoc VreOwnershipTransferStatusData::myRequestId
120 virtual unsigned long long getRequestId() const;
121 //! \copydoc VreOwnershipTransferStatusData::myRequestId
122 virtual void setRequestId(unsigned long long val);
123 //! \}
124
125 //! \name EntityUuid
126 //! \{
127 //! \copydoc VreOwnershipTransferStatusData::myEntityUuid
128 virtual const DtUUID& getEntityUuid() const;
129 //! \copydoc VreOwnershipTransferStatusData::myEntityUuid
130 virtual void setEntityUuid(const DtUUID& val);
131 //! \}
132
133 //! \name EntityId
134 //! \{
135 //! \copydoc VreOwnershipTransferStatusData::myEntityId
136 virtual const DtEntityIdentifier& getEntityId() const;
137 //! \copydoc VreOwnershipTransferStatusData::myEntityId
138 virtual void setEntityId(const DtEntityIdentifier& val);
139 //! \}
140
141 //! \name StatusCode
142 //! \{
143 //! \copydoc VreOwnershipTransferStatusData::myStatusCode
144 virtual StatusCode getStatusCode() const;
145 //! \copydoc VreOwnershipTransferStatusData::myStatusCode
146 virtual void setStatusCode(StatusCode val);
147 //! \}
148 //! \}
149
150 //! \name Serialization
151 //! \{
152 //! \copydoc makVre::DtVreMessage::messageSize()
153 virtual int messageSize() const override;
154
155 //! \brief Decode a message from a byte buffer.
156 //! \param buffer The raw byte buffer to decode from.
157 //! \param length The length of the buffer in bytes.
158 //! \return A dynamically allocated decoded message. Caller takes ownership.
159 static makVre::DtVreMessage* decode(char* buffer, int length);
160
161 //! \brief Get a copy of the message data.
163
164 //! \brief Get a copy of the message data (const).
166 //! \}
167
168 //! \name Operators
169 //! \{
172 //! \}
173
174protected:
176
177 //! \copydoc makVre::DtVreMessage::serialize()
178 virtual void serialize(DtStreamWriter& writer) const override;
179
180 //! \copydoc makVre::DtVreMessage::deserialize()
181 virtual void deserialize(DtStreamReader& reader) override;
182
183protected:
186
188};
189} // namespace makVre
190
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
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static VreOwnershipTransferStatusMessage * createFrom(VreOwnershipTransferStatusMessage *origMsg)
Create a copy of the given message.
static VreOwnershipTransferStatusMessage * create()
Create a copy of the given message.
static const std::string & theType()
Get the message type string for this instance.
virtual StatusCode getStatusCode() const
Non-terminal progress indicator sent at each stage of the VRF ownership negotiation.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
bool operator==(const VreOwnershipTransferStatusMessage &rhs) const
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual void setEntityUuid(const DtUUID &val)
VRF UUID of the entity whose ownership is being transferred.
virtual unsigned long long getRequestId() const
Copied from the pending transfer's requestId for correlation.
VreOwnershipTransferStatusData getData() const
Get a copy of the message data (const).
static UInt64 theVersion
Definition vreOwnershipTransferStatus.h:185
StatusCode
StatusCode enumeration.
Definition vreOwnershipTransferStatus.h:38
@ StatusCode_LostOwnership
Definition vreOwnershipTransferStatus.h:44
@ StatusCode_Unsupported
Definition vreOwnershipTransferStatus.h:42
@ StatusCode_InProgress
Definition vreOwnershipTransferStatus.h:39
@ StatusCode_GainedOwnership
Definition vreOwnershipTransferStatus.h:43
@ StatusCode_Refused
Definition vreOwnershipTransferStatus.h:41
@ StatusCode_WillTransfer
Definition vreOwnershipTransferStatus.h:40
@ StatusCode_MultipleRequests
Definition vreOwnershipTransferStatus.h:45
virtual const DtEntityIdentifier & getEntityId() const
DIS entity triple of the entity whose ownership is being transferred.
VreOwnershipTransferStatusData getData()
Get a copy of the message data.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void setStatusCode(StatusCode val)
Non-terminal progress indicator sent at each stage of the VRF ownership negotiation.
VreOwnershipTransferStatusData myData
Definition vreOwnershipTransferStatus.h:187
virtual void setEntityId(const DtEntityIdentifier &val)
DIS entity triple of the entity whose ownership is being transferred.
virtual const DtUUID & getEntityUuid() const
VRF UUID of the entity whose ownership is being transferred.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual int messageSize() const override
Get a copy of the message data.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static VreOwnershipTransferStatusMessage * createFromData(const VreOwnershipTransferStatusData data)
Create a new message initialized with the given data.
virtual void setRequestId(unsigned long long val)
Copied from the pending transfer's requestId for correlation.
virtual ~VreOwnershipTransferStatusMessage() override
Destructor.
bool operator!=(const VreOwnershipTransferStatusMessage &rhs) const
virtual const std::string & type() const override
Get the message type string for this instance.
static makVre::DtVreMessageId theMessageId
Definition vreOwnershipTransferStatus.h:184
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 * VreOwnershipTransferStatusMessageType
Message type identifier for VreOwnershipTransferStatusMessage.
Definition vreOwnershipTransferStatus.h:23
Data payload for VreOwnershipTransferStatusMessage.
Definition vreOwnershipTransferStatus.h:50
DtEntityIdentifier myEntityId
DIS entity triple of the entity whose ownership is being transferred.
Definition vreOwnershipTransferStatus.h:64
bool operator==(const VreOwnershipTransferStatusData &rhs) const
unsigned long long myRequestId
Copied from the pending transfer's requestId for correlation.
Definition vreOwnershipTransferStatus.h:58
StatusCode myStatusCode
Non-terminal progress indicator sent at each stage of the VRF ownership negotiation.
Definition vreOwnershipTransferStatus.h:67
DtUUID myEntityUuid
VRF UUID of the entity whose ownership is being transferred.
Definition vreOwnershipTransferStatus.h:61
bool operator!=(const VreOwnershipTransferStatusData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.