VR-Engage  2.2
Loading...
Searching...
No Matches
entityRealized.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2025 MAK Technologies, Inc.
3** All rights reserved.
4*********************************************************************************/
5
6/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7!!!!!!!!!This is an auto-generated file. Any changes will be destroyed!!!!!!!!!!!
8!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9Generated from: /data/exports/DEV-CAM-BML-043/nightly/3085/libsrc/framework/vreMessages/entity.lua
10*/
11/*-----------------COMMENT----------------------
12Sent when an entity's full information is known
13-------------------COMMENT----------------------*/
14#pragma once
15
18#include <vreMessages/export.h>
19#include <vlpi/entityIdentifier.h>
20#include <string>
21#include <vlpi/entityType.h>
22
23
24namespace makVre
25{
26
27
28constexpr const char* EntityRealizedMessageType = "entity.realized";
29
31{
32public:
33
34
35 // Struct for defining data
37 {
39
40 DtEntityIdentifier myId;
41 std::string myUuid;
42 DtEntityType myType;
44 std::string myName;
45 std::string myObjectLabel;
47
48 bool operator==(const EntityRealizedData& rhs) const;
49 };
50
51 // Default static creators to promote the usage of not using new.
55
56 //! \brief static message identity functions
57 static const std::string& theType();
60
61 //! \brief Get the name of the message type
62 virtual const std::string& type() const override;
63 virtual const makVre::DtVreMessageId& messageId() const override;
64
65 // default destructor
66 virtual ~EntityRealizedMessage() override;
67
68 virtual const DtEntityIdentifier& getId() const;
69 virtual void setId(const DtEntityIdentifier& val);
70
71 virtual const std::string& getUuid() const;
72 virtual void setUuid(const std::string& val);
73
74 virtual const DtEntityType& getType() const;
75 virtual void setType(const DtEntityType& val);
76
77 virtual int getForce() const;
78 virtual void setForce(int val);
79
80 virtual const std::string& getName() const;
81 virtual void setName(const std::string& val);
82
83 virtual const std::string& getObjectLabel() const;
84 virtual void setObjectLabel(const std::string& val);
85
86 virtual int getElementId() const;
87 virtual void setElementId(int val);
88
89
90 // Accessors
91 virtual int messageSize() const override;
92 static makVre::DtVreMessage* decode(char* buffer, int length);
95
96 // Operators
97 bool operator==(const EntityRealizedMessage& rhs) const;
98
99protected:
100 // Inaccessible default constructor to promote the usage of the static creator functions
102
103 virtual void serialize(DtStreamWriter& writer) const override;
104 virtual void deserialize(DtStreamReader& reader) override;
105
106protected:
109
110 // Store the data for future use
112};
113
114} // ::makVre
115
116
117
Reader class for decoding values from a byte array.
Definition byteStream.h:42
Writer class for encoding values into a byte array.
Definition byteStream.h:161
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Message identifier class for the VREngage messaging system.
Definition vreMessageId.h:35
EntityRealizedData myData
Definition entityRealized.h:111
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
EntityRealizedData getData() const
virtual int getForce() const
virtual const std::string & getUuid() const
EntityRealizedData getData()
virtual const std::string & getObjectLabel() const
virtual const std::string & type() const override
Get the name of the message type.
virtual void setId(const DtEntityIdentifier &val)
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual int getElementId() const
virtual void setName(const std::string &val)
virtual void setForce(int val)
static const makVre::DtVreMessageId & theId()
static makVre::DtVreMessageId theMessageId
Definition entityRealized.h:107
virtual void setType(const DtEntityType &val)
virtual ~EntityRealizedMessage() override
virtual const std::string & getName() const
static const std::string & theType()
static message identity functions
virtual int messageSize() const override
Static decode function pattern for derived classes.
virtual void setElementId(int val)
virtual void setUuid(const std::string &val)
static EntityRealizedMessage * createFromData(const EntityRealizedData)
static EntityRealizedMessage * create()
virtual void setObjectLabel(const std::string &val)
static EntityRealizedMessage * createFrom(EntityRealizedMessage *)
static makVre::DtVreMessage * decode(char *buffer, int length)
static UInt64 theVersionNumber()
virtual const DtEntityIdentifier & getId() const
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
static UInt64 theVersion
Definition entityRealized.h:108
virtual const DtEntityType & getType() const
bool operator==(const EntityRealizedMessage &rhs) const
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * EntityRealizedMessageType
Definition entityRealized.h:28
std::string myName
Definition entityRealized.h:44
std::string myUuid
Definition entityRealized.h:41
bool operator==(const EntityRealizedData &rhs) const
int myElementId
Definition entityRealized.h:46
std::string myObjectLabel
Definition entityRealized.h:45
DtEntityIdentifier myId
Definition entityRealized.h:40
DtEntityType myType
Definition entityRealized.h:42
int myForce
Definition entityRealized.h:43
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.