VR-Engage  2.2
Loading...
Searching...
No Matches
vreStatus.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/playerStation.lua
10*/
11/*-----------------COMMENT----------------------
12Contains VR-Engage state. Used to update the rest of the application when the engage state changes.
13-------------------COMMENT----------------------*/
14#pragma once
15
18#include <vreMessages/export.h>
19#include <string>
20#include <vlpi/entityIdentifier.h>
21
22
23namespace makVre
24{
25
26
27constexpr const char* VreStatusMessageType = "PlayerStation.status";
28
30{
31public:
32
33
34 // Struct for defining data
36 {
38
39 unsigned long long myId;
40 std::string myName;
41 std::string myPlayerName;
42 DtEntityIdentifier myEntityId;
43 std::string myStationName;
46
47 bool operator==(const VreStatusData& rhs) const;
48 };
49
50 // Default static creators to promote the usage of not using new.
54
55 //! \brief static message identity functions
56 static const std::string& theType();
59
60 //! \brief Get the name of the message type
61 virtual const std::string& type() const override;
62 virtual const makVre::DtVreMessageId& messageId() const override;
63
64 // default destructor
65 virtual ~VreStatusMessage() override;
66
67 virtual unsigned long long getId() const;
68 virtual void setId(unsigned long long val);
69
70 virtual const std::string& getName() const;
71 virtual void setName(const std::string& val);
72
73 virtual const std::string& getPlayerName() const;
74 virtual void setPlayerName(const std::string& val);
75
76 virtual const DtEntityIdentifier& getEntityId() const;
77 virtual void setEntityId(const DtEntityIdentifier& val);
78
79 virtual const std::string& getStationName() const;
80 virtual void setStationName(const std::string& val);
81
82 virtual bool getSpectatorMode() const;
83 virtual void setSpectatorMode(bool val);
84
85 virtual bool getFinalStatus() const;
86 virtual void setFinalStatus(bool val);
87
88
89 // Accessors
90 virtual int messageSize() const override;
91 static makVre::DtVreMessage* decode(char* buffer, int length);
94
95 // Operators
96 bool operator==(const VreStatusMessage& rhs) const;
97
98protected:
99 // Inaccessible default constructor to promote the usage of the static creator functions
101
102 virtual void serialize(DtStreamWriter& writer) const override;
103 virtual void deserialize(DtStreamReader& reader) override;
104
105protected:
108
109 // Store the data for future use
111};
112
113} // ::makVre
114
115
116
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
virtual void setFinalStatus(bool val)
virtual void setName(const std::string &val)
static makVre::DtVreMessageId theMessageId
Definition vreStatus.h:106
virtual void setSpectatorMode(bool val)
virtual const std::string & type() const override
Get the name of the message type.
virtual int messageSize() const override
Static decode function pattern for derived classes.
virtual unsigned long long getId() const
virtual void setEntityId(const DtEntityIdentifier &val)
static VreStatusMessage * createFrom(VreStatusMessage *)
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual const std::string & getPlayerName() const
virtual void setPlayerName(const std::string &val)
VreStatusData getData() const
static makVre::DtVreMessage * decode(char *buffer, int length)
static UInt64 theVersionNumber()
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual bool getFinalStatus() const
bool operator==(const VreStatusMessage &rhs) const
VreStatusData myData
Definition vreStatus.h:110
virtual const std::string & getStationName() const
static VreStatusMessage * create()
virtual ~VreStatusMessage() override
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
static UInt64 theVersion
Definition vreStatus.h:107
static const makVre::DtVreMessageId & theId()
VreStatusData getData()
virtual bool getSpectatorMode() const
virtual void setId(unsigned long long val)
static VreStatusMessage * createFromData(const VreStatusData)
static const std::string & theType()
static message identity functions
virtual const DtEntityIdentifier & getEntityId() const
virtual const std::string & getName() const
virtual void setStationName(const std::string &val)
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 * VreStatusMessageType
Definition vreStatus.h:27
DtEntityIdentifier myEntityId
Definition vreStatus.h:42
bool myFinalStatus
Definition vreStatus.h:45
std::string myName
Definition vreStatus.h:40
bool operator==(const VreStatusData &rhs) const
bool mySpectatorMode
Definition vreStatus.h:44
std::string myStationName
Definition vreStatus.h:43
std::string myPlayerName
Definition vreStatus.h:41
unsigned long long myId
Definition vreStatus.h:39
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.