VR-Engage  2.3
Loading...
Searching...
No Matches
radarStateData.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/radarScope.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 RadarStateDataMessage.
23constexpr const char* RadarStateDataMessageType = "radarState.data";
24
25/**
26 * \class RadarStateDataMessage
27 * \brief This message is used to transmit radar state data to the HUD and radar instrument. Sent only when a GUI is subscribing. See RadarStateSubscribeMessage.
28 *
29 * Message type: "radarState.data"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36
37 //! \brief Data payload for RadarStateDataMessage.
39 {
40 //! \brief Default constructor.
42
43 //! \name Data Members
44 //! \{
45
46 DtEntityIdentifier myHostId;
47 std::string myRadarName;
48 std::string myMode;
49 std::string mySubmode;
54 double myGateSize;
59 //! \}
60
61 //! \name Operators
62 //! \{
63 bool operator==(const RadarStateDataData& rhs) const;
64 bool operator!=(const RadarStateDataData& rhs) const;
65 //! \}
66 };
67
68 //! \brief Destructor.
69 virtual ~RadarStateDataMessage() 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& getHostId() const;
109 virtual void setHostId(const DtEntityIdentifier& val);
110
111 virtual const std::string& getRadarName() const;
112 virtual void setRadarName(const std::string& val);
113
114 virtual const std::string& getMode() const;
115 virtual void setMode(const std::string& val);
116
117 virtual const std::string& getSubmode() const;
118 virtual void setSubmode(const std::string& val);
119
120 virtual double getCenterAzimuth() const;
121 virtual void setCenterAzimuth(double val);
122
123 virtual double getCenterElevation() const;
124 virtual void setCenterElevation(double val);
125
126 virtual double getMinElevation() const;
127 virtual void setMinElevation(double val);
128
129 virtual double getMaxElevation() const;
130 virtual void setMaxElevation(double val);
131
132 virtual double getGateSize() const;
133 virtual void setGateSize(double val);
134
135 virtual double getCurrentAzimuth() const;
136 virtual void setCurrentAzimuth(double val);
137
138 virtual double getCurrentElevation() const;
139 virtual void setCurrentElevation(double val);
140
141 virtual double getCurrentAzimuthRate() const;
142 virtual void setCurrentAzimuthRate(double val);
143
144 virtual int getBarCount() const;
145 virtual void setBarCount(int val);
146 //! \}
147
148 //! \name Serialization
149 //! \{
150 //! \copydoc makVre::DtVreMessage::messageSize()
151 virtual int messageSize() const override;
152
153 //! \brief Decode a message from a byte buffer.
154 //! \param buffer The raw byte buffer to decode from.
155 //! \param length The length of the buffer in bytes.
156 //! \return A dynamically allocated decoded message. Caller takes ownership.
157 static makVre::DtVreMessage* decode(char* buffer, int length);
158
159 //! \brief Get a copy of the message data.
161
162 //! \brief Get a copy of the message data (const).
164 //! \}
165
166 //! \name Operators
167 //! \{
168 bool operator==(const RadarStateDataMessage& rhs) const;
169 bool operator!=(const RadarStateDataMessage& rhs) const;
170 //! \}
171
172protected:
174
175 //! \copydoc makVre::DtVreMessage::serialize()
176 virtual void serialize(DtStreamWriter& writer) const override;
177
178 //! \copydoc makVre::DtVreMessage::deserialize()
179 virtual void deserialize(DtStreamReader& reader) override;
180
181protected:
184
186};
187} // namespace makVre
188
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 theVersion
Definition radarStateData.h:183
virtual void setMode(const std::string &val)
virtual void setCenterElevation(double val)
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual double getGateSize() const
virtual double getCenterElevation() const
virtual double getCurrentElevation() const
virtual void setHostId(const DtEntityIdentifier &val)
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual void setMinElevation(double val)
RadarStateDataData myData
Definition radarStateData.h:185
virtual double getCenterAzimuth() const
RadarStateDataData getData() const
Get a copy of the message data (const).
virtual double getCurrentAzimuth() const
virtual void setCenterAzimuth(double val)
virtual double getMaxElevation() const
virtual const DtEntityIdentifier & getHostId() const
static const std::string & theType()
Get the message type string for this instance.
virtual int getBarCount() const
virtual void setCurrentAzimuth(double val)
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void setSubmode(const std::string &val)
bool operator==(const RadarStateDataMessage &rhs) const
static RadarStateDataMessage * createFrom(RadarStateDataMessage *origMsg)
Create a copy of the given message.
static makVre::DtVreMessageId theMessageId
Definition radarStateData.h:182
virtual const std::string & getRadarName() const
virtual int messageSize() const override
Get a copy of the message data.
RadarStateDataData getData()
Get a copy of the message data.
virtual void setMaxElevation(double val)
virtual void setCurrentAzimuthRate(double val)
virtual double getCurrentAzimuthRate() const
virtual void setGateSize(double val)
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual const std::string & getSubmode() const
static RadarStateDataMessage * createFromData(const RadarStateDataData data)
Create a new message initialized with the given data.
static RadarStateDataMessage * create()
Create a copy of the given message.
virtual double getMinElevation() const
virtual void setBarCount(int val)
bool operator!=(const RadarStateDataMessage &rhs) const
virtual ~RadarStateDataMessage() override
Destructor.
virtual void setRadarName(const std::string &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.
virtual void setCurrentElevation(double val)
virtual const std::string & getMode() 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 * RadarStateDataMessageType
Message type identifier for RadarStateDataMessage.
Definition radarStateData.h:23
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
Data payload for RadarStateDataMessage.
Definition radarStateData.h:39
double myGateSize
Definition radarStateData.h:54
int myBarCount
Definition radarStateData.h:58
double myCenterAzimuth
Definition radarStateData.h:50
double myCenterElevation
Definition radarStateData.h:51
double myCurrentAzimuth
Definition radarStateData.h:55
double myCurrentAzimuthRate
Definition radarStateData.h:57
std::string myRadarName
Definition radarStateData.h:47
std::string mySubmode
Definition radarStateData.h:49
DtEntityIdentifier myHostId
Definition radarStateData.h:46
bool operator==(const RadarStateDataData &rhs) const
std::string myMode
Definition radarStateData.h:48
double myCurrentElevation
Definition radarStateData.h:56
double myMaxElevation
Definition radarStateData.h:53
bool operator!=(const RadarStateDataData &rhs) const
double myMinElevation
Definition radarStateData.h:52
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.