VR-Engage  2.3
Loading...
Searching...
No Matches
windowDestroyed.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/windowOperations.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <string>
18
19namespace makVre
20{
21//! \brief Message type identifier for WindowDestroyedMessage.
22constexpr const char* WindowDestroyedMessageType = "ownship.windowDestroyed";
23
24/**
25 * \class WindowDestroyedMessage
26 * \brief Sent when a window has been destroyed, for post-destruction cleanup.
27 *
28 * Message type: "ownship.windowDestroyed"
29 *
30 * \note This is an auto-generated class. Do not modify directly.
31 */
33{
34public:
35 //! \brief WindowType enumeration.
43
44 //! \brief Data payload for WindowDestroyedMessage.
46 {
47 //! \brief Default constructor.
49
50 //! \name Data Members
51 //! \{
52
53 std::string myMarking;
55 std::string myWindowName;
56 std::string myChannelName;
57 //! \}
58
59 //! \name Operators
60 //! \{
61 bool operator==(const WindowDestroyedData& rhs) const;
62 bool operator!=(const WindowDestroyedData& rhs) const;
63 //! \}
64 };
65
66 //! \brief Destructor.
67 virtual ~WindowDestroyedMessage() override;
68
69 //! \name Static Creators
70 //! \{
71 //! \brief Create a new default instance.
72 //! \return A dynamically allocated default message. Caller takes ownership.
74
75 //! \brief Create a copy of the given message.
76 //! \param origMsg The message to copy. Must not be null.
77 //! \return A dynamically allocated copy. Caller takes ownership.
79
80 //! \brief Create a new message initialized with the given data.
81 //! \param data The data payload to initialize the message with.
82 //! \return A dynamically allocated message. Caller takes ownership.
84 //! \}
85
86 //! \name Type Identity
87 //! \{
88 //! \brief Get the message type string for this message class.
89 static const std::string& theType();
90
91 //! \brief Get the message identifier for this message class.
93
94 //! \brief Get the version number for this message class.
96
97 //! \brief Get the message type string for this instance.
98 virtual const std::string& type() const override;
99
100 //! \brief Get the message identifier for this instance.
101 virtual const makVre::DtVreMessageId& messageId() const override;
102 //! \}
103
104 //! \name Accessors
105 //! \{
106 virtual const std::string& getMarking() const;
107 virtual void setMarking(const std::string& val);
108
109 virtual WindowType getWindowType() const;
110 virtual void setWindowType(WindowType val);
111
112 virtual const std::string& getWindowName() const;
113 virtual void setWindowName(const std::string& val);
114
115 virtual const std::string& getChannelName() const;
116 virtual void setChannelName(const std::string& val);
117 //! \}
118
119 //! \name Serialization
120 //! \{
121 //! \copydoc makVre::DtVreMessage::messageSize()
122 virtual int messageSize() const override;
123
124 //! \brief Decode a message from a byte buffer.
125 //! \param buffer The raw byte buffer to decode from.
126 //! \param length The length of the buffer in bytes.
127 //! \return A dynamically allocated decoded message. Caller takes ownership.
128 static makVre::DtVreMessage* decode(char* buffer, int length);
129
130 //! \brief Get a copy of the message data.
132
133 //! \brief Get a copy of the message data (const).
135 //! \}
136
137 //! \name Operators
138 //! \{
139 bool operator==(const WindowDestroyedMessage& rhs) const;
140 bool operator!=(const WindowDestroyedMessage& rhs) const;
141 //! \}
142
143protected:
145
146 //! \copydoc makVre::DtVreMessage::serialize()
147 virtual void serialize(DtStreamWriter& writer) const override;
148
149 //! \copydoc makVre::DtVreMessage::deserialize()
150 virtual void deserialize(DtStreamReader& reader) override;
151
152protected:
155
157};
158} // namespace makVre
159
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 const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual const std::string & type() const override
Get the message type string for this instance.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual void setWindowType(WindowType val)
virtual const std::string & getMarking() const
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual void setMarking(const std::string &val)
static WindowDestroyedMessage * createFrom(WindowDestroyedMessage *origMsg)
Create a copy of the given message.
virtual int messageSize() const override
Get a copy of the message data.
WindowDestroyedData getData() const
Get a copy of the message data (const).
virtual ~WindowDestroyedMessage() override
Destructor.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
WindowDestroyedData myData
Definition windowDestroyed.h:156
static WindowDestroyedMessage * create()
Create a copy of the given message.
virtual const std::string & getWindowName() const
static UInt64 theVersionNumber()
Get the version number for this message class.
bool operator==(const WindowDestroyedMessage &rhs) const
static makVre::DtVreMessageId theMessageId
Definition windowDestroyed.h:153
static WindowDestroyedMessage * createFromData(const WindowDestroyedData data)
Create a new message initialized with the given data.
virtual WindowType getWindowType() const
static const std::string & theType()
Get the message type string for this instance.
virtual void setChannelName(const std::string &val)
virtual const std::string & getChannelName() const
WindowDestroyedData getData()
Get a copy of the message data.
bool operator!=(const WindowDestroyedMessage &rhs) const
static UInt64 theVersion
Definition windowDestroyed.h:154
WindowType
WindowType enumeration.
Definition windowDestroyed.h:37
@ WindowType_PVD
Definition windowDestroyed.h:39
@ WindowType_Gimbal
Definition windowDestroyed.h:38
@ WindowType_InstrumentPanel
Definition windowDestroyed.h:41
@ WindowType_Stealth
Definition windowDestroyed.h:40
virtual void setWindowName(const std::string &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
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * WindowDestroyedMessageType
Message type identifier for WindowDestroyedMessage.
Definition windowDestroyed.h:22
Data payload for WindowDestroyedMessage.
Definition windowDestroyed.h:46
WindowType myWindowType
Definition windowDestroyed.h:54
std::string myChannelName
Definition windowDestroyed.h:56
bool operator!=(const WindowDestroyedData &rhs) const
std::string myMarking
Definition windowDestroyed.h:53
bool operator==(const WindowDestroyedData &rhs) const
std::string myWindowName
Definition windowDestroyed.h:55
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.