VR-Engage  2.3
Loading...
Searching...
No Matches
timeoutMessage.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 TimeoutMessage.
21constexpr const char* TimeoutMessageType = "util.timeout";
22
23/**
24 * \class TimeoutMessage
25 * \brief Used by makVre::DtTimer to schedule its event trigger. makVre::DtTimer sends this message a delay, and triggers its myDelegate when it receives the messsage.
26 *
27 * Message type: "util.timeout"
28 *
29 * \note This is an auto-generated class. Do not modify directly.
30 */
32{
33public:
34
35 //! \brief Data payload for TimeoutMessage.
37 {
38 //! \brief Default constructor.
40
41 //! \name Data Members
42 //! \{
43
44 //! \}
45
46 //! \name Operators
47 //! \{
48 bool operator==(const TimeoutData& rhs) const;
49 bool operator!=(const TimeoutData& rhs) const;
50 //! \}
51 };
52
53 //! \brief Destructor.
54 virtual ~TimeoutMessage() override;
55
56 //! \name Static Creators
57 //! \{
58 //! \brief Create a new default instance.
59 //! \return A dynamically allocated default message. Caller takes ownership.
61
62 //! \brief Create a copy of the given message.
63 //! \param origMsg The message to copy. Must not be null.
64 //! \return A dynamically allocated copy. Caller takes ownership.
66
67 //! \brief Create a new message initialized with the given data.
68 //! \param data The data payload to initialize the message with.
69 //! \return A dynamically allocated message. Caller takes ownership.
71 //! \}
72
73 //! \name Type Identity
74 //! \{
75 //! \brief Get the message type string for this message class.
76 static const std::string& theType();
77
78 //! \brief Get the message identifier for this message class.
80
81 //! \brief Get the version number for this message class.
83
84 //! \brief Get the message type string for this instance.
85 virtual const std::string& type() const override;
86
87 //! \brief Get the message identifier for this instance.
88 virtual const makVre::DtVreMessageId& messageId() const override;
89 //! \}
90
91 //! \name Accessors
92 //! \{
93
94 //! \}
95
96 //! \name Serialization
97 //! \{
98 //! \copydoc makVre::DtVreMessage::messageSize()
99 virtual int messageSize() const override;
100
101 //! \brief Decode a message from a byte buffer.
102 //! \param buffer The raw byte buffer to decode from.
103 //! \param length The length of the buffer in bytes.
104 //! \return A dynamically allocated decoded message. Caller takes ownership.
105 static makVre::DtVreMessage* decode(char* buffer, int length);
106
107 //! \brief Get a copy of the message data.
109
110 //! \brief Get a copy of the message data (const).
112 //! \}
113
114 //! \name Operators
115 //! \{
116 bool operator==(const TimeoutMessage& rhs) const;
117 bool operator!=(const TimeoutMessage& rhs) const;
118 //! \}
119
120protected:
122
123 //! \copydoc makVre::DtVreMessage::serialize()
124 virtual void serialize(DtStreamWriter& writer) const override;
125
126 //! \copydoc makVre::DtVreMessage::deserialize()
127 virtual void deserialize(DtStreamReader& reader) override;
128
129protected:
132
134};
135} // namespace makVre
136
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 ~TimeoutMessage() override
Destructor.
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.
static TimeoutMessage * create()
Create a copy of the given message.
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual int messageSize() const override
Get a copy of the message data.
virtual const std::string & type() const override
Get the message type string for this instance.
TimeoutData getData() const
Get a copy of the message data (const).
static TimeoutMessage * createFromData(const TimeoutData data)
Create a new message initialized with the given data.
static const std::string & theType()
Get the message type string for this instance.
static makVre::DtVreMessageId theMessageId
Definition timeoutMessage.h:130
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static TimeoutMessage * createFrom(TimeoutMessage *origMsg)
Create a copy of the given message.
TimeoutData getData()
Get a copy of the message data.
TimeoutData myData
Definition timeoutMessage.h:133
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
static UInt64 theVersion
Definition timeoutMessage.h:131
bool operator==(const TimeoutMessage &rhs) const
bool operator!=(const TimeoutMessage &rhs) const
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 * TimeoutMessageType
Message type identifier for TimeoutMessage.
Definition timeoutMessage.h:21
Data payload for TimeoutMessage.
Definition timeoutMessage.h:37
bool operator!=(const TimeoutData &rhs) const
bool operator==(const TimeoutData &rhs) const
TimeoutData()
Default constructor.
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.