VR-Engage  2.3
Loading...
Searching...
No Matches
tacCommand.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
18namespace makVre
19{
20//! \brief Message type identifier for TacCommandMessage.
21constexpr const char* TacCommandMessageType = "radarScope.TacCommand";
22
23/**
24 * \class TacCommandMessage
25 * \brief Input event message for radar's target acquisition cursor. Handled in the radar display GLStudio element.
26 *
27 * Message type: "radarScope.TacCommand"
28 *
29 * \note This is an auto-generated class. Do not modify directly.
30 */
32{
33public:
34 //! \brief Command enumeration.
44
45 //! \brief Data payload for TacCommandMessage.
47 {
48 //! \brief Default constructor.
50
51 //! \name Data Members
52 //! \{
53
55 double myValue;
56 //! \}
57
58 //! \name Operators
59 //! \{
60 bool operator==(const TacCommandData& rhs) const;
61 bool operator!=(const TacCommandData& rhs) const;
62 //! \}
63 };
64
65 //! \brief Destructor.
66 virtual ~TacCommandMessage() override;
67
68 //! \name Static Creators
69 //! \{
70 //! \brief Create a new default instance.
71 //! \return A dynamically allocated default message. Caller takes ownership.
73
74 //! \brief Create a copy of the given message.
75 //! \param origMsg The message to copy. Must not be null.
76 //! \return A dynamically allocated copy. Caller takes ownership.
78
79 //! \brief Create a new message initialized with the given data.
80 //! \param data The data payload to initialize the message with.
81 //! \return A dynamically allocated message. Caller takes ownership.
83 //! \}
84
85 //! \name Type Identity
86 //! \{
87 //! \brief Get the message type string for this message class.
88 static const std::string& theType();
89
90 //! \brief Get the message identifier for this message class.
92
93 //! \brief Get the version number for this message class.
95
96 //! \brief Get the message type string for this instance.
97 virtual const std::string& type() const override;
98
99 //! \brief Get the message identifier for this instance.
100 virtual const makVre::DtVreMessageId& messageId() const override;
101 //! \}
102
103 //! \name Accessors
104 //! \{
105 virtual Command getCommand() const;
106 virtual void setCommand(Command val);
107
108 virtual double getValue() const;
109 virtual void setValue(double val);
110 //! \}
111
112 //! \name Serialization
113 //! \{
114 //! \copydoc makVre::DtVreMessage::messageSize()
115 virtual int messageSize() const override;
116
117 //! \brief Decode a message from a byte buffer.
118 //! \param buffer The raw byte buffer to decode from.
119 //! \param length The length of the buffer in bytes.
120 //! \return A dynamically allocated decoded message. Caller takes ownership.
121 static makVre::DtVreMessage* decode(char* buffer, int length);
122
123 //! \brief Get a copy of the message data.
125
126 //! \brief Get a copy of the message data (const).
128 //! \}
129
130 //! \name Operators
131 //! \{
132 bool operator==(const TacCommandMessage& rhs) const;
133 bool operator!=(const TacCommandMessage& rhs) const;
134 //! \}
135
136protected:
138
139 //! \copydoc makVre::DtVreMessage::serialize()
140 virtual void serialize(DtStreamWriter& writer) const override;
141
142 //! \copydoc makVre::DtVreMessage::deserialize()
143 virtual void deserialize(DtStreamReader& reader) override;
144
145protected:
148
150};
151} // namespace makVre
152
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
TacCommandData getData() const
Get a copy of the message data (const).
Command
Command enumeration.
Definition tacCommand.h:36
@ Command_CYCLE_BACK
Definition tacCommand.h:41
@ Command_CYCLE_FORWARD
Definition tacCommand.h:40
@ Command_SELECT
Definition tacCommand.h:39
@ Command_X
Definition tacCommand.h:37
@ Command_CLEAR
Definition tacCommand.h:42
@ Command_Y
Definition tacCommand.h:38
virtual ~TacCommandMessage() override
Destructor.
virtual void setValue(double val)
static TacCommandMessage * createFromData(const TacCommandData data)
Create a new message initialized with the given data.
virtual Command getCommand() const
static UInt64 theVersion
Definition tacCommand.h:147
static UInt64 theVersionNumber()
Get the version number for this message class.
static TacCommandMessage * createFrom(TacCommandMessage *origMsg)
Create a copy of the given message.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual void setCommand(Command val)
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
bool operator!=(const TacCommandMessage &rhs) const
virtual double getValue() const
static TacCommandMessage * create()
Create a copy of the given message.
TacCommandData myData
Definition tacCommand.h:149
bool operator==(const TacCommandMessage &rhs) const
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static makVre::DtVreMessageId theMessageId
Definition tacCommand.h:146
TacCommandData getData()
Get a copy of the message data.
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.
virtual int messageSize() const override
Get a copy of the message data.
static const std::string & theType()
Get the message type string for this instance.
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 * TacCommandMessageType
Message type identifier for TacCommandMessage.
Definition tacCommand.h:21
Data payload for TacCommandMessage.
Definition tacCommand.h:47
double myValue
Definition tacCommand.h:55
bool operator!=(const TacCommandData &rhs) const
Command myCommand
Definition tacCommand.h:54
bool operator==(const TacCommandData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.