VR-Engage  2.3
Loading...
Searching...
No Matches
pendingRoleAssignment.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/playerStation.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <string>
18#include <vrfutil/uuid.h>
19
20namespace makVre
21{
22//! \brief Message type identifier for PendingRoleAssignmentMessage.
23constexpr const char* PendingRoleAssignmentMessageType = "PlayerStation.pendingRoleAssignment";
24
25/**
26 * \class PendingRoleAssignmentMessage
27 * \brief Requests a cached role assignment or reports that the matching assignment was accepted or declined.
28 *
29 * Message type: "PlayerStation.pendingRoleAssignment"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36 //! \brief Status enumeration.
42
43 //! \brief Data payload for PendingRoleAssignmentMessage.
45 {
46 //! \brief Default constructor.
48
49 //! \name Data Members
50 //! \{
51
53 std::string myStationId;
55 std::string myStationName;
58 //! \}
59
60 //! \name Operators
61 //! \{
62 bool operator==(const PendingRoleAssignmentData& rhs) const;
63 bool operator!=(const PendingRoleAssignmentData& rhs) const;
64 //! \}
65 };
66
67 //! \brief Destructor.
69
70 //! \name Static Creators
71 //! \{
72 //! \brief Create a new default instance.
73 //! \return A dynamically allocated default message. Caller takes ownership.
75
76 //! \brief Create a copy of the given message.
77 //! \param origMsg The message to copy. Must not be null.
78 //! \return A dynamically allocated copy. Caller takes ownership.
80
81 //! \brief Create a new message initialized with the given data.
82 //! \param data The data payload to initialize the message with.
83 //! \return A dynamically allocated message. Caller takes ownership.
85 //! \}
86
87 //! \name Type Identity
88 //! \{
89 //! \brief Get the message type string for this message class.
90 static const std::string& theType();
91
92 //! \brief Get the message identifier for this message class.
94
95 //! \brief Get the version number for this message class.
97
98 //! \brief Get the message type string for this instance.
99 virtual const std::string& type() const override;
100
101 //! \brief Get the message identifier for this instance.
102 virtual const makVre::DtVreMessageId& messageId() const override;
103 //! \}
104
105 //! \name Accessors
106 //! \{
107 virtual Status getStatus() const;
108 virtual void setStatus(Status val);
109
110 virtual const std::string& getStationId() const;
111 virtual void setStationId(const std::string& val);
112
113 virtual const DtUUID& getEntityUuid() const;
114 virtual void setEntityUuid(const DtUUID& val);
115
116 virtual const std::string& getStationName() const;
117 virtual void setStationName(const std::string& val);
118
119 virtual bool getSpectatorMode() const;
120 virtual void setSpectatorMode(bool val);
121
122 virtual bool getIsReengagement() const;
123 virtual void setIsReengagement(bool val);
124 //! \}
125
126 //! \name Serialization
127 //! \{
128 //! \copydoc makVre::DtVreMessage::messageSize()
129 virtual int messageSize() const override;
130
131 //! \brief Decode a message from a byte buffer.
132 //! \param buffer The raw byte buffer to decode from.
133 //! \param length The length of the buffer in bytes.
134 //! \return A dynamically allocated decoded message. Caller takes ownership.
135 static makVre::DtVreMessage* decode(char* buffer, int length);
136
137 //! \brief Get a copy of the message data.
139
140 //! \brief Get a copy of the message data (const).
142 //! \}
143
144 //! \name Operators
145 //! \{
148 //! \}
149
150protected:
152
153 //! \copydoc makVre::DtVreMessage::serialize()
154 virtual void serialize(DtStreamWriter& writer) const override;
155
156 //! \copydoc makVre::DtVreMessage::deserialize()
157 virtual void deserialize(DtStreamReader& reader) override;
158
159protected:
162
164};
165} // namespace makVre
166
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 int messageSize() const override
Get a copy of the message data.
virtual void setEntityUuid(const DtUUID &val)
Status
Status enumeration.
Definition pendingRoleAssignment.h:38
@ Status_RESPONSE
Definition pendingRoleAssignment.h:40
@ Status_REQUEST
Definition pendingRoleAssignment.h:39
virtual const DtUUID & getEntityUuid() const
virtual const std::string & getStationId() const
virtual void setStatus(Status val)
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual bool getSpectatorMode() const
virtual void setStationId(const std::string &val)
bool operator==(const PendingRoleAssignmentMessage &rhs) const
PendingRoleAssignmentData myData
Definition pendingRoleAssignment.h:163
bool operator!=(const PendingRoleAssignmentMessage &rhs) const
virtual void setStationName(const std::string &val)
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
PendingRoleAssignmentData getData()
Get a copy of the message data.
static PendingRoleAssignmentMessage * create()
Create a copy of the given message.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual Status getStatus() const
PendingRoleAssignmentData getData() const
Get a copy of the message data (const).
virtual const std::string & getStationName() const
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void setIsReengagement(bool val)
static const std::string & theType()
Get the message type string for this instance.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
static PendingRoleAssignmentMessage * createFromData(const PendingRoleAssignmentData data)
Create a new message initialized with the given data.
static makVre::DtVreMessageId theMessageId
Definition pendingRoleAssignment.h:160
static PendingRoleAssignmentMessage * createFrom(PendingRoleAssignmentMessage *origMsg)
Create a copy of the given message.
virtual void setSpectatorMode(bool val)
virtual ~PendingRoleAssignmentMessage() override
Destructor.
static UInt64 theVersion
Definition pendingRoleAssignment.h:161
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual bool getIsReengagement() 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 * PendingRoleAssignmentMessageType
Message type identifier for PendingRoleAssignmentMessage.
Definition pendingRoleAssignment.h:23
Data payload for PendingRoleAssignmentMessage.
Definition pendingRoleAssignment.h:45
DtUUID myEntityUuid
Definition pendingRoleAssignment.h:54
bool operator!=(const PendingRoleAssignmentData &rhs) const
std::string myStationId
Definition pendingRoleAssignment.h:53
bool myIsReengagement
Definition pendingRoleAssignment.h:57
bool operator==(const PendingRoleAssignmentData &rhs) const
bool mySpectatorMode
Definition pendingRoleAssignment.h:56
Status myStatus
Definition pendingRoleAssignment.h:52
std::string myStationName
Definition pendingRoleAssignment.h:55
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.