Plasma Engine  2.0
Loading...
Searching...
No Matches
TelemetryMessage.h
1#pragma once
2
3#include <Foundation/IO/MemoryStream.h>
4
5class PL_FOUNDATION_DLL plTelemetryMessage
6{
7public:
11
12 void operator=(const plTelemetryMessage& rhs);
13
14 PL_ALWAYS_INLINE plStreamReader& GetReader() { return m_Reader; }
15 PL_ALWAYS_INLINE plStreamWriter& GetWriter() { return m_Writer; }
16
17 PL_ALWAYS_INLINE plUInt32 GetSystemID() const { return m_uiSystemID; }
18 PL_ALWAYS_INLINE plUInt32 GetMessageID() const { return m_uiMsgID; }
19
20 PL_ALWAYS_INLINE void SetMessageID(plUInt32 uiSystemID, plUInt32 uiMessageID)
21 {
22 m_uiSystemID = uiSystemID;
23 m_uiMsgID = uiMessageID;
24 }
25
26 // plUInt64 GetMessageSize() const { return m_Storage.GetStorageSize64(); }
27
28private:
29 friend class plTelemetry;
30
31 plUInt32 m_uiSystemID;
32 plUInt32 m_uiMsgID;
33
35 plMemoryStreamReader m_Reader;
36 plMemoryStreamWriter m_Writer;
37};
Definition MemoryStream.h:145
A reader which can access a memory stream.
Definition MemoryStream.h:259
A writer which can access a memory stream.
Definition MemoryStream.h:313
Interface for binary in (read) streams.
Definition Stream.h:22
Interface for binary out (write) streams.
Definition Stream.h:107
Definition Telemetry.h:15
Definition TelemetryMessage.h:6