VR-Engage  2.2
Loading...
Searching...
No Matches
vrfSensorUpdate.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2025 MAK Technologies, Inc.
3** All rights reserved.
4*********************************************************************************/
5
6/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7!!!!!!!!!This is an auto-generated file. Any changes will be destroyed!!!!!!!!!!!
8!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9Generated from: /data/exports/DEV-CAM-BML-043/nightly/3085/libsrc/framework/vreMessages/vrfSensors.lua
10*/
11/*-----------------COMMENT----------------------
12Contains sensor contact data. Sent by the DtVrfRemoteControlConnector when a DtIfSensorData message is received.
13-------------------COMMENT----------------------*/
14#pragma once
15
18#include <vreMessages/export.h>
19#include <vlpi/entityIdentifier.h>
20#include <string>
21#include <vector>
22
23
24namespace makVre
25{
26
27
28constexpr const char* VrfSensorUpdateMessageType = "vrf.sensor.update";
29
31{
32public:
33
35 {
37
38 int size() const;
39 void serialize(DtStreamWriter& writer) const;
41 bool operator==(const SensorContact& rhs) const;
42
43 DtEntityIdentifier myId;
44 DtEntityType myType;
45 std::string myMarking;
46
47 };
48
49
50 // Struct for defining data
52 {
54
55 DtEntityIdentifier myEntityId;
57 std::string mySensorName;
58 std::vector<SensorContact> mySensorContacts;
59
60 bool operator==(const VrfSensorUpdateData& rhs) const;
61 };
62
63 // Default static creators to promote the usage of not using new.
67
68 //! \brief static message identity functions
69 static const std::string& theType();
72
73 //! \brief Get the name of the message type
74 virtual const std::string& type() const override;
75 virtual const makVre::DtVreMessageId& messageId() const override;
76
77 // default destructor
78 virtual ~VrfSensorUpdateMessage() override;
79
80 virtual const DtEntityIdentifier& getEntityId() const;
81 virtual void setEntityId(const DtEntityIdentifier& val);
82
83 virtual int getSensorType() const;
84 virtual void setSensorType(int val);
85
86 virtual const std::string& getSensorName() const;
87 virtual void setSensorName(const std::string& val);
88
89 virtual const std::vector<SensorContact>& getSensorContacts() const;
90 virtual void setSensorContacts(const std::vector<SensorContact>& val);
91
92
93 // Accessors
94 virtual int messageSize() const override;
95 static makVre::DtVreMessage* decode(char* buffer, int length);
98
99 // Operators
100 bool operator==(const VrfSensorUpdateMessage& rhs) const;
101
102protected:
103 // Inaccessible default constructor to promote the usage of the static creator functions
105
106 virtual void serialize(DtStreamWriter& writer) const override;
107 virtual void deserialize(DtStreamReader& reader) override;
108
109protected:
112
113 // Store the data for future use
115};
116
117} // ::makVre
118
119
120
Reader class for decoding values from a byte array.
Definition byteStream.h:42
Writer class for encoding values into a byte array.
Definition byteStream.h:161
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()
virtual const std::string & getSensorName() const
static const makVre::DtVreMessageId & theId()
static VrfSensorUpdateMessage * createFrom(VrfSensorUpdateMessage *)
static makVre::DtVreMessage * decode(char *buffer, int length)
virtual void setSensorName(const std::string &val)
bool operator==(const VrfSensorUpdateMessage &rhs) const
static const std::string & theType()
static message identity functions
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
VrfSensorUpdateData getData() const
static makVre::DtVreMessageId theMessageId
Definition vrfSensorUpdate.h:110
virtual void setSensorContacts(const std::vector< SensorContact > &val)
virtual const std::string & type() const override
Get the name of the message type.
VrfSensorUpdateData getData()
virtual const std::vector< SensorContact > & getSensorContacts() const
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
VrfSensorUpdateData myData
Definition vrfSensorUpdate.h:114
virtual ~VrfSensorUpdateMessage() override
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual void setEntityId(const DtEntityIdentifier &val)
static VrfSensorUpdateMessage * createFromData(const VrfSensorUpdateData)
virtual int getSensorType() const
virtual void setSensorType(int val)
static UInt64 theVersion
Definition vrfSensorUpdate.h:111
static VrfSensorUpdateMessage * create()
virtual int messageSize() const override
Static decode function pattern for derived classes.
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
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * VrfSensorUpdateMessageType
Definition vrfSensorUpdate.h:28
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
bool operator==(const SensorContact &rhs) const
DtEntityType myType
Definition vrfSensorUpdate.h:44
std::string myMarking
Definition vrfSensorUpdate.h:45
void deserialize(DtStreamReader &reader)
void serialize(DtStreamWriter &writer) const
DtEntityIdentifier myId
Definition vrfSensorUpdate.h:43
DtEntityIdentifier myEntityId
Definition vrfSensorUpdate.h:55
std::vector< SensorContact > mySensorContacts
Definition vrfSensorUpdate.h:58
std::string mySensorName
Definition vrfSensorUpdate.h:57
int mySensorType
Definition vrfSensorUpdate.h:56
bool operator==(const VrfSensorUpdateData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.