VR-Engage  2.3
Loading...
Searching...
No Matches
reportDetonationHitLocation.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
20namespace makVre
21{
22//! \brief Message type identifier for ReportDetonationHitLocationMessage.
23constexpr const char* ReportDetonationHitLocationMessageType = "entity.reportDetonationHitLocation";
24
25/**
26 * \class ReportDetonationHitLocationMessage
27 * \brief Reports the side or face of a detonation hit. Possible values are "front", "rear", "left-side", "right-side", "top", "bottom"
28 *
29 * Message type: "entity.reportDetonationHitLocation"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36
37 //! \brief Data payload for ReportDetonationHitLocationMessage.
39 {
40 //! \brief Default constructor.
42
43 //! \name Data Members
44 //! \{
45
46 DtEntityIdentifier myEntityId;
48 //! \}
49
50 //! \name Operators
51 //! \{
54 //! \}
55 };
56
57 //! \brief Destructor.
59
60 //! \name Static Creators
61 //! \{
62 //! \brief Create a new default instance.
63 //! \return A dynamically allocated default message. Caller takes ownership.
65
66 //! \brief Create a copy of the given message.
67 //! \param origMsg The message to copy. Must not be null.
68 //! \return A dynamically allocated copy. Caller takes ownership.
70
71 //! \brief Create a new message initialized with the given data.
72 //! \param data The data payload to initialize the message with.
73 //! \return A dynamically allocated message. Caller takes ownership.
75 //! \}
76
77 //! \name Type Identity
78 //! \{
79 //! \brief Get the message type string for this message class.
80 static const std::string& theType();
81
82 //! \brief Get the message identifier for this message class.
84
85 //! \brief Get the version number for this message class.
87
88 //! \brief Get the message type string for this instance.
89 virtual const std::string& type() const override;
90
91 //! \brief Get the message identifier for this instance.
92 virtual const makVre::DtVreMessageId& messageId() const override;
93 //! \}
94
95 //! \name Accessors
96 //! \{
97 virtual const DtEntityIdentifier& getEntityId() const;
98 virtual void setEntityId(const DtEntityIdentifier& val);
99
100 virtual const std::string& getDetonationHitLocation() const;
101 virtual void setDetonationHitLocation(const std::string& val);
102 //! \}
103
104 //! \name Serialization
105 //! \{
106 //! \copydoc makVre::DtVreMessage::messageSize()
107 virtual int messageSize() const override;
108
109 //! \brief Decode a message from a byte buffer.
110 //! \param buffer The raw byte buffer to decode from.
111 //! \param length The length of the buffer in bytes.
112 //! \return A dynamically allocated decoded message. Caller takes ownership.
113 static makVre::DtVreMessage* decode(char* buffer, int length);
114
115 //! \brief Get a copy of the message data.
117
118 //! \brief Get a copy of the message data (const).
120 //! \}
121
122 //! \name Operators
123 //! \{
126 //! \}
127
128protected:
130
131 //! \copydoc makVre::DtVreMessage::serialize()
132 virtual void serialize(DtStreamWriter& writer) const override;
133
134 //! \copydoc makVre::DtVreMessage::deserialize()
135 virtual void deserialize(DtStreamReader& reader) override;
136
137protected:
140
142};
143} // namespace makVre
144
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
ReportDetonationHitLocationData getData()
Get a copy of the message data.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static makVre::DtVreMessageId theMessageId
Definition reportDetonationHitLocation.h:138
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static UInt64 theVersion
Definition reportDetonationHitLocation.h:139
ReportDetonationHitLocationData getData() const
Get a copy of the message data (const).
virtual ~ReportDetonationHitLocationMessage() override
Destructor.
ReportDetonationHitLocationData myData
Definition reportDetonationHitLocation.h:141
static ReportDetonationHitLocationMessage * createFrom(ReportDetonationHitLocationMessage *origMsg)
Create a copy of the given message.
bool operator==(const ReportDetonationHitLocationMessage &rhs) const
static ReportDetonationHitLocationMessage * createFromData(const ReportDetonationHitLocationData data)
Create a new message initialized with the given data.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
static const std::string & theType()
Get the message type string for this instance.
virtual const std::string & getDetonationHitLocation() const
virtual const DtEntityIdentifier & getEntityId() const
virtual void setEntityId(const DtEntityIdentifier &val)
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
virtual const std::string & type() const override
Get the message type string for this instance.
bool operator!=(const ReportDetonationHitLocationMessage &rhs) const
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual int messageSize() const override
Get a copy of the message data.
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual void setDetonationHitLocation(const std::string &val)
static ReportDetonationHitLocationMessage * create()
Create a copy of the given message.
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 * ReportDetonationHitLocationMessageType
Message type identifier for ReportDetonationHitLocationMessage.
Definition reportDetonationHitLocation.h:23
Data payload for ReportDetonationHitLocationMessage.
Definition reportDetonationHitLocation.h:39
bool operator==(const ReportDetonationHitLocationData &rhs) const
DtEntityIdentifier myEntityId
Definition reportDetonationHitLocation.h:46
bool operator!=(const ReportDetonationHitLocationData &rhs) const
std::string myDetonationHitLocation
Definition reportDetonationHitLocation.h:47
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.