VR-Engage  2.3
Loading...
Searching...
No Matches
rwrData.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/rwr.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/entityIdentifier.h>
18#include <vector>
19
20namespace makVre
21{
22//! \brief Message type identifier for RwrDataMessage.
23constexpr const char* RwrDataMessageType = "rwr.data";
24
25/**
26 * \class RwrDataMessage
27 * \brief Contains data for Radar WarningReceiver contacts. See RwrSubscribeMessage to request updates.
28 *
29 * Message type: "rwr.data"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36
37 //! \brief Nested data structure.
39 {
40 //! \brief Default constructor.
42
43 //! \brief Get the serialized size in bytes.
44 int size() const;
45 //! \brief Serialize to a stream writer.
46 void serialize(DtStreamWriter& writer) const;
47 //! \brief Deserialize from a stream reader.
49 //! \brief Equality comparison operator.
50 bool operator==(const RwrContact& rhs) const;
51 //! \brief Inequality comparison operator.
52 bool operator!=(const RwrContact& rhs) const;
53
54 float myAzimuth;
56 float myRange;
57 int myMode;
58 float myPower;
59 std::string mySystemId;
60 std::vector<std::string> myTargets;
61
62 };
63
64 //! \brief Data payload for RwrDataMessage.
66 {
67 //! \brief Default constructor.
69
70 //! \name Data Members
71 //! \{
72
73 DtEntityIdentifier myHostId;
74 std::vector<RwrContact> myContacts;
75 //! \}
76
77 //! \name Operators
78 //! \{
79 bool operator==(const RwrDataData& rhs) const;
80 bool operator!=(const RwrDataData& rhs) const;
81 //! \}
82 };
83
84 //! \brief Destructor.
85 virtual ~RwrDataMessage() override;
86
87 //! \name Static Creators
88 //! \{
89 //! \brief Create a new default instance.
90 //! \return A dynamically allocated default message. Caller takes ownership.
92
93 //! \brief Create a copy of the given message.
94 //! \param origMsg The message to copy. Must not be null.
95 //! \return A dynamically allocated copy. Caller takes ownership.
97
98 //! \brief Create a new message initialized with the given data.
99 //! \param data The data payload to initialize the message with.
100 //! \return A dynamically allocated message. Caller takes ownership.
102 //! \}
103
104 //! \name Type Identity
105 //! \{
106 //! \brief Get the message type string for this message class.
107 static const std::string& theType();
108
109 //! \brief Get the message identifier for this message class.
111
112 //! \brief Get the version number for this message class.
114
115 //! \brief Get the message type string for this instance.
116 virtual const std::string& type() const override;
117
118 //! \brief Get the message identifier for this instance.
119 virtual const makVre::DtVreMessageId& messageId() const override;
120 //! \}
121
122 //! \name Accessors
123 //! \{
124 virtual const DtEntityIdentifier& getHostId() const;
125 virtual void setHostId(const DtEntityIdentifier& val);
126
127 virtual const std::vector<RwrContact>& getContacts() const;
128 virtual void setContacts(const std::vector<RwrContact>& val);
129 //! \}
130
131 //! \name Serialization
132 //! \{
133 //! \copydoc makVre::DtVreMessage::messageSize()
134 virtual int messageSize() const override;
135
136 //! \brief Decode a message from a byte buffer.
137 //! \param buffer The raw byte buffer to decode from.
138 //! \param length The length of the buffer in bytes.
139 //! \return A dynamically allocated decoded message. Caller takes ownership.
140 static makVre::DtVreMessage* decode(char* buffer, int length);
141
142 //! \brief Get a copy of the message data.
144
145 //! \brief Get a copy of the message data (const).
147 //! \}
148
149 //! \name Operators
150 //! \{
151 bool operator==(const RwrDataMessage& rhs) const;
152 bool operator!=(const RwrDataMessage& rhs) const;
153 //! \}
154
155protected:
157
158 //! \copydoc makVre::DtVreMessage::serialize()
159 virtual void serialize(DtStreamWriter& writer) const override;
160
161 //! \copydoc makVre::DtVreMessage::deserialize()
162 virtual void deserialize(DtStreamReader& reader) override;
163
164protected:
167
169};
170} // namespace makVre
171
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 deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual ~RwrDataMessage() override
Destructor.
virtual void setHostId(const DtEntityIdentifier &val)
virtual const std::string & type() const override
Get the message type string for this instance.
static const std::string & theType()
Get the message type string for this instance.
bool operator==(const RwrDataMessage &rhs) const
bool operator!=(const RwrDataMessage &rhs) const
RwrDataData myData
Definition rwrData.h:168
RwrDataData getData()
Get a copy of the message data.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual void setContacts(const std::vector< RwrContact > &val)
static RwrDataMessage * createFrom(RwrDataMessage *origMsg)
Create a copy of the given message.
static RwrDataMessage * createFromData(const RwrDataData data)
Create a new message initialized with the given data.
virtual const std::vector< RwrContact > & getContacts() const
RwrDataData getData() const
Get a copy of the message data (const).
virtual int messageSize() const override
Get a copy of the message data.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
static UInt64 theVersion
Definition rwrData.h:166
virtual const DtEntityIdentifier & getHostId() const
static RwrDataMessage * create()
Create a copy of the given message.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static makVre::DtVreMessageId theMessageId
Definition rwrData.h:165
static UInt64 theVersionNumber()
Get the version number for this message class.
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 * RwrDataMessageType
Message type identifier for RwrDataMessage.
Definition rwrData.h:23
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
std::string mySystemId
Definition rwrData.h:59
float myPower
Definition rwrData.h:58
RwrContact()
Default constructor.
float myRange
Definition rwrData.h:56
int myMode
Definition rwrData.h:57
float myElevation
Definition rwrData.h:55
bool operator!=(const RwrContact &rhs) const
Inequality comparison operator.
void serialize(DtStreamWriter &writer) const
Serialize to a stream writer.
float myAzimuth
Definition rwrData.h:54
bool operator==(const RwrContact &rhs) const
Equality comparison operator.
int size() const
Get the serialized size in bytes.
std::vector< std::string > myTargets
Definition rwrData.h:60
void deserialize(DtStreamReader &reader)
Deserialize from a stream reader.
Data payload for RwrDataMessage.
Definition rwrData.h:66
bool operator!=(const RwrDataData &rhs) const
bool operator==(const RwrDataData &rhs) const
std::vector< RwrContact > myContacts
Definition rwrData.h:74
DtEntityIdentifier myHostId
Definition rwrData.h:73
RwrDataData()
Default constructor.
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.