17#include <vlpi/entityIdentifier.h>
92 virtual const std::string&
type()
const override;
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.
bool operator!=(const JoystickMessage &rhs) const
virtual const std::string & getFunction() const
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static makVre::DtVreMessageId theMessageId
Definition joystick.h:150
virtual void setRepeat(bool val)
static UInt64 theVersion
Definition joystick.h:151
virtual void setFunction(const std::string &val)
virtual double getValue() const
virtual void setValue(double val)
virtual void setFunctionGroup(const std::string &val)
bool operator==(const JoystickMessage &rhs) const
static JoystickMessage * createFrom(JoystickMessage *origMsg)
Create a copy of the given message.
virtual const DtEntityIdentifier & getEntityId() const
JoystickData getData()
Get a copy of the message data.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
JoystickData getData() const
Get a copy of the message data (const).
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual ~JoystickMessage() override
Destructor.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static JoystickMessage * createFromData(const JoystickData data)
Create a new message initialized with the given data.
virtual bool getRepeat() const
virtual const std::string & getFunctionGroup() const
virtual const std::string & type() const override
Get the message type string for this instance.
JoystickData myData
Definition joystick.h:153
static JoystickMessage * create()
Create a copy of the given message.
virtual void setEntityId(const DtEntityIdentifier &val)
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.
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
constexpr const char * JoystickMessageType
Message type identifier for JoystickMessage.
Definition joystick.h:23
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
Data payload for JoystickMessage.
Definition joystick.h:39
std::string myFunctionGroup
Definition joystick.h:47
JoystickData()
Default constructor.
std::string myFunction
Definition joystick.h:48
bool operator==(const JoystickData &rhs) const
bool operator!=(const JoystickData &rhs) const
bool myRepeat
Definition joystick.h:50
double myValue
Definition joystick.h:49
DtEntityIdentifier myEntityId
Definition joystick.h:46
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.