VR-Engage  2.3
Loading...
Searching...
No Matches
vrfSetVreControlled.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/vrfControl.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/entityIdentifier.h>
18#include <string>
19#include <vector>
20
21namespace makVre
22{
23//! \brief Message type identifier for VrfSetVreControlledMessage.
24constexpr const char* VrfSetVreControlledMessageType = "vrf.setVreControlled";
25
26/**
27 * \class VrfSetVreControlledMessage
28 * \brief Set VR-Engage role control state for an entity.
29 *
30 * Message type: "vrf.setVreControlled"
31 *
32 * \note This is an auto-generated class. Do not modify directly.
33 */
35{
36public:
37
38 //! \brief Data payload for VrfSetVreControlledMessage.
40 {
41 //! \brief Default constructor.
43
44 //! \name Data Members
45 //! \{
46
47 DtEntityIdentifier myEntityId;
48 std::string myStationId;
49 std::string myRoleName;
50 std::vector<std::string> myRoleTypes;
53 //! \}
54
55 //! \name Operators
56 //! \{
57 bool operator==(const VrfSetVreControlledData& rhs) const;
58 bool operator!=(const VrfSetVreControlledData& rhs) const;
59 //! \}
60 };
61
62 //! \brief Destructor.
63 virtual ~VrfSetVreControlledMessage() override;
64
65 //! \name Static Creators
66 //! \{
67 //! \brief Create a new default instance.
68 //! \return A dynamically allocated default message. Caller takes ownership.
70
71 //! \brief Create a copy of the given message.
72 //! \param origMsg The message to copy. Must not be null.
73 //! \return A dynamically allocated copy. Caller takes ownership.
75
76 //! \brief Create a new message initialized with the given data.
77 //! \param data The data payload to initialize the message with.
78 //! \return A dynamically allocated message. Caller takes ownership.
80 //! \}
81
82 //! \name Type Identity
83 //! \{
84 //! \brief Get the message type string for this message class.
85 static const std::string& theType();
86
87 //! \brief Get the message identifier for this message class.
89
90 //! \brief Get the version number for this message class.
92
93 //! \brief Get the message type string for this instance.
94 virtual const std::string& type() const override;
95
96 //! \brief Get the message identifier for this instance.
97 virtual const makVre::DtVreMessageId& messageId() const override;
98 //! \}
99
100 //! \name Accessors
101 //! \{
102 virtual const DtEntityIdentifier& getEntityId() const;
103 virtual void setEntityId(const DtEntityIdentifier& val);
104
105 virtual const std::string& getStationId() const;
106 virtual void setStationId(const std::string& val);
107
108 virtual const std::string& getRoleName() const;
109 virtual void setRoleName(const std::string& val);
110
111 virtual const std::vector<std::string>& getRoleTypes() const;
112 virtual void setRoleTypes(const std::vector<std::string>& val);
113
114 virtual bool getControlled() const;
115 virtual void setControlled(bool val);
116
117 virtual bool getIgnoreErrors() const;
118 virtual void setIgnoreErrors(bool val);
119 //! \}
120
121 //! \name Serialization
122 //! \{
123 //! \copydoc makVre::DtVreMessage::messageSize()
124 virtual int messageSize() const override;
125
126 //! \brief Decode a message from a byte buffer.
127 //! \param buffer The raw byte buffer to decode from.
128 //! \param length The length of the buffer in bytes.
129 //! \return A dynamically allocated decoded message. Caller takes ownership.
130 static makVre::DtVreMessage* decode(char* buffer, int length);
131
132 //! \brief Get a copy of the message data.
134
135 //! \brief Get a copy of the message data (const).
137 //! \}
138
139 //! \name Operators
140 //! \{
143 //! \}
144
145protected:
147
148 //! \copydoc makVre::DtVreMessage::serialize()
149 virtual void serialize(DtStreamWriter& writer) const override;
150
151 //! \copydoc makVre::DtVreMessage::deserialize()
152 virtual void deserialize(DtStreamReader& reader) override;
153
154protected:
157
159};
160} // namespace makVre
161
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 VrfSetVreControlledMessage * create()
Create a copy of the given message.
virtual void setRoleTypes(const std::vector< std::string > &val)
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual bool getIgnoreErrors() const
VrfSetVreControlledData getData() const
Get a copy of the message data (const).
static VrfSetVreControlledMessage * createFrom(VrfSetVreControlledMessage *origMsg)
Create a copy of the given message.
virtual void setStationId(const std::string &val)
virtual ~VrfSetVreControlledMessage() override
Destructor.
virtual const std::string & getStationId() const
virtual bool getControlled() const
virtual const DtEntityIdentifier & getEntityId() const
bool operator!=(const VrfSetVreControlledMessage &rhs) const
static makVre::DtVreMessageId theMessageId
Definition vrfSetVreControlled.h:155
virtual const std::vector< std::string > & getRoleTypes() const
static UInt64 theVersion
Definition vrfSetVreControlled.h:156
VrfSetVreControlledData getData()
Get a copy of the message data.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual void setRoleName(const std::string &val)
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual const std::string & getRoleName() const
VrfSetVreControlledData myData
Definition vrfSetVreControlled.h:158
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual void setEntityId(const DtEntityIdentifier &val)
virtual int messageSize() const override
Get a copy of the message data.
bool operator==(const VrfSetVreControlledMessage &rhs) const
static const std::string & theType()
Get the message type string for this instance.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static VrfSetVreControlledMessage * createFromData(const VrfSetVreControlledData data)
Create a new message initialized with the given data.
virtual void setIgnoreErrors(bool val)
virtual void setControlled(bool val)
static UInt64 theVersionNumber()
Get the version number for this message class.
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 * VrfSetVreControlledMessageType
Message type identifier for VrfSetVreControlledMessage.
Definition vrfSetVreControlled.h:24
Data payload for VrfSetVreControlledMessage.
Definition vrfSetVreControlled.h:40
DtEntityIdentifier myEntityId
Definition vrfSetVreControlled.h:47
bool myIgnoreErrors
Definition vrfSetVreControlled.h:52
bool myControlled
Definition vrfSetVreControlled.h:51
bool operator!=(const VrfSetVreControlledData &rhs) const
bool operator==(const VrfSetVreControlledData &rhs) const
std::string myStationId
Definition vrfSetVreControlled.h:48
std::vector< std::string > myRoleTypes
Definition vrfSetVreControlled.h:50
std::string myRoleName
Definition vrfSetVreControlled.h:49
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.