VR-Engage  2.3
Loading...
Searching...
No Matches
ownershipDivestStarted.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 OwnershipDivestStartedMessage.
23constexpr const char* OwnershipDivestStartedMessageType = "vrf.ownership.divestStarted";
24
25/**
26 * \class OwnershipDivestStartedMessage
27 * \brief Published by the connector when it initiates a divest of the owned entity (whether triggered by timeout expiry, immediate handoff to another station, or entity-switch auto-divest). Informational notification to the UI layer.
28 *
29 * Message type: "vrf.ownership.divestStarted"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36
37 //! \brief Data payload for OwnershipDivestStartedMessage.
39 {
40 //! \brief Default constructor.
42
43 //! \name Data Members
44 //! \{
45
46 //! Request ID for the divest operation, from nextRequestId(). Read by chooseRoleState for logging.
47 unsigned long long myRequestId;
48
49 //! UUID of the entity being divested. Read by chooseRoleState for logging.
51
52 //! DIS entity triple of the entity being divested.
53 DtEntityIdentifier myEntityId;
54 //! \}
55
56 //! \name Operators
57 //! \{
58 bool operator==(const OwnershipDivestStartedData& rhs) const;
59 bool operator!=(const OwnershipDivestStartedData& rhs) const;
60 //! \}
61 };
62
63 //! \brief Destructor.
65
66 //! \name Static Creators
67 //! \{
68 //! \brief Create a new default instance.
69 //! \return A dynamically allocated default message. Caller takes ownership.
71
72 //! \brief Create a copy of the given message.
73 //! \param origMsg The message to copy. Must not be null.
74 //! \return A dynamically allocated copy. Caller takes ownership.
76
77 //! \brief Create a new message initialized with the given data.
78 //! \param data The data payload to initialize the message with.
79 //! \return A dynamically allocated message. Caller takes ownership.
81 //! \}
82
83 //! \name Type Identity
84 //! \{
85 //! \brief Get the message type string for this message class.
86 static const std::string& theType();
87
88 //! \brief Get the message identifier for this message class.
90
91 //! \brief Get the version number for this message class.
93
94 //! \brief Get the message type string for this instance.
95 virtual const std::string& type() const override;
96
97 //! \brief Get the message identifier for this instance.
98 virtual const makVre::DtVreMessageId& messageId() const override;
99 //! \}
100
101 //! \name Accessors
102 //! \{
103 //! \name RequestId
104 //! \{
105 //! \copydoc OwnershipDivestStartedData::myRequestId
106 virtual unsigned long long getRequestId() const;
107 //! \copydoc OwnershipDivestStartedData::myRequestId
108 virtual void setRequestId(unsigned long long val);
109 //! \}
110
111 //! \name EntityUuid
112 //! \{
113 //! \copydoc OwnershipDivestStartedData::myEntityUuid
114 virtual const DtUUID& getEntityUuid() const;
115 //! \copydoc OwnershipDivestStartedData::myEntityUuid
116 virtual void setEntityUuid(const DtUUID& val);
117 //! \}
118
119 //! \name EntityId
120 //! \{
121 //! \copydoc OwnershipDivestStartedData::myEntityId
122 virtual const DtEntityIdentifier& getEntityId() const;
123 //! \copydoc OwnershipDivestStartedData::myEntityId
124 virtual void setEntityId(const DtEntityIdentifier& val);
125 //! \}
126 //! \}
127
128 //! \name Serialization
129 //! \{
130 //! \copydoc makVre::DtVreMessage::messageSize()
131 virtual int messageSize() const override;
132
133 //! \brief Decode a message from a byte buffer.
134 //! \param buffer The raw byte buffer to decode from.
135 //! \param length The length of the buffer in bytes.
136 //! \return A dynamically allocated decoded message. Caller takes ownership.
137 static makVre::DtVreMessage* decode(char* buffer, int length);
138
139 //! \brief Get a copy of the message data.
141
142 //! \brief Get a copy of the message data (const).
144 //! \}
145
146 //! \name Operators
147 //! \{
150 //! \}
151
152protected:
154
155 //! \copydoc makVre::DtVreMessage::serialize()
156 virtual void serialize(DtStreamWriter& writer) const override;
157
158 //! \copydoc makVre::DtVreMessage::deserialize()
159 virtual void deserialize(DtStreamReader& reader) override;
160
161protected:
164
166};
167} // namespace makVre
168
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 const std::string & type() const override
Get the message type string for this instance.
static OwnershipDivestStartedMessage * create()
Create a copy of the given message.
bool operator!=(const OwnershipDivestStartedMessage &rhs) const
virtual void setEntityId(const DtEntityIdentifier &val)
DIS entity triple of the entity being divested.
OwnershipDivestStartedData myData
Definition ownershipDivestStarted.h:165
virtual unsigned long long getRequestId() const
Request ID for the divest operation, from nextRequestId(). Read by chooseRoleState for logging.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual int messageSize() const override
Get a copy of the message data.
virtual const DtUUID & getEntityUuid() const
UUID of the entity being divested. Read by chooseRoleState for logging.
OwnershipDivestStartedData getData() const
Get a copy of the message data (const).
static UInt64 theVersionNumber()
Get the version number for this message class.
static makVre::DtVreMessageId theMessageId
Definition ownershipDivestStarted.h:162
OwnershipDivestStartedData getData()
Get a copy of the message data.
static OwnershipDivestStartedMessage * createFrom(OwnershipDivestStartedMessage *origMsg)
Create a copy of the given message.
virtual ~OwnershipDivestStartedMessage() override
Destructor.
virtual void setRequestId(unsigned long long val)
Request ID for the divest operation, from nextRequestId(). Read by chooseRoleState for logging.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static UInt64 theVersion
Definition ownershipDivestStarted.h:163
virtual const DtEntityIdentifier & getEntityId() const
DIS entity triple of the entity being divested.
virtual void setEntityUuid(const DtUUID &val)
UUID of the entity being divested. Read by chooseRoleState for logging.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static const std::string & theType()
Get the message type string for this instance.
static OwnershipDivestStartedMessage * createFromData(const OwnershipDivestStartedData data)
Create a new message initialized with the given data.
bool operator==(const OwnershipDivestStartedMessage &rhs) const
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 * OwnershipDivestStartedMessageType
Message type identifier for OwnershipDivestStartedMessage.
Definition ownershipDivestStarted.h:23
Data payload for OwnershipDivestStartedMessage.
Definition ownershipDivestStarted.h:39
unsigned long long myRequestId
Request ID for the divest operation, from nextRequestId(). Read by chooseRoleState for logging.
Definition ownershipDivestStarted.h:47
bool operator==(const OwnershipDivestStartedData &rhs) const
DtEntityIdentifier myEntityId
DIS entity triple of the entity being divested.
Definition ownershipDivestStarted.h:53
DtUUID myEntityUuid
UUID of the entity being divested. Read by chooseRoleState for logging.
Definition ownershipDivestStarted.h:50
bool operator!=(const OwnershipDivestStartedData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.