VR-Engage  2.3
Loading...
Searching...
No Matches
tdlEngagementStatus.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/tdl.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/entityIdentifier.h>
18#include <string>
19
20namespace makVre
21{
22//! \brief Message type identifier for TdlEngagementStatusMessage.
23constexpr const char* TdlEngagementStatusMessageType = "Tdl.TdlEngagementStatus";
24
25/**
26 * \class TdlEngagementStatusMessage
27 * \brief This message is used to transmit track engagement status to the Common Operating Picture (COP) display.
28 *
29 * Message type: "Tdl.TdlEngagementStatus"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36 //! \brief StatusType enumeration.
44
45 //! \brief Data payload for TdlEngagementStatusMessage.
47 {
48 //! \brief Default constructor.
50
51 //! \name Data Members
52 //! \{
53
54 DtEntityIdentifier myHostId;
55 std::string mySource;
56 std::string myObjective;
58 //! \}
59
60 //! \name Operators
61 //! \{
62 bool operator==(const TdlEngagementStatusData& rhs) const;
63 bool operator!=(const TdlEngagementStatusData& rhs) const;
64 //! \}
65 };
66
67 //! \brief Destructor.
68 virtual ~TdlEngagementStatusMessage() override;
69
70 //! \name Static Creators
71 //! \{
72 //! \brief Create a new default instance.
73 //! \return A dynamically allocated default message. Caller takes ownership.
75
76 //! \brief Create a copy of the given message.
77 //! \param origMsg The message to copy. Must not be null.
78 //! \return A dynamically allocated copy. Caller takes ownership.
80
81 //! \brief Create a new message initialized with the given data.
82 //! \param data The data payload to initialize the message with.
83 //! \return A dynamically allocated message. Caller takes ownership.
85 //! \}
86
87 //! \name Type Identity
88 //! \{
89 //! \brief Get the message type string for this message class.
90 static const std::string& theType();
91
92 //! \brief Get the message identifier for this message class.
94
95 //! \brief Get the version number for this message class.
97
98 //! \brief Get the message type string for this instance.
99 virtual const std::string& type() const override;
100
101 //! \brief Get the message identifier for this instance.
102 virtual const makVre::DtVreMessageId& messageId() const override;
103 //! \}
104
105 //! \name Accessors
106 //! \{
107 virtual const DtEntityIdentifier& getHostId() const;
108 virtual void setHostId(const DtEntityIdentifier& val);
109
110 virtual const std::string& getSource() const;
111 virtual void setSource(const std::string& val);
112
113 virtual const std::string& getObjective() const;
114 virtual void setObjective(const std::string& val);
115
116 virtual StatusType getType() const;
117 virtual void setType(StatusType val);
118 //! \}
119
120 //! \name Serialization
121 //! \{
122 //! \copydoc makVre::DtVreMessage::messageSize()
123 virtual int messageSize() const override;
124
125 //! \brief Decode a message from a byte buffer.
126 //! \param buffer The raw byte buffer to decode from.
127 //! \param length The length of the buffer in bytes.
128 //! \return A dynamically allocated decoded message. Caller takes ownership.
129 static makVre::DtVreMessage* decode(char* buffer, int length);
130
131 //! \brief Get a copy of the message data.
133
134 //! \brief Get a copy of the message data (const).
136 //! \}
137
138 //! \name Operators
139 //! \{
142 //! \}
143
144protected:
146
147 //! \copydoc makVre::DtVreMessage::serialize()
148 virtual void serialize(DtStreamWriter& writer) const override;
149
150 //! \copydoc makVre::DtVreMessage::deserialize()
151 virtual void deserialize(DtStreamReader& reader) override;
152
153protected:
156
158};
159} // namespace makVre
160
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
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static TdlEngagementStatusMessage * createFromData(const TdlEngagementStatusData data)
Create a new message initialized with the given data.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual ~TdlEngagementStatusMessage() override
Destructor.
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static makVre::DtVreMessageId theMessageId
Definition tdlEngagementStatus.h:154
virtual void setObjective(const std::string &val)
bool operator==(const TdlEngagementStatusMessage &rhs) const
virtual const DtEntityIdentifier & getHostId() const
TdlEngagementStatusData getData()
Get a copy of the message data.
virtual int messageSize() const override
Get a copy of the message data.
virtual void setSource(const std::string &val)
virtual StatusType getType() const
TdlEngagementStatusData myData
Definition tdlEngagementStatus.h:157
static UInt64 theVersionNumber()
Get the version number for this message class.
StatusType
StatusType enumeration.
Definition tdlEngagementStatus.h:38
@ StatusType_BREAK_ENGAGEMENT
Definition tdlEngagementStatus.h:42
@ StatusType_ENGAGED
Definition tdlEngagementStatus.h:39
@ StatusType_WEAPON_RELEASED
Definition tdlEngagementStatus.h:41
@ StatusType_LOCKED_ON
Definition tdlEngagementStatus.h:40
static TdlEngagementStatusMessage * create()
Create a copy of the given message.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual const std::string & getObjective() const
virtual void setType(StatusType val)
static UInt64 theVersion
Definition tdlEngagementStatus.h:155
static TdlEngagementStatusMessage * createFrom(TdlEngagementStatusMessage *origMsg)
Create a copy of the given message.
bool operator!=(const TdlEngagementStatusMessage &rhs) const
static const std::string & theType()
Get the message type string for this instance.
TdlEngagementStatusData getData() const
Get a copy of the message data (const).
virtual const std::string & getSource() const
virtual void setHostId(const DtEntityIdentifier &val)
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 * TdlEngagementStatusMessageType
Message type identifier for TdlEngagementStatusMessage.
Definition tdlEngagementStatus.h:23
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
Data payload for TdlEngagementStatusMessage.
Definition tdlEngagementStatus.h:47
std::string myObjective
Definition tdlEngagementStatus.h:56
DtEntityIdentifier myHostId
Definition tdlEngagementStatus.h:54
bool operator==(const TdlEngagementStatusData &rhs) const
bool operator!=(const TdlEngagementStatusData &rhs) const
StatusType myType
Definition tdlEngagementStatus.h:57
std::string mySource
Definition tdlEngagementStatus.h:55
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.