VR-Engage  2.3
Loading...
Searching...
No Matches
setEntityEngineSoundEnabled.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/util.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17
18namespace makVre
19{
20//! \brief Message type identifier for SetEntityEngineSoundEnabledMessage.
21constexpr const char* SetEntityEngineSoundEnabledMessageType = "util.setEntityEngineSoundEnabled";
22
23/**
24 * \class SetEntityEngineSoundEnabledMessage
25 * \brief This class is used to turn Off/On VRV default entity sound defined in entity definition configuration
26 *
27 * Message type: "util.setEntityEngineSoundEnabled"
28 *
29 * \note This is an auto-generated class. Do not modify directly.
30 */
32{
33public:
34
35 //! \brief Data payload for SetEntityEngineSoundEnabledMessage.
37 {
38 //! \brief Default constructor.
40
41 //! \name Data Members
42 //! \{
43
44 unsigned long long myElementId;
46 //! \}
47
48 //! \name Operators
49 //! \{
52 //! \}
53 };
54
55 //! \brief Destructor.
57
58 //! \name Static Creators
59 //! \{
60 //! \brief Create a new default instance.
61 //! \return A dynamically allocated default message. Caller takes ownership.
63
64 //! \brief Create a copy of the given message.
65 //! \param origMsg The message to copy. Must not be null.
66 //! \return A dynamically allocated copy. Caller takes ownership.
68
69 //! \brief Create a new message initialized with the given data.
70 //! \param data The data payload to initialize the message with.
71 //! \return A dynamically allocated message. Caller takes ownership.
73 //! \}
74
75 //! \name Type Identity
76 //! \{
77 //! \brief Get the message type string for this message class.
78 static const std::string& theType();
79
80 //! \brief Get the message identifier for this message class.
82
83 //! \brief Get the version number for this message class.
85
86 //! \brief Get the message type string for this instance.
87 virtual const std::string& type() const override;
88
89 //! \brief Get the message identifier for this instance.
90 virtual const makVre::DtVreMessageId& messageId() const override;
91 //! \}
92
93 //! \name Accessors
94 //! \{
95 virtual unsigned long long getElementId() const;
96 virtual void setElementId(unsigned long long val);
97
98 virtual bool getEngineSoundEnabled() const;
99 virtual void setEngineSoundEnabled(bool val);
100 //! \}
101
102 //! \name Serialization
103 //! \{
104 //! \copydoc makVre::DtVreMessage::messageSize()
105 virtual int messageSize() const override;
106
107 //! \brief Decode a message from a byte buffer.
108 //! \param buffer The raw byte buffer to decode from.
109 //! \param length The length of the buffer in bytes.
110 //! \return A dynamically allocated decoded message. Caller takes ownership.
111 static makVre::DtVreMessage* decode(char* buffer, int length);
112
113 //! \brief Get a copy of the message data.
115
116 //! \brief Get a copy of the message data (const).
118 //! \}
119
120 //! \name Operators
121 //! \{
124 //! \}
125
126protected:
128
129 //! \copydoc makVre::DtVreMessage::serialize()
130 virtual void serialize(DtStreamWriter& writer) const override;
131
132 //! \copydoc makVre::DtVreMessage::deserialize()
133 virtual void deserialize(DtStreamReader& reader) override;
134
135protected:
138
140};
141} // namespace makVre
142
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 ~SetEntityEngineSoundEnabledMessage() override
Destructor.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
static makVre::DtVreMessageId theMessageId
Definition setEntityEngineSoundEnabled.h:136
bool operator!=(const SetEntityEngineSoundEnabledMessage &rhs) const
virtual void setElementId(unsigned long long val)
static SetEntityEngineSoundEnabledMessage * createFrom(SetEntityEngineSoundEnabledMessage *origMsg)
Create a copy of the given message.
static SetEntityEngineSoundEnabledMessage * create()
Create a copy of the given message.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static SetEntityEngineSoundEnabledMessage * createFromData(const SetEntityEngineSoundEnabledData data)
Create a new message initialized with the given data.
virtual const std::string & type() const override
Get the message type string for this instance.
virtual unsigned long long getElementId() const
static UInt64 theVersion
Definition setEntityEngineSoundEnabled.h:137
SetEntityEngineSoundEnabledData getData()
Get a copy of the message data.
virtual int messageSize() const override
Get a copy of the message data.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
SetEntityEngineSoundEnabledData myData
Definition setEntityEngineSoundEnabled.h:139
SetEntityEngineSoundEnabledData getData() const
Get a copy of the message data (const).
bool operator==(const SetEntityEngineSoundEnabledMessage &rhs) const
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static const std::string & theType()
Get the message type string for this instance.
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual void setEngineSoundEnabled(bool 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 * SetEntityEngineSoundEnabledMessageType
Message type identifier for SetEntityEngineSoundEnabledMessage.
Definition setEntityEngineSoundEnabled.h:21
Data payload for SetEntityEngineSoundEnabledMessage.
Definition setEntityEngineSoundEnabled.h:37
bool operator==(const SetEntityEngineSoundEnabledData &rhs) const
unsigned long long myElementId
Definition setEntityEngineSoundEnabled.h:44
bool myEngineSoundEnabled
Definition setEntityEngineSoundEnabled.h:45
bool operator!=(const SetEntityEngineSoundEnabledData &rhs) const
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.