93 virtual const std::string&
type()
const override;
virtual void setCommand(Command val)
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
CopCursorCommandMessage()
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
CopCursorCommandData()
Default constructor.
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.