VR-Engage  2.3
Loading...
Searching...
No Matches
designatedTargetsUpdate.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#include <vector>
20
21namespace makVre
22{
23//! \brief Message type identifier for DesignatedTargetsUpdateMessage.
24constexpr const char* DesignatedTargetsUpdateMessageType = "radarScope.designatedTargetsUpdate";
25
26/**
27 * \class DesignatedTargetsUpdateMessage
28 * \brief Sent from the radar when the designated targeting information is changed. Received by the HUD to display designated targets and by the DtVrfRemoteControlConnector to update the sim object.
29 *
30 * Message type: "radarScope.designatedTargetsUpdate"
31 *
32 * \note This is an auto-generated class. Do not modify directly.
33 */
35{
36public:
37
38 //! \brief Data payload for DesignatedTargetsUpdateMessage.
40 {
41 //! \brief Default constructor.
43
44 //! \name Data Members
45 //! \{
46
47 DtEntityIdentifier myHostId;
48 std::string myRadarName;
49 std::vector<int> myDesignatedTargets;
50 DtEntityIdentifier myNextToShootTargetEntityId;
52 //! \}
53
54 //! \name Operators
55 //! \{
58 //! \}
59 };
60
61 //! \brief Destructor.
63
64 //! \name Static Creators
65 //! \{
66 //! \brief Create a new default instance.
67 //! \return A dynamically allocated default message. Caller takes ownership.
69
70 //! \brief Create a copy of the given message.
71 //! \param origMsg The message to copy. Must not be null.
72 //! \return A dynamically allocated copy. Caller takes ownership.
74
75 //! \brief Create a new message initialized with the given data.
76 //! \param data The data payload to initialize the message with.
77 //! \return A dynamically allocated message. Caller takes ownership.
79 //! \}
80
81 //! \name Type Identity
82 //! \{
83 //! \brief Get the message type string for this message class.
84 static const std::string& theType();
85
86 //! \brief Get the message identifier for this message class.
88
89 //! \brief Get the version number for this message class.
91
92 //! \brief Get the message type string for this instance.
93 virtual const std::string& type() const override;
94
95 //! \brief Get the message identifier for this instance.
96 virtual const makVre::DtVreMessageId& messageId() const override;
97 //! \}
98
99 //! \name Accessors
100 //! \{
101 virtual const DtEntityIdentifier& getHostId() const;
102 virtual void setHostId(const DtEntityIdentifier& val);
103
104 virtual const std::string& getRadarName() const;
105 virtual void setRadarName(const std::string& val);
106
107 virtual const std::vector<int>& getDesignatedTargets() const;
108 virtual void setDesignatedTargets(const std::vector<int>& val);
109
110 virtual const DtEntityIdentifier& getNextToShootTargetEntityId() const;
111 virtual void setNextToShootTargetEntityId(const DtEntityIdentifier& val);
112
113 virtual int getNextToShootTargetTrackId() const;
114 virtual void setNextToShootTargetTrackId(int val);
115 //! \}
116
117 //! \name Serialization
118 //! \{
119 //! \copydoc makVre::DtVreMessage::messageSize()
120 virtual int messageSize() const override;
121
122 //! \brief Decode a message from a byte buffer.
123 //! \param buffer The raw byte buffer to decode from.
124 //! \param length The length of the buffer in bytes.
125 //! \return A dynamically allocated decoded message. Caller takes ownership.
126 static makVre::DtVreMessage* decode(char* buffer, int length);
127
128 //! \brief Get a copy of the message data.
130
131 //! \brief Get a copy of the message data (const).
133 //! \}
134
135 //! \name Operators
136 //! \{
139 //! \}
140
141protected:
143
144 //! \copydoc makVre::DtVreMessage::serialize()
145 virtual void serialize(DtStreamWriter& writer) const override;
146
147 //! \copydoc makVre::DtVreMessage::deserialize()
148 virtual void deserialize(DtStreamReader& reader) override;
149
150protected:
153
155};
156} // namespace makVre
157
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual void setDesignatedTargets(const std::vector< int > &val)
virtual const DtEntityIdentifier & getNextToShootTargetEntityId() const
virtual int getNextToShootTargetTrackId() const
virtual const DtEntityIdentifier & getHostId() const
virtual void setRadarName(const std::string &val)
static const std::string & theType()
Get the message type string for this instance.
virtual void setNextToShootTargetEntityId(const DtEntityIdentifier &val)
virtual ~DesignatedTargetsUpdateMessage() override
Destructor.
virtual void setHostId(const DtEntityIdentifier &val)
DesignatedTargetsUpdateData getData()
Get a copy of the message data.
virtual const std::string & type() const override
Get the message type string for this instance.
static makVre::DtVreMessageId theMessageId
Definition designatedTargetsUpdate.h:151
static DesignatedTargetsUpdateMessage * createFrom(DesignatedTargetsUpdateMessage *origMsg)
Create a copy of the given message.
static UInt64 theVersionNumber()
Get the version number for this message class.
bool operator==(const DesignatedTargetsUpdateMessage &rhs) const
DesignatedTargetsUpdateData getData() const
Get a copy of the message data (const).
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.
static UInt64 theVersion
Definition designatedTargetsUpdate.h:152
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void setNextToShootTargetTrackId(int val)
DesignatedTargetsUpdateData myData
Definition designatedTargetsUpdate.h:154
bool operator!=(const DesignatedTargetsUpdateMessage &rhs) const
virtual const std::string & getRadarName() const
virtual const std::vector< int > & getDesignatedTargets() const
static DesignatedTargetsUpdateMessage * createFromData(const DesignatedTargetsUpdateData data)
Create a new message initialized with the given data.
static DesignatedTargetsUpdateMessage * create()
Create a copy of the given message.
virtual int messageSize() const override
Get a copy of the message data.
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
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 * DesignatedTargetsUpdateMessageType
Message type identifier for DesignatedTargetsUpdateMessage.
Definition designatedTargetsUpdate.h:24
Data payload for DesignatedTargetsUpdateMessage.
Definition designatedTargetsUpdate.h:40
DtEntityIdentifier myHostId
Definition designatedTargetsUpdate.h:47
bool operator!=(const DesignatedTargetsUpdateData &rhs) const
DtEntityIdentifier myNextToShootTargetEntityId
Definition designatedTargetsUpdate.h:50
int myNextToShootTargetTrackId
Definition designatedTargetsUpdate.h:51
std::string myRadarName
Definition designatedTargetsUpdate.h:48
bool operator==(const DesignatedTargetsUpdateData &rhs) const
std::vector< int > myDesignatedTargets
Definition designatedTargetsUpdate.h:49
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.