VR-Engage  2.3
Loading...
Searching...
No Matches
rwrCatalog.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 <string>
19#include <vector>
20
21namespace makVre
22{
23//! \brief Message type identifier for RwrCatalogMessage.
24constexpr const char* RwrCatalogMessageType = "rwr.catalog";
25
26/**
27 * \class RwrCatalogMessage
28 * \brief Contains the visual configuration data for the Radar Warning Receiver, including colors to use and symbols to use for different contact types.
29 *
30 * Message type: "rwr.catalog"
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 EntityEntry& rhs) const;
52 //! \brief Inequality comparison operator.
53 bool operator!=(const EntityEntry& rhs) const;
54
55 std::string myEntityType;
57 std::string myDisplayText;
59 double myTimeout;
60
61 };
62
63 //! \brief Data payload for RwrCatalogMessage.
65 {
66 //! \brief Default constructor.
68
69 //! \name Data Members
70 //! \{
71
72 DtEntityIdentifier myHostId;
73 std::string myThreatColor;
74 std::string myNonThreatColor;
75 std::vector<EntityEntry> myCatalog;
76 //! \}
77
78 //! \name Operators
79 //! \{
80 bool operator==(const RwrCatalogData& rhs) const;
81 bool operator!=(const RwrCatalogData& rhs) const;
82 //! \}
83 };
84
85 //! \brief Destructor.
86 virtual ~RwrCatalogMessage() override;
87
88 //! \name Static Creators
89 //! \{
90 //! \brief Create a new default instance.
91 //! \return A dynamically allocated default message. Caller takes ownership.
93
94 //! \brief Create a copy of the given message.
95 //! \param origMsg The message to copy. Must not be null.
96 //! \return A dynamically allocated copy. Caller takes ownership.
98
99 //! \brief Create a new message initialized with the given data.
100 //! \param data The data payload to initialize the message with.
101 //! \return A dynamically allocated message. Caller takes ownership.
103 //! \}
104
105 //! \name Type Identity
106 //! \{
107 //! \brief Get the message type string for this message class.
108 static const std::string& theType();
109
110 //! \brief Get the message identifier for this message class.
112
113 //! \brief Get the version number for this message class.
115
116 //! \brief Get the message type string for this instance.
117 virtual const std::string& type() const override;
118
119 //! \brief Get the message identifier for this instance.
120 virtual const makVre::DtVreMessageId& messageId() const override;
121 //! \}
122
123 //! \name Accessors
124 //! \{
125 virtual const DtEntityIdentifier& getHostId() const;
126 virtual void setHostId(const DtEntityIdentifier& val);
127
128 virtual const std::string& getThreatColor() const;
129 virtual void setThreatColor(const std::string& val);
130
131 virtual const std::string& getNonThreatColor() const;
132 virtual void setNonThreatColor(const std::string& val);
133
134 virtual const std::vector<EntityEntry>& getCatalog() const;
135 virtual void setCatalog(const std::vector<EntityEntry>& val);
136 //! \}
137
138 //! \name Serialization
139 //! \{
140 //! \copydoc makVre::DtVreMessage::messageSize()
141 virtual int messageSize() const override;
142
143 //! \brief Decode a message from a byte buffer.
144 //! \param buffer The raw byte buffer to decode from.
145 //! \param length The length of the buffer in bytes.
146 //! \return A dynamically allocated decoded message. Caller takes ownership.
147 static makVre::DtVreMessage* decode(char* buffer, int length);
148
149 //! \brief Get a copy of the message data.
151
152 //! \brief Get a copy of the message data (const).
154 //! \}
155
156 //! \name Operators
157 //! \{
158 bool operator==(const RwrCatalogMessage& rhs) const;
159 bool operator!=(const RwrCatalogMessage& rhs) const;
160 //! \}
161
162protected:
164
165 //! \copydoc makVre::DtVreMessage::serialize()
166 virtual void serialize(DtStreamWriter& writer) const override;
167
168 //! \copydoc makVre::DtVreMessage::deserialize()
169 virtual void deserialize(DtStreamReader& reader) override;
170
171protected:
174
176};
177} // namespace makVre
178
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 const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual void setHostId(const DtEntityIdentifier &val)
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static RwrCatalogMessage * createFromData(const RwrCatalogData data)
Create a new message initialized with the given data.
RwrCatalogData myData
Definition rwrCatalog.h:175
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static const std::string & theType()
Get the message type string for this instance.
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual const std::string & getNonThreatColor() const
virtual ~RwrCatalogMessage() override
Destructor.
virtual int messageSize() const override
Get a copy of the message data.
static makVre::DtVreMessageId theMessageId
Definition rwrCatalog.h:172
virtual const std::string & type() const override
Get the message type string for this instance.
virtual const std::vector< EntityEntry > & getCatalog() const
virtual const std::string & getThreatColor() const
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
bool operator==(const RwrCatalogMessage &rhs) const
bool operator!=(const RwrCatalogMessage &rhs) const
virtual void setCatalog(const std::vector< EntityEntry > &val)
virtual void setThreatColor(const std::string &val)
virtual const DtEntityIdentifier & getHostId() const
static UInt64 theVersion
Definition rwrCatalog.h:173
static RwrCatalogMessage * createFrom(RwrCatalogMessage *origMsg)
Create a copy of the given message.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
RwrCatalogData getData()
Get a copy of the message data.
virtual void setNonThreatColor(const std::string &val)
static RwrCatalogMessage * create()
Create a copy of the given message.
RwrCatalogData getData() const
Get a copy of the message data (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
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * RwrCatalogMessageType
Message type identifier for RwrCatalogMessage.
Definition rwrCatalog.h:24
bool operator!=(const EntityEntry &rhs) const
Inequality comparison operator.
void deserialize(DtStreamReader &reader)
Deserialize from a stream reader.
double myTimeout
Definition rwrCatalog.h:59
double myEffectiveRange
Definition rwrCatalog.h:58
bool myIsAThreat
Definition rwrCatalog.h:56
bool operator==(const EntityEntry &rhs) const
Equality comparison operator.
void serialize(DtStreamWriter &writer) const
Serialize to a stream writer.
int size() const
Get the serialized size in bytes.
std::string myEntityType
Definition rwrCatalog.h:55
std::string myDisplayText
Definition rwrCatalog.h:57
EntityEntry()
Default constructor.
Data payload for RwrCatalogMessage.
Definition rwrCatalog.h:65
DtEntityIdentifier myHostId
Definition rwrCatalog.h:72
std::vector< EntityEntry > myCatalog
Definition rwrCatalog.h:75
std::string myNonThreatColor
Definition rwrCatalog.h:74
bool operator==(const RwrCatalogData &rhs) const
bool operator!=(const RwrCatalogData &rhs) const
std::string myThreatColor
Definition rwrCatalog.h:73
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.