VR-Engage  2.3
Loading...
Searching...
No Matches
vrfSensorUpdateRequest.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
19namespace makVre
20{
21//! \brief Message type identifier for VrfSensorUpdateRequestMessage.
22constexpr const char* VrfSensorUpdateRequestMessageType = "vrf.sensor.request";
23
24/**
25 * \class VrfSensorUpdateRequestMessage
26 * \brief Use to reqeust sensor updates from a specified sensor on an entity. Received by the DtVrfRemoteControlConnector and sent to the sim as a DtIfVreSensorDataRequest
27 *
28 * Message type: "vrf.sensor.request"
29 *
30 * \note This is an auto-generated class. Do not modify directly.
31 */
33{
34public:
35 //! \brief Request enumeration.
42
43 //! \brief Data payload for VrfSensorUpdateRequestMessage.
45 {
46 //! \brief Default constructor.
48
49 //! \name Data Members
50 //! \{
51
52 DtEntityIdentifier myEntityId;
55 //! \}
56
57 //! \name Operators
58 //! \{
59 bool operator==(const VrfSensorUpdateRequestData& rhs) const;
60 bool operator!=(const VrfSensorUpdateRequestData& rhs) const;
61 //! \}
62 };
63
64 //! \brief Destructor.
66
67 //! \name Static Creators
68 //! \{
69 //! \brief Create a new default instance.
70 //! \return A dynamically allocated default message. Caller takes ownership.
72
73 //! \brief Create a copy of the given message.
74 //! \param origMsg The message to copy. Must not be null.
75 //! \return A dynamically allocated copy. Caller takes ownership.
77
78 //! \brief Create a new message initialized with the given data.
79 //! \param data The data payload to initialize the message with.
80 //! \return A dynamically allocated message. Caller takes ownership.
82 //! \}
83
84 //! \name Type Identity
85 //! \{
86 //! \brief Get the message type string for this message class.
87 static const std::string& theType();
88
89 //! \brief Get the message identifier for this message class.
91
92 //! \brief Get the version number for this message class.
94
95 //! \brief Get the message type string for this instance.
96 virtual const std::string& type() const override;
97
98 //! \brief Get the message identifier for this instance.
99 virtual const makVre::DtVreMessageId& messageId() const override;
100 //! \}
101
102 //! \name Accessors
103 //! \{
104 virtual const DtEntityIdentifier& getEntityId() const;
105 virtual void setEntityId(const DtEntityIdentifier& val);
106
107 virtual int getSensorType() const;
108 virtual void setSensorType(int val);
109
110 virtual Request getRequest() const;
111 virtual void setRequest(Request val);
112 //! \}
113
114 //! \name Serialization
115 //! \{
116 //! \copydoc makVre::DtVreMessage::messageSize()
117 virtual int messageSize() const override;
118
119 //! \brief Decode a message from a byte buffer.
120 //! \param buffer The raw byte buffer to decode from.
121 //! \param length The length of the buffer in bytes.
122 //! \return A dynamically allocated decoded message. Caller takes ownership.
123 static makVre::DtVreMessage* decode(char* buffer, int length);
124
125 //! \brief Get a copy of the message data.
127
128 //! \brief Get a copy of the message data (const).
130 //! \}
131
132 //! \name Operators
133 //! \{
136 //! \}
137
138protected:
140
141 //! \copydoc makVre::DtVreMessage::serialize()
142 virtual void serialize(DtStreamWriter& writer) const override;
143
144 //! \copydoc makVre::DtVreMessage::deserialize()
145 virtual void deserialize(DtStreamReader& reader) override;
146
147protected:
150
152};
153} // namespace makVre
154
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 void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static makVre::DtVreMessageId theMessageId
Definition vrfSensorUpdateRequest.h:148
static VrfSensorUpdateRequestMessage * createFrom(VrfSensorUpdateRequestMessage *origMsg)
Create a copy of the given message.
virtual const DtEntityIdentifier & getEntityId() const
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
VrfSensorUpdateRequestData getData() const
Get a copy of the message data (const).
virtual void setRequest(Request val)
virtual void setEntityId(const DtEntityIdentifier &val)
VrfSensorUpdateRequestData myData
Definition vrfSensorUpdateRequest.h:151
virtual ~VrfSensorUpdateRequestMessage() override
Destructor.
Request
Request enumeration.
Definition vrfSensorUpdateRequest.h:37
@ Request_STOP
Definition vrfSensorUpdateRequest.h:40
@ Request_SINGLE
Definition vrfSensorUpdateRequest.h:38
@ Request_START
Definition vrfSensorUpdateRequest.h:39
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
VrfSensorUpdateRequestData getData()
Get a copy of the message data.
bool operator!=(const VrfSensorUpdateRequestMessage &rhs) const
bool operator==(const VrfSensorUpdateRequestMessage &rhs) const
virtual void setSensorType(int val)
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual const std::string & type() const override
Get the message type string for this instance.
static UInt64 theVersion
Definition vrfSensorUpdateRequest.h:149
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 VrfSensorUpdateRequestMessage * create()
Create a copy of the given message.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual Request getRequest() const
static VrfSensorUpdateRequestMessage * createFromData(const VrfSensorUpdateRequestData 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.
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 * VrfSensorUpdateRequestMessageType
Message type identifier for VrfSensorUpdateRequestMessage.
Definition vrfSensorUpdateRequest.h:22
Data payload for VrfSensorUpdateRequestMessage.
Definition vrfSensorUpdateRequest.h:45
bool operator!=(const VrfSensorUpdateRequestData &rhs) const
bool operator==(const VrfSensorUpdateRequestData &rhs) const
Request myRequest
Definition vrfSensorUpdateRequest.h:54
int mySensorType
Definition vrfSensorUpdateRequest.h:53
DtEntityIdentifier myEntityId
Definition vrfSensorUpdateRequest.h:52
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.