Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
Medical Imaging Interaction Toolkit
berryHandleObjectManager.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 
14 #ifndef BERRYHANDLEOBJECTMANAGER_H_
15 #define BERRYHANDLEOBJECTMANAGER_H_
16 
18 
19 #include <berrySmartPointer.h>
20 
21 #include <QHash>
22 #include <QSet>
23 
24 namespace berry {
25 
26 class HandleObject;
27 
38 {
39 
40 protected:
41 
42  typedef QSet<SmartPointer<HandleObject> > HandleObjectsSet;
43  typedef QHash<QString, SmartPointer<HandleObject> > HandleObjectsByIdMap;
44 
49  HandleObjectsSet definedHandleObjects;
50 
56  HandleObjectsByIdMap handleObjectsById;
57 
65  void CheckId(const QString& id) const;
66 
73  QSet<QString> GetDefinedHandleObjectIds() const;
74 };
75 
76 }
77 
78 
79 #endif /* BERRYHANDLEOBJECTMANAGER_H_ */
QSet< SmartPointer< HandleObject > > HandleObjectsSet
HandleObjectsByIdMap handleObjectsById
QHash< QString, SmartPointer< HandleObject > > HandleObjectsByIdMap