Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryContributorFactory.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 #ifndef BERRYCONTRIBUTORFACTORY_H
18 #define BERRYCONTRIBUTORFACTORY_H
19 
21 
22 #include <QSharedPointer>
23 
24 class ctkPlugin;
25 
26 namespace berry {
27 
28 template<typename A> class SmartPointer;
29 
30 struct IContributor;
31 
41 {
42 
43 public:
44 
52  static SmartPointer<IContributor> CreateContributor(const QSharedPointer<ctkPlugin>& contributor);
53 
64  static QSharedPointer<ctkPlugin> Resolve(const SmartPointer<IContributor>& contributor);
65 
66 private:
67 
68  // not implemented
71 };
72 
73 }
74 
75 #endif // BERRYCONTRIBUTORFACTORY_H
Implements transparent reference counting.
#define org_blueberry_core_runtime_EXPORT