Continued refactoring, moving around code.
[aesalon.git] / include / common / VPacket.h
blob711b90811d775bc59686dedba7d0210b08d01931
1 /**
2 Aesalon, a tool to visualize a program's behaviour at run-time.
3 Copyright (C) 2010, Aesalon Development Team.
5 Aesalon is distributed under the terms of the GNU GPLv3. For more
6 licensing information, see the file LICENSE included with the distribution.
8 @file include/common/VPacket.h
12 #ifndef AesalonCommon_VPacket_H
13 #define AesalonCommon_VPacket_H
15 #include <stdint.h>
17 #include "ModuleID.h"
19 namespace Common {
21 class VPacket {
22 private:
23 uint32_t m_processID;
24 uint32_t m_threadID;
25 ModuleID m_moduleID;
26 void *m_data;
27 uint32_t m_dataSize;
28 public:
29 VPacket(uint32_t processID, uint32_t threadID, ModuleID moduleID, void *data, uint32_t dataSize)
30 : m_processID(processID), m_threadID(threadID), m_moduleID(moduleID), m_data(data), m_dataSize(dataSize) {}
31 ~VPacket() {}
33 uint32_t processID() const { return m_processID; }
34 uint32_t threadID() const { return m_threadID; }
35 ModuleID moduleID() const { return m_moduleID; }
37 void *data() const { return m_data; }
38 uint32_t dataSize() const { return m_dataSize; }
41 } // namespace Common
43 #endif