Continued filling out Artisan::GViewport::.
[aesalon.git] / include / artisan / gviewport / Data.h
blob9c462eb05c5dbc6828f8d5f72b1ad6dfb3e83a17
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/artisan/gviewport/Data.h
8 */
10 #ifndef AesalonArtisan_GViewport_Data_H
11 #define AesalonArtisan_GViewport_Data_H
13 #include <QReadWriteLock>
15 #include "TreeType.h"
17 namespace Artisan {
18 namespace GViewport {
20 class Data {
21 private:
22 TreeType m_tree;
24 QReadWriteLock m_treeLock;
25 public:
26 Data() {}
27 ~Data() {}
29 TreeType &tree() { return m_tree; }
31 void startReading();
32 void stopReading();
33 void startWriting();
34 void stopWriting();
36 void addObject(Object *object);
37 void removeObject(Object *object);
40 } // namespace GViewport
41 } // namespace Artisan
43 #endif