Kind-of worked on the R-Tree; not really enough time to do much.
[aesalon.git] / include / visualizer / DataInput.h
blob29ff9aa254ce27b87011c2f8cced35592cd0e152
1 /** Aesalon, a tool to visualize program behaviour in real time.
2 Copyright (C) 2009-2011, Aesalon development team.
4 Aesalon is distributed under the terms of the GNU GPLv3. See
5 the included file LICENSE for more information.
7 @file include/visualizer/DataInput.h
8 */
10 #ifndef AesalonVisualizer_DataInput_H
11 #define AesalonVisualizer_DataInput_H
13 #include <QThread>
14 #include <QByteArray>
15 #include <QHash>
17 #include <stdint.h>
19 #include "comm/Packet.h"
20 #include "ArtisanWrapper.h"
21 #include "ArtisanManager.h"
23 namespace Visualizer {
25 class DataInput : public QThread { Q_OBJECT
26 private:
27 QByteArray m_unprocessed;
28 QHash<uint32_t, uint32_t> m_processIDMap;
29 ArtisanManager *m_artisanManager;
30 QHash<ModuleID, ArtisanWrapper *> m_artisanMap;
31 public:
32 DataInput(ArtisanManager *artisanManager);
33 virtual ~DataInput() {}
34 public slots:
35 void addData(QByteArray data);
36 private:
37 void processInformerPacket(Comm::Packet *packet);
40 } // namespace Visualizer
42 #endif