VR-Engage  2.2
Loading...
Searching...
No Matches
rwrCatalog.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/rwr.lua
10*/
11/*-----------------COMMENT----------------------
12Contains the visual configuration data for the Radar Warning Receiver, including colors to use and symbols to use for different contact types.
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* RwrCatalogMessageType = "rwr.catalog";
29
31{
32public:
33
35 {
37
38 int size() const;
39 void serialize(DtStreamWriter& writer) const;
41 bool operator==(const EntityEntry& rhs) const;
42
43 std::string myEntityType;
45 std::string myDisplayText;
47 double myTimeout;
48
49 };
50
51
52 // Struct for defining data
54 {
56
57 DtEntityIdentifier myHostId;
58 std::string myThreatColor;
59 std::string myNonThreatColor;
60 std::vector<EntityEntry> myCatalog;
61
62 bool operator==(const RwrCatalogData& rhs) const;
63 };
64
65 // Default static creators to promote the usage of not using new.
69
70 //! \brief static message identity functions
71 static const std::string& theType();
74
75 //! \brief Get the name of the message type
76 virtual const std::string& type() const override;
77 virtual const makVre::DtVreMessageId& messageId() const override;
78
79 // default destructor
80 virtual ~RwrCatalogMessage() override;
81
82 virtual const DtEntityIdentifier& getHostId() const;
83 virtual void setHostId(const DtEntityIdentifier& val);
84
85 virtual const std::string& getThreatColor() const;
86 virtual void setThreatColor(const std::string& val);
87
88 virtual const std::string& getNonThreatColor() const;
89 virtual void setNonThreatColor(const std::string& val);
90
91 virtual const std::vector<EntityEntry>& getCatalog() const;
92 virtual void setCatalog(const std::vector<EntityEntry>& val);
93
94
95 // Accessors
96 virtual int messageSize() const override;
97 static makVre::DtVreMessage* decode(char* buffer, int length);
100
101 // Operators
102 bool operator==(const RwrCatalogMessage& rhs) const;
103
104protected:
105 // Inaccessible default constructor to promote the usage of the static creator functions
107
108 virtual void serialize(DtStreamWriter& writer) const override;
109 virtual void deserialize(DtStreamReader& reader) override;
110
111protected:
114
115 // Store the data for future use
117};
118
119} // ::makVre
120
121
122
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
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
virtual void setHostId(const DtEntityIdentifier &val)
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
RwrCatalogData myData
Definition rwrCatalog.h:116
static RwrCatalogMessage * createFrom(RwrCatalogMessage *)
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static const std::string & theType()
static message identity functions
static UInt64 theVersionNumber()
virtual const std::string & getNonThreatColor() const
virtual ~RwrCatalogMessage() override
virtual int messageSize() const override
Static decode function pattern for derived classes.
static makVre::DtVreMessageId theMessageId
Definition rwrCatalog.h:112
virtual const std::string & type() const override
Get the name of the message type.
virtual const std::vector< EntityEntry > & getCatalog() const
static RwrCatalogMessage * createFromData(const RwrCatalogData)
virtual const std::string & getThreatColor() const
static makVre::DtVreMessage * decode(char *buffer, int length)
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:113
static const makVre::DtVreMessageId & theId()
RwrCatalogData getData()
virtual void setNonThreatColor(const std::string &val)
static RwrCatalogMessage * create()
RwrCatalogData getData() 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
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * RwrCatalogMessageType
Definition rwrCatalog.h:28
void deserialize(DtStreamReader &reader)
double myTimeout
Definition rwrCatalog.h:47
double myEffectiveRange
Definition rwrCatalog.h:46
bool myIsAThreat
Definition rwrCatalog.h:44
bool operator==(const EntityEntry &rhs) const
void serialize(DtStreamWriter &writer) const
int size() const
std::string myEntityType
Definition rwrCatalog.h:43
std::string myDisplayText
Definition rwrCatalog.h:45
EntityEntry()
DtEntityIdentifier myHostId
Definition rwrCatalog.h:57
std::vector< EntityEntry > myCatalog
Definition rwrCatalog.h:60
std::string myNonThreatColor
Definition rwrCatalog.h:59
bool operator==(const RwrCatalogData &rhs) const
std::string myThreatColor
Definition rwrCatalog.h:58
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.