VR-Engage  2.2
Loading...
Searching...
No Matches
rwrData.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 data for Radar WarningReceiver contacts. See RwrSubscribeMessage to request updates.
13-------------------COMMENT----------------------*/
14#pragma once
15
18#include <vreMessages/export.h>
19#include <vlpi/entityIdentifier.h>
20#include <vector>
21
22
23namespace makVre
24{
25
26
27constexpr const char* RwrDataMessageType = "rwr.data";
28
30{
31public:
32
34 {
36
37 int size() const;
38 void serialize(DtStreamWriter& writer) const;
40 bool operator==(const RwrContact& rhs) const;
41
42 float myAzimuth;
44 float myRange;
45 int myMode;
46 float myPower;
47 std::string mySystemId;
48 std::vector<std::string> myTargets;
49
50 };
51
52
53 // Struct for defining data
55 {
57
58 DtEntityIdentifier myHostId;
59 std::vector<RwrContact> myContacts;
60
61 bool operator==(const RwrDataData& rhs) const;
62 };
63
64 // Default static creators to promote the usage of not using new.
68
69 //! \brief static message identity functions
70 static const std::string& theType();
73
74 //! \brief Get the name of the message type
75 virtual const std::string& type() const override;
76 virtual const makVre::DtVreMessageId& messageId() const override;
77
78 // default destructor
79 virtual ~RwrDataMessage() override;
80
81 virtual const DtEntityIdentifier& getHostId() const;
82 virtual void setHostId(const DtEntityIdentifier& val);
83
84 virtual const std::vector<RwrContact>& getContacts() const;
85 virtual void setContacts(const std::vector<RwrContact>& val);
86
87
88 // Accessors
89 virtual int messageSize() const override;
90 static makVre::DtVreMessage* decode(char* buffer, int length);
93
94 // Operators
95 bool operator==(const RwrDataMessage& rhs) const;
96
97protected:
98 // Inaccessible default constructor to promote the usage of the static creator functions
100
101 virtual void serialize(DtStreamWriter& writer) const override;
102 virtual void deserialize(DtStreamReader& reader) override;
103
104protected:
107
108 // Store the data for future use
110};
111
112} // ::makVre
113
114
115
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 void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual ~RwrDataMessage() override
virtual void setHostId(const DtEntityIdentifier &val)
virtual const std::string & type() const override
Get the name of the message type.
static const std::string & theType()
static message identity functions
bool operator==(const RwrDataMessage &rhs) const
RwrDataData myData
Definition rwrData.h:109
RwrDataData getData()
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual void setContacts(const std::vector< RwrContact > &val)
virtual const std::vector< RwrContact > & getContacts() const
static RwrDataMessage * createFromData(const RwrDataData)
RwrDataData getData() const
virtual int messageSize() const override
Static decode function pattern for derived classes.
static const makVre::DtVreMessageId & theId()
static UInt64 theVersion
Definition rwrData.h:106
virtual const DtEntityIdentifier & getHostId() const
static RwrDataMessage * create()
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
static RwrDataMessage * createFrom(RwrDataMessage *)
static makVre::DtVreMessage * decode(char *buffer, int length)
static makVre::DtVreMessageId theMessageId
Definition rwrData.h:105
static UInt64 theVersionNumber()
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
constexpr const char * RwrDataMessageType
Definition rwrData.h:27
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
std::string mySystemId
Definition rwrData.h:47
float myPower
Definition rwrData.h:46
float myRange
Definition rwrData.h:44
int myMode
Definition rwrData.h:45
float myElevation
Definition rwrData.h:43
void serialize(DtStreamWriter &writer) const
float myAzimuth
Definition rwrData.h:42
bool operator==(const RwrContact &rhs) const
std::vector< std::string > myTargets
Definition rwrData.h:48
void deserialize(DtStreamReader &reader)
bool operator==(const RwrDataData &rhs) const
std::vector< RwrContact > myContacts
Definition rwrData.h:59
DtEntityIdentifier myHostId
Definition rwrData.h:58
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.