VR-Engage  2.3
Loading...
Searching...
No Matches
entityDiscovered.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/entity.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/entityIdentifier.h>
18#include <string>
19#include <vlpi/entityType.h>
20
21namespace makVre
22{
23//! \brief Message type identifier for EntityDiscoveredMessage.
24constexpr const char* EntityDiscoveredMessageType = "entity.discovered";
25
26/**
27 * \class EntityDiscoveredMessage
28 * \brief Sent when an entity is first discovered on the network. Note it will not be fully initialized (see EntityRealizedMessage for that).
29 *
30 * Message type: "entity.discovered"
31 *
32 * \note This is an auto-generated class. Do not modify directly.
33 */
35{
36public:
37
38 //! \brief Data payload for EntityDiscoveredMessage.
40 {
41 //! \brief Default constructor.
43
44 //! \name Data Members
45 //! \{
46
47 DtEntityIdentifier myId;
48 std::string myUuid;
49 DtEntityType myType;
51 std::string myName;
52 std::string myObjectLabel;
53 //! \}
54
55 //! \name Operators
56 //! \{
57 bool operator==(const EntityDiscoveredData& rhs) const;
58 bool operator!=(const EntityDiscoveredData& rhs) const;
59 //! \}
60 };
61
62 //! \brief Destructor.
63 virtual ~EntityDiscoveredMessage() override;
64
65 //! \name Static Creators
66 //! \{
67 //! \brief Create a new default instance.
68 //! \return A dynamically allocated default message. Caller takes ownership.
70
71 //! \brief Create a copy of the given message.
72 //! \param origMsg The message to copy. Must not be null.
73 //! \return A dynamically allocated copy. Caller takes ownership.
75
76 //! \brief Create a new message initialized with the given data.
77 //! \param data The data payload to initialize the message with.
78 //! \return A dynamically allocated message. Caller takes ownership.
80 //! \}
81
82 //! \name Type Identity
83 //! \{
84 //! \brief Get the message type string for this message class.
85 static const std::string& theType();
86
87 //! \brief Get the message identifier for this message class.
89
90 //! \brief Get the version number for this message class.
92
93 //! \brief Get the message type string for this instance.
94 virtual const std::string& type() const override;
95
96 //! \brief Get the message identifier for this instance.
97 virtual const makVre::DtVreMessageId& messageId() const override;
98 //! \}
99
100 //! \name Accessors
101 //! \{
102 virtual const DtEntityIdentifier& getId() const;
103 virtual void setId(const DtEntityIdentifier& val);
104
105 virtual const std::string& getUuid() const;
106 virtual void setUuid(const std::string& val);
107
108 virtual const DtEntityType& getType() const;
109 virtual void setType(const DtEntityType& val);
110
111 virtual int getForce() const;
112 virtual void setForce(int val);
113
114 virtual const std::string& getName() const;
115 virtual void setName(const std::string& val);
116
117 virtual const std::string& getObjectLabel() const;
118 virtual void setObjectLabel(const std::string& val);
119 //! \}
120
121 //! \name Serialization
122 //! \{
123 //! \copydoc makVre::DtVreMessage::messageSize()
124 virtual int messageSize() const override;
125
126 //! \brief Decode a message from a byte buffer.
127 //! \param buffer The raw byte buffer to decode from.
128 //! \param length The length of the buffer in bytes.
129 //! \return A dynamically allocated decoded message. Caller takes ownership.
130 static makVre::DtVreMessage* decode(char* buffer, int length);
131
132 //! \brief Get a copy of the message data.
134
135 //! \brief Get a copy of the message data (const).
137 //! \}
138
139 //! \name Operators
140 //! \{
141 bool operator==(const EntityDiscoveredMessage& rhs) const;
142 bool operator!=(const EntityDiscoveredMessage& rhs) const;
143 //! \}
144
145protected:
147
148 //! \copydoc makVre::DtVreMessage::serialize()
149 virtual void serialize(DtStreamWriter& writer) const override;
150
151 //! \copydoc makVre::DtVreMessage::deserialize()
152 virtual void deserialize(DtStreamReader& reader) override;
153
154protected:
157
159};
160} // namespace makVre
161
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 const std::string & getUuid() const
EntityDiscoveredData getData()
Get a copy of the message data.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual const std::string & getName() const
virtual const std::string & type() const override
Get the message type string for this instance.
static UInt64 theVersionNumber()
Get the version number for this message class.
static EntityDiscoveredMessage * createFrom(EntityDiscoveredMessage *origMsg)
Create a copy of the given message.
EntityDiscoveredData myData
Definition entityDiscovered.h:158
virtual void setId(const DtEntityIdentifier &val)
static EntityDiscoveredMessage * create()
Create a copy of the given message.
virtual ~EntityDiscoveredMessage() override
Destructor.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual void setObjectLabel(const std::string &val)
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual const DtEntityType & getType() const
virtual void setName(const std::string &val)
static makVre::DtVreMessageId theMessageId
Definition entityDiscovered.h:155
EntityDiscoveredData getData() const
Get a copy of the message data (const).
static const std::string & theType()
Get the message type string for this instance.
virtual const std::string & getObjectLabel() const
virtual const DtEntityIdentifier & getId() const
bool operator!=(const EntityDiscoveredMessage &rhs) const
virtual void setType(const DtEntityType &val)
bool operator==(const EntityDiscoveredMessage &rhs) const
virtual void setUuid(const std::string &val)
static EntityDiscoveredMessage * createFromData(const EntityDiscoveredData data)
Create a new message initialized with the given data.
virtual int getForce() const
static UInt64 theVersion
Definition entityDiscovered.h:156
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.
virtual void setForce(int val)
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 * EntityDiscoveredMessageType
Message type identifier for EntityDiscoveredMessage.
Definition entityDiscovered.h:24
Data payload for EntityDiscoveredMessage.
Definition entityDiscovered.h:40
DtEntityIdentifier myId
Definition entityDiscovered.h:47
std::string myUuid
Definition entityDiscovered.h:48
bool operator!=(const EntityDiscoveredData &rhs) const
bool operator==(const EntityDiscoveredData &rhs) const
DtEntityType myType
Definition entityDiscovered.h:49
int myForce
Definition entityDiscovered.h:50
std::string myName
Definition entityDiscovered.h:51
std::string myObjectLabel
Definition entityDiscovered.h:52
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.