Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryHandleObjectManager.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef BERRYHANDLEOBJECTMANAGER_H_
19 #define BERRYHANDLEOBJECTMANAGER_H_
20 
22 
23 #include <berrySmartPointer.h>
24 
25 #include <QHash>
26 #include <QSet>
27 
28 namespace berry {
29 
30 class HandleObject;
31 
42 {
43 
44 protected:
45 
46  typedef QSet<SmartPointer<HandleObject> > HandleObjectsSet;
47  typedef QHash<QString, SmartPointer<HandleObject> > HandleObjectsByIdMap;
48 
53  HandleObjectsSet definedHandleObjects;
54 
60  HandleObjectsByIdMap handleObjectsById;
61 
69  void CheckId(const QString& id) const;
70 
77  QSet<QString> GetDefinedHandleObjectIds() const;
78 };
79 
80 }
81 
82 
83 #endif /* BERRYHANDLEOBJECTMANAGER_H_ */
QSet< SmartPointer< HandleObject > > HandleObjectsSet
HandleObjectsByIdMap handleObjectsById
QHash< QString, SmartPointer< HandleObject > > HandleObjectsByIdMap