16#include <Human/export.h>
42 struct VREHUMANSHARED_DLL SetViewModeData
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
VR-Engage message of type "human.setViewMode".
Definition setViewMode.h:32
virtual int messageSize() const override
Get a copy of the message data.
virtual void setMode(ViewMode val)
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static SetViewModeMessage * create()
Create a copy of the given message.
bool operator!=(const SetViewModeMessage &rhs) const
SetViewModeData myData
Definition setViewMode.h:141
SetViewModeData getData()
Get a copy of the message data.
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual const std::string & type() const override
Get the message type string for this instance.
static SetViewModeMessage * createFrom(SetViewModeMessage *origMsg)
Create a copy of the given message.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
SetViewModeData getData() const
Get a copy of the message data (const).
virtual ~SetViewModeMessage() override
Destructor.
ViewMode
ViewMode enumeration.
Definition setViewMode.h:36
@ ViewMode_THIRD_PERSON
Definition setViewMode.h:38
@ ViewMode_FIRST_PERSON
Definition setViewMode.h:37
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
bool operator==(const SetViewModeMessage &rhs) const
static makVre::DtVreMessageId theMessageId
Definition setViewMode.h:138
static UInt64 theVersion
Definition setViewMode.h:139
virtual ViewMode getMode() const
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
static const std::string & theType()
Get the message type string for this instance.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static SetViewModeMessage * createFromData(const SetViewModeData data)
Create a new message initialized with the given data.
!
Definition glsVreMessageUtil.h:50
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * SetViewModeMessageType
Message type identifier for SetViewModeMessage.
Definition setViewMode.h:21
Data payload for SetViewModeMessage.
Definition setViewMode.h:43
bool operator!=(const SetViewModeData &rhs) const
ViewMode myMode
Definition setViewMode.h:50
bool operator==(const SetViewModeData &rhs) const
SetViewModeData()
Default constructor.
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.