ezEngine  Milestone 7
TelemetryMessage.h
1 #pragma once
2 
3 #include <Foundation/IO/MemoryStream.h>
4 
5 class EZ_FOUNDATION_DLL ezTelemetryMessage
6 {
7 public:
11 
12  void operator=(const ezTelemetryMessage& rhs);
13 
14  EZ_FORCE_INLINE ezStreamReaderBase& GetReader() { return m_Reader; }
15  EZ_FORCE_INLINE ezStreamWriterBase& GetWriter() { return m_Writer; }
16 
17  EZ_FORCE_INLINE ezUInt32 GetSystemID() const { return m_uiSystemID; }
18  EZ_FORCE_INLINE ezUInt32 GetMessageID() const { return m_uiMsgID; }
19 
20  EZ_FORCE_INLINE void SetMessageID(ezUInt32 uiSystemID, ezUInt32 uiMessageID) { m_uiSystemID = uiSystemID; m_uiMsgID = uiMessageID; }
21 
22 private:
23  friend class ezTelemetry;
24 
25  ezUInt32 m_uiSystemID;
26  ezUInt32 m_uiMsgID;
27 
28  ezMemoryStreamStorage m_Storage;
29  ezMemoryStreamReader m_Reader;
30  ezMemoryStreamWriter m_Writer;
31 };
32