VR-Engage  2.3
Loading...
Searching...
No Matches
vrfSetStateProperty.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/vrfEntitySetDataRequests.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/entityIdentifier.h>
18#include <string>
19
20namespace makVre
21{
22//! \brief Message type identifier for VrfSetStatePropertyMessage.
23constexpr const char* VrfSetStatePropertyMessageType = "vrf.set.entity.stateProperty";
24
25/**
26 * \class VrfSetStatePropertyMessage
27 * \brief VR-Engage message of type "vrf.set.entity.stateProperty".
28 *
29 * Message type: "vrf.set.entity.stateProperty"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36 //! \brief PropertyType enumeration.
45
46 //! \brief Data payload for VrfSetStatePropertyMessage.
48 {
49 //! \brief Default constructor.
51
52 //! \name Data Members
53 //! \{
54
55 DtEntityIdentifier myEntityId;
57 std::string myName;
58 std::string myValue;
59 //! \}
60
61 //! \name Operators
62 //! \{
63 bool operator==(const VrfSetStatePropertyData& rhs) const;
64 bool operator!=(const VrfSetStatePropertyData& rhs) const;
65 //! \}
66 };
67
68 //! \brief Destructor.
69 virtual ~VrfSetStatePropertyMessage() override;
70
71 //! \name Static Creators
72 //! \{
73 //! \brief Create a new default instance.
74 //! \return A dynamically allocated default message. Caller takes ownership.
76
77 //! \brief Create a copy of the given message.
78 //! \param origMsg The message to copy. Must not be null.
79 //! \return A dynamically allocated copy. Caller takes ownership.
81
82 //! \brief Create a new message initialized with the given data.
83 //! \param data The data payload to initialize the message with.
84 //! \return A dynamically allocated message. Caller takes ownership.
86 //! \}
87
88 //! \name Type Identity
89 //! \{
90 //! \brief Get the message type string for this message class.
91 static const std::string& theType();
92
93 //! \brief Get the message identifier for this message class.
95
96 //! \brief Get the version number for this message class.
98
99 //! \brief Get the message type string for this instance.
100 virtual const std::string& type() const override;
101
102 //! \brief Get the message identifier for this instance.
103 virtual const makVre::DtVreMessageId& messageId() const override;
104 //! \}
105
106 //! \name Accessors
107 //! \{
108 virtual const DtEntityIdentifier& getEntityId() const;
109 virtual void setEntityId(const DtEntityIdentifier& val);
110
111 virtual PropertyType getType() const;
112 virtual void setType(PropertyType val);
113
114 virtual const std::string& getName() const;
115 virtual void setName(const std::string& val);
116
117 virtual const std::string& getValue() const;
118 virtual void setValue(const std::string& 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
VrfSetStatePropertyData getData()
Get a copy of the message data.
VrfSetStatePropertyData getData() const
Get a copy of the message data (const).
virtual void setName(const std::string &val)
virtual void setEntityId(const DtEntityIdentifier &val)
bool operator!=(const VrfSetStatePropertyMessage &rhs) const
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 void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual const DtEntityIdentifier & getEntityId() const
virtual ~VrfSetStatePropertyMessage() override
Destructor.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static VrfSetStatePropertyMessage * create()
Create a copy of the given message.
virtual PropertyType getType() const
virtual const std::string & getName() const
static VrfSetStatePropertyMessage * createFromData(const VrfSetStatePropertyData data)
Create a new message initialized with the given data.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual int messageSize() const override
Get a copy of the message data.
static const std::string & theType()
Get the message type string for this instance.
static makVre::DtVreMessageId theMessageId
Definition vrfSetStateProperty.h:155
virtual void setType(PropertyType val)
static UInt64 theVersion
Definition vrfSetStateProperty.h:156
VrfSetStatePropertyData myData
Definition vrfSetStateProperty.h:158
virtual const std::string & getValue() const
virtual void setValue(const std::string &val)
static VrfSetStatePropertyMessage * createFrom(VrfSetStatePropertyMessage *origMsg)
Create a copy of the given message.
PropertyType
PropertyType enumeration.
Definition vrfSetStateProperty.h:38
@ PropertyType_Int
Definition vrfSetStateProperty.h:41
@ PropertyType_Real
Definition vrfSetStateProperty.h:42
@ PropertyType_String
Definition vrfSetStateProperty.h:39
@ PropertyType_Bool
Definition vrfSetStateProperty.h:40
@ PropertyType_Vector3d
Definition vrfSetStateProperty.h:43
bool operator==(const VrfSetStatePropertyMessage &rhs) const
virtual const std::string & type() const override
Get the message type string for this instance.
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 * VrfSetStatePropertyMessageType
Message type identifier for VrfSetStatePropertyMessage.
Definition vrfSetStateProperty.h:23
Data payload for VrfSetStatePropertyMessage.
Definition vrfSetStateProperty.h:48
DtEntityIdentifier myEntityId
Definition vrfSetStateProperty.h:55
PropertyType myType
Definition vrfSetStateProperty.h:56
bool operator==(const VrfSetStatePropertyData &rhs) const
bool operator!=(const VrfSetStatePropertyData &rhs) const
std::string myValue
Definition vrfSetStateProperty.h:58
std::string myName
Definition vrfSetStateProperty.h:57
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.