VR-Engage  2.3
Loading...
Searching...
No Matches
vrfTextMessage.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/textMessage.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <string>
18#include <vlpi/entityIdentifier.h>
19
20namespace makVre
21{
22//! \brief Message type identifier for VrfTextMessage.
23constexpr const char* VrfTextMessageType = "admin.textMessage";
24
25/**
26 * \class VrfTextMessage
27 * \brief This class is used with the examplePlayerStationState example. Receiver will be null if broadcast.
28 *
29 * Message type: "admin.textMessage"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36
37 //! \brief Data payload for VrfTextMessage.
39 {
40 //! \brief Default constructor.
42
43 //! \name Data Members
44 //! \{
45
46 std::string myMessage;
47 double myTime;
48 DtEntityIdentifier mySenderEntityID;
49 DtEntityIdentifier myReceiverEntityID;
50 //! \}
51
52 //! \name Operators
53 //! \{
54 bool operator==(const VrfTextData& rhs) const;
55 bool operator!=(const VrfTextData& rhs) const;
56 //! \}
57 };
58
59 //! \brief Destructor.
60 virtual ~VrfTextMessage() override;
61
62 //! \name Static Creators
63 //! \{
64 //! \brief Create a new default instance.
65 //! \return A dynamically allocated default message. Caller takes ownership.
67
68 //! \brief Create a copy of the given message.
69 //! \param origMsg The message to copy. Must not be null.
70 //! \return A dynamically allocated copy. Caller takes ownership.
72
73 //! \brief Create a new message initialized with the given data.
74 //! \param data The data payload to initialize the message with.
75 //! \return A dynamically allocated message. Caller takes ownership.
77 //! \}
78
79 //! \name Type Identity
80 //! \{
81 //! \brief Get the message type string for this message class.
82 static const std::string& theType();
83
84 //! \brief Get the message identifier for this message class.
86
87 //! \brief Get the version number for this message class.
89
90 //! \brief Get the message type string for this instance.
91 virtual const std::string& type() const override;
92
93 //! \brief Get the message identifier for this instance.
94 virtual const makVre::DtVreMessageId& messageId() const override;
95 //! \}
96
97 //! \name Accessors
98 //! \{
99 virtual const std::string& getMessage() const;
100 virtual void setMessage(const std::string& val);
101
102 virtual double getTime() const;
103 virtual void setTime(double val);
104
105 virtual const DtEntityIdentifier& getSenderEntityID() const;
106 virtual void setSenderEntityID(const DtEntityIdentifier& val);
107
108 virtual const DtEntityIdentifier& getReceiverEntityID() const;
109 virtual void setReceiverEntityID(const DtEntityIdentifier& val);
110 //! \}
111
112 //! \name Serialization
113 //! \{
114 //! \copydoc makVre::DtVreMessage::messageSize()
115 virtual int messageSize() const override;
116
117 //! \brief Decode a message from a byte buffer.
118 //! \param buffer The raw byte buffer to decode from.
119 //! \param length The length of the buffer in bytes.
120 //! \return A dynamically allocated decoded message. Caller takes ownership.
121 static makVre::DtVreMessage* decode(char* buffer, int length);
122
123 //! \brief Get a copy of the message data.
125
126 //! \brief Get a copy of the message data (const).
128 //! \}
129
130 //! \name Operators
131 //! \{
132 bool operator==(const VrfTextMessage& rhs) const;
133 bool operator!=(const VrfTextMessage& rhs) const;
134 //! \}
135
136protected:
138
139 //! \copydoc makVre::DtVreMessage::serialize()
140 virtual void serialize(DtStreamWriter& writer) const override;
141
142 //! \copydoc makVre::DtVreMessage::deserialize()
143 virtual void deserialize(DtStreamReader& reader) override;
144
145protected:
148
150};
151} // namespace makVre
152
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
virtual void setReceiverEntityID(const DtEntityIdentifier &val)
static makVre::DtVreMessageId theMessageId
Definition vrfTextMessage.h:146
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
VrfTextData getData() const
Get a copy of the message data (const).
virtual const std::string & type() const override
Get the message type string for this instance.
virtual const std::string & getMessage() const
static const std::string & theType()
Get the message type string for this instance.
virtual void setMessage(const std::string &val)
static VrfTextMessage * createFrom(VrfTextMessage *origMsg)
Create a copy of the given message.
VrfTextData getData()
Get a copy of the message data.
static UInt64 theVersion
Definition vrfTextMessage.h:147
virtual double getTime() const
virtual const DtEntityIdentifier & getReceiverEntityID() const
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual const DtEntityIdentifier & getSenderEntityID() const
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual void setSenderEntityID(const DtEntityIdentifier &val)
virtual int messageSize() const override
Get a copy of the message data.
VrfTextData myData
Definition vrfTextMessage.h:149
bool operator==(const VrfTextMessage &rhs) const
virtual ~VrfTextMessage() override
Destructor.
static VrfTextMessage * create()
Create a copy of the given message.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual void setTime(double val)
static VrfTextMessage * createFromData(const VrfTextData data)
Create a new message initialized with the given data.
static UInt64 theVersionNumber()
Get the version number for this message class.
bool operator!=(const VrfTextMessage &rhs) const
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 * VrfTextMessageType
Message type identifier for VrfTextMessage.
Definition vrfTextMessage.h:23
Data payload for VrfTextMessage.
Definition vrfTextMessage.h:39
std::string myMessage
Definition vrfTextMessage.h:46
double myTime
Definition vrfTextMessage.h:47
DtEntityIdentifier myReceiverEntityID
Definition vrfTextMessage.h:49
bool operator!=(const VrfTextData &rhs) const
DtEntityIdentifier mySenderEntityID
Definition vrfTextMessage.h:48
VrfTextData()
Default constructor.
bool operator==(const VrfTextData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.