17#include <vlpi/entityIdentifier.h>
100 virtual const std::string&
type()
const override;
static makVre::DtVreMessageId theMessageId
Definition chat.h:164
virtual void setChannel(const std::string &val)
virtual void setForceType(int val)
virtual const std::string & type() const override
Get the message type string for this instance.
virtual void setMessage(const std::string &val)
MsgType
MsgType enumeration.
Definition chat.h:38
@ MsgType_SEND
Definition chat.h:39
@ MsgType_RECEIVE
Definition chat.h:40
virtual MsgType getMessageType() const
static ChatMessage * createFrom(ChatMessage *origMsg)
Create a copy of the given message.
ChatData getData() const
Get a copy of the message data (const).
static ChatMessage * create()
Create a copy of the given message.
virtual void setMessageType(MsgType val)
virtual ~ChatMessage() override
Destructor.
bool operator!=(const ChatMessage &rhs) const
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
ChatData myData
Definition chat.h:167
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual void setSender(const DtEntityIdentifier &val)
static ChatMessage * createFromData(const ChatData data)
Create a new message initialized with the given data.
virtual int messageSize() const override
Get a copy of the message data.
static UInt64 theVersion
Definition chat.h:165
virtual void setReceiveTime(time_t val)
virtual time_t getReceiveTime() const
virtual const std::string & getUserName() const
virtual const std::string & getChannel() const
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual const std::string & getMessage() const
virtual int getForceType() const
static const std::string & theType()
Get the message type string for this instance.
virtual const DtEntityIdentifier & getSender() const
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual void setUserName(const std::string &val)
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
ChatData getData()
Get a copy of the message data.
bool operator==(const ChatMessage &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 * ChatMessageType
Message type identifier for ChatMessage.
Definition chat.h:23
Data payload for ChatMessage.
Definition chat.h:45
MsgType myMessageType
Definition chat.h:52
int myForceType
Definition chat.h:58
bool operator==(const ChatData &rhs) const
ChatData()
Default constructor.
time_t myReceiveTime
Definition chat.h:54
std::string myMessage
Definition chat.h:57
bool operator!=(const ChatData &rhs) const
std::string myChannel
Definition chat.h:56
std::string myUserName
Definition chat.h:55
DtEntityIdentifier mySender
Definition chat.h:53
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.