Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
berryIServiceFactory.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 BERRYISERVICEFACTORY_H_
19
#define BERRYISERVICEFACTORY_H_
20
21
#include <
org_blueberry_ui_qt_Export.h
>
22
23
#include <QObject>
24
25
namespace
berry
{
26
27
struct
IServiceLocator;
28
29
class
Object;
30
37
struct
BERRY_UI_QT
IServiceFactory
{
38
39
virtual
~
IServiceFactory
();
40
63
template
<
class
S>
64
S*
Create
(
IServiceLocator
* parentLocator,
IServiceLocator
* locator)
const
65
{
66
return
dynamic_cast<
S*
>
(this->Create(qobject_interface_iid<S*>(), parentLocator, locator));
67
}
68
69
virtual
Object
* Create(
const
QString& serviceInterface,
70
IServiceLocator
* parentLocator,
IServiceLocator
* locator)
const
= 0;
71
};
72
73
}
74
75
Q_DECLARE_INTERFACE(
berry::IServiceFactory
,
"org.blueberry.ui.IServiceFactory"
)
76
77
#endif
/* BERRYISERVICEFACTORY_H_ */
berry
Definition:
QmitkPropertyItemModel.h:27
berry::IServiceFactory
Definition:
berryIServiceFactory.h:37
berry::Object
Light weight base class for most BlueBerry classes.
Definition:
berryObject.h:78
org_blueberry_ui_qt_Export.h
berry::IServiceLocator
Definition:
berryIServiceLocator.h:47
berry::IServiceFactory::Create
S * Create(IServiceLocator *parentLocator, IServiceLocator *locator) const
Definition:
berryIServiceFactory.h:64
BERRY_UI_QT
#define BERRY_UI_QT
Definition:
org_blueberry_ui_qt_Export.h:23
git
MITK
Plugins
org.blueberry.ui.qt
src
services
berryIServiceFactory.h
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1