VR-Engage  2.3
Loading...
Searching...
No Matches
windowCreated.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 WindowCreatedMessage.
22constexpr const char* WindowCreatedMessageType = "ownship.windowCreated";
23
24/**
25 * \class WindowCreatedMessage
26 * \brief Sent when a new window has been created, for post-creation initialization.
27 *
28 * Message type: "ownship.windowCreated"
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 WindowCreatedMessage.
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 WindowCreatedData& rhs) const;
62 bool operator!=(const WindowCreatedData& rhs) const;
63 //! \}
64 };
65
66 //! \brief Destructor.
67 virtual ~WindowCreatedMessage() 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 WindowCreatedMessage& rhs) const;
140 bool operator!=(const WindowCreatedMessage& 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
bool operator==(const WindowCreatedMessage &rhs) const
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static makVre::DtVreMessageId theMessageId
Definition windowCreated.h:153
virtual void setWindowType(WindowType val)
static WindowCreatedMessage * createFrom(WindowCreatedMessage *origMsg)
Create a copy of the given message.
virtual int messageSize() const override
Get a copy of the message data.
virtual const std::string & type() const override
Get the message type string for this instance.
WindowType
WindowType enumeration.
Definition windowCreated.h:37
@ WindowType_InstrumentPanel
Definition windowCreated.h:41
@ WindowType_Stealth
Definition windowCreated.h:40
@ WindowType_Gimbal
Definition windowCreated.h:38
@ WindowType_PVD
Definition windowCreated.h:39
virtual ~WindowCreatedMessage() override
Destructor.
virtual WindowType getWindowType() const
static WindowCreatedMessage * createFromData(const WindowCreatedData data)
Create a new message initialized with the given data.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
WindowCreatedData getData() const
Get a copy of the message data (const).
virtual void setMarking(const std::string &val)
virtual const std::string & getWindowName() const
virtual void setWindowName(const std::string &val)
WindowCreatedData myData
Definition windowCreated.h:156
static WindowCreatedMessage * create()
Create a copy of the given message.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
bool operator!=(const WindowCreatedMessage &rhs) const
virtual void setChannelName(const std::string &val)
static const std::string & theType()
Get the message type string for this instance.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
WindowCreatedData getData()
Get a copy of the message data.
static UInt64 theVersion
Definition windowCreated.h:154
virtual const std::string & getChannelName() const
virtual const std::string & getMarking() const
static UInt64 theVersionNumber()
Get the version number for this message class.
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 * WindowCreatedMessageType
Message type identifier for WindowCreatedMessage.
Definition windowCreated.h:22
Data payload for WindowCreatedMessage.
Definition windowCreated.h:46
std::string myWindowName
Definition windowCreated.h:55
bool operator==(const WindowCreatedData &rhs) const
std::string myMarking
Definition windowCreated.h:53
WindowType myWindowType
Definition windowCreated.h:54
bool operator!=(const WindowCreatedData &rhs) const
std::string myChannelName
Definition windowCreated.h:56
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.