VR-Engage  2.3
Loading...
Searching...
No Matches
copCursorCommand.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/commonOperatingPicture.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17
18namespace makVre
19{
20//! \brief Message type identifier for CopCursorCommandMessage.
21constexpr const char* CopCursorCommandMessageType = "commonOperatingPicture.cursorCommand";
22
23/**
24 * \class CopCursorCommandMessage
25 * \brief Moves the Common COP's cursor.
26 *
27 * Message type: "commonOperatingPicture.cursorCommand"
28 *
29 * \note This is an auto-generated class. Do not modify directly.
30 */
32{
33public:
34 //! \brief Command enumeration.
40
41 //! \brief Data payload for CopCursorCommandMessage.
43 {
44 //! \brief Default constructor.
46
47 //! \name Data Members
48 //! \{
49
51 double myValue;
52 //! \}
53
54 //! \name Operators
55 //! \{
56 bool operator==(const CopCursorCommandData& rhs) const;
57 bool operator!=(const CopCursorCommandData& rhs) const;
58 //! \}
59 };
60
61 //! \brief Destructor.
62 virtual ~CopCursorCommandMessage() override;
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 Command getCommand() const;
102 virtual void setCommand(Command val);
103
104 virtual double getValue() const;
105 virtual void setValue(double val);
106 //! \}
107
108 //! \name Serialization
109 //! \{
110 //! \copydoc makVre::DtVreMessage::messageSize()
111 virtual int messageSize() const override;
112
113 //! \brief Decode a message from a byte buffer.
114 //! \param buffer The raw byte buffer to decode from.
115 //! \param length The length of the buffer in bytes.
116 //! \return A dynamically allocated decoded message. Caller takes ownership.
117 static makVre::DtVreMessage* decode(char* buffer, int length);
118
119 //! \brief Get a copy of the message data.
121
122 //! \brief Get a copy of the message data (const).
124 //! \}
125
126 //! \name Operators
127 //! \{
128 bool operator==(const CopCursorCommandMessage& rhs) const;
129 bool operator!=(const CopCursorCommandMessage& rhs) const;
130 //! \}
131
132protected:
134
135 //! \copydoc makVre::DtVreMessage::serialize()
136 virtual void serialize(DtStreamWriter& writer) const override;
137
138 //! \copydoc makVre::DtVreMessage::deserialize()
139 virtual void deserialize(DtStreamReader& reader) override;
140
141protected:
144
146};
147} // namespace makVre
148
virtual void setCommand(Command val)
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static CopCursorCommandMessage * createFromData(const CopCursorCommandData data)
Create a new message initialized with the given data.
virtual void setValue(double val)
static CopCursorCommandMessage * create()
Create a copy of the given message.
virtual int messageSize() const override
Get a copy of the message data.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
Command
Command enumeration.
Definition copCursorCommand.h:36
@ Command_X
Definition copCursorCommand.h:37
@ Command_Y
Definition copCursorCommand.h:38
static CopCursorCommandMessage * createFrom(CopCursorCommandMessage *origMsg)
Create a copy of the given message.
bool operator==(const CopCursorCommandMessage &rhs) const
static UInt64 theVersionNumber()
Get the version number for this message class.
static UInt64 theVersion
Definition copCursorCommand.h:143
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual ~CopCursorCommandMessage() override
Destructor.
static makVre::DtVreMessageId theMessageId
Definition copCursorCommand.h:142
CopCursorCommandData 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 double getValue() const
virtual Command getCommand() const
virtual const std::string & type() const override
Get the message type string for this instance.
CopCursorCommandData getData()
Get a copy of the message data.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
CopCursorCommandData myData
Definition copCursorCommand.h:145
static const std::string & theType()
Get the message type string for this instance.
bool operator!=(const CopCursorCommandMessage &rhs) const
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 * CopCursorCommandMessageType
Message type identifier for CopCursorCommandMessage.
Definition copCursorCommand.h:21
Data payload for CopCursorCommandMessage.
Definition copCursorCommand.h:43
bool operator!=(const CopCursorCommandData &rhs) const
double myValue
Definition copCursorCommand.h:51
Command myCommand
Definition copCursorCommand.h:50
bool operator==(const CopCursorCommandData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.