VR-Engage  2.3
Loading...
Searching...
No Matches
vrfSensorUpdate.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/vrfSensors.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 VrfSensorUpdateMessage.
24constexpr const char* VrfSensorUpdateMessageType = "vrf.sensor.update";
25
26/**
27 * \class VrfSensorUpdateMessage
28 * \brief Contains sensor contact data. Sent by the DtVrfRemoteControlConnector when a DtIfSensorData message is received.
29 *
30 * Message type: "vrf.sensor.update"
31 *
32 * \note This is an auto-generated class. Do not modify directly.
33 */
35{
36public:
37
38 //! \brief Nested data structure.
40 {
41 //! \brief Default constructor.
43
44 //! \brief Get the serialized size in bytes.
45 int size() const;
46 //! \brief Serialize to a stream writer.
47 void serialize(DtStreamWriter& writer) const;
48 //! \brief Deserialize from a stream reader.
50 //! \brief Equality comparison operator.
51 bool operator==(const SensorContact& rhs) const;
52 //! \brief Inequality comparison operator.
53 bool operator!=(const SensorContact& rhs) const;
54
55 DtEntityIdentifier myId;
56 DtEntityType myType;
57 std::string myMarking;
58
59 };
60
61 //! \brief Data payload for VrfSensorUpdateMessage.
63 {
64 //! \brief Default constructor.
66
67 //! \name Data Members
68 //! \{
69
70 DtEntityIdentifier myEntityId;
72 std::string mySensorName;
73 std::vector<SensorContact> mySensorContacts;
74 //! \}
75
76 //! \name Operators
77 //! \{
78 bool operator==(const VrfSensorUpdateData& rhs) const;
79 bool operator!=(const VrfSensorUpdateData& rhs) const;
80 //! \}
81 };
82
83 //! \brief Destructor.
84 virtual ~VrfSensorUpdateMessage() override;
85
86 //! \name Static Creators
87 //! \{
88 //! \brief Create a new default instance.
89 //! \return A dynamically allocated default message. Caller takes ownership.
91
92 //! \brief Create a copy of the given message.
93 //! \param origMsg The message to copy. Must not be null.
94 //! \return A dynamically allocated copy. Caller takes ownership.
96
97 //! \brief Create a new message initialized with the given data.
98 //! \param data The data payload to initialize the message with.
99 //! \return A dynamically allocated message. Caller takes ownership.
101 //! \}
102
103 //! \name Type Identity
104 //! \{
105 //! \brief Get the message type string for this message class.
106 static const std::string& theType();
107
108 //! \brief Get the message identifier for this message class.
110
111 //! \brief Get the version number for this message class.
113
114 //! \brief Get the message type string for this instance.
115 virtual const std::string& type() const override;
116
117 //! \brief Get the message identifier for this instance.
118 virtual const makVre::DtVreMessageId& messageId() const override;
119 //! \}
120
121 //! \name Accessors
122 //! \{
123 virtual const DtEntityIdentifier& getEntityId() const;
124 virtual void setEntityId(const DtEntityIdentifier& val);
125
126 virtual int getSensorType() const;
127 virtual void setSensorType(int val);
128
129 virtual const std::string& getSensorName() const;
130 virtual void setSensorName(const std::string& val);
131
132 virtual const std::vector<SensorContact>& getSensorContacts() const;
133 virtual void setSensorContacts(const std::vector<SensorContact>& val);
134 //! \}
135
136 //! \name Serialization
137 //! \{
138 //! \copydoc makVre::DtVreMessage::messageSize()
139 virtual int messageSize() const override;
140
141 //! \brief Decode a message from a byte buffer.
142 //! \param buffer The raw byte buffer to decode from.
143 //! \param length The length of the buffer in bytes.
144 //! \return A dynamically allocated decoded message. Caller takes ownership.
145 static makVre::DtVreMessage* decode(char* buffer, int length);
146
147 //! \brief Get a copy of the message data.
149
150 //! \brief Get a copy of the message data (const).
152 //! \}
153
154 //! \name Operators
155 //! \{
156 bool operator==(const VrfSensorUpdateMessage& rhs) const;
157 bool operator!=(const VrfSensorUpdateMessage& rhs) const;
158 //! \}
159
160protected:
162
163 //! \copydoc makVre::DtVreMessage::serialize()
164 virtual void serialize(DtStreamWriter& writer) const override;
165
166 //! \copydoc makVre::DtVreMessage::deserialize()
167 virtual void deserialize(DtStreamReader& reader) override;
168
169protected:
172
174};
175} // namespace makVre
176
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 UInt64 theVersionNumber()
Get the version number for this message class.
virtual const std::string & getSensorName() const
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual void setSensorName(const std::string &val)
bool operator==(const VrfSensorUpdateMessage &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.
VrfSensorUpdateData getData() const
Get a copy of the message data (const).
static makVre::DtVreMessageId theMessageId
Definition vrfSensorUpdate.h:170
static VrfSensorUpdateMessage * createFromData(const VrfSensorUpdateData data)
Create a new message initialized with the given data.
virtual void setSensorContacts(const std::vector< SensorContact > &val)
virtual const std::string & type() const override
Get the message type string for this instance.
VrfSensorUpdateData getData()
Get a copy of the message data.
virtual const std::vector< SensorContact > & getSensorContacts() const
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
VrfSensorUpdateData myData
Definition vrfSensorUpdate.h:173
virtual ~VrfSensorUpdateMessage() override
Destructor.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual void setEntityId(const DtEntityIdentifier &val)
bool operator!=(const VrfSensorUpdateMessage &rhs) const
virtual int getSensorType() const
virtual void setSensorType(int val)
static UInt64 theVersion
Definition vrfSensorUpdate.h:171
static VrfSensorUpdateMessage * create()
Create a copy of the given message.
virtual int messageSize() const override
Get a copy of the message data.
static VrfSensorUpdateMessage * createFrom(VrfSensorUpdateMessage *origMsg)
Create a copy of the given message.
virtual const DtEntityIdentifier & getEntityId() 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
constexpr const char * VrfSensorUpdateMessageType
Message type identifier for VrfSensorUpdateMessage.
Definition vrfSensorUpdate.h:24
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
bool operator==(const SensorContact &rhs) const
Equality comparison operator.
DtEntityType myType
Definition vrfSensorUpdate.h:56
std::string myMarking
Definition vrfSensorUpdate.h:57
void deserialize(DtStreamReader &reader)
Deserialize from a stream reader.
void serialize(DtStreamWriter &writer) const
Serialize to a stream writer.
DtEntityIdentifier myId
Definition vrfSensorUpdate.h:55
bool operator!=(const SensorContact &rhs) const
Inequality comparison operator.
int size() const
Get the serialized size in bytes.
Data payload for VrfSensorUpdateMessage.
Definition vrfSensorUpdate.h:63
DtEntityIdentifier myEntityId
Definition vrfSensorUpdate.h:70
std::vector< SensorContact > mySensorContacts
Definition vrfSensorUpdate.h:73
std::string mySensorName
Definition vrfSensorUpdate.h:72
int mySensorType
Definition vrfSensorUpdate.h:71
bool operator!=(const VrfSensorUpdateData &rhs) const
bool operator==(const VrfSensorUpdateData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.