Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryPropertyTester.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 BERRYPROPERTYTESTER_H_
18 #define BERRYPROPERTYTESTER_H_
19 
21 
22 #include "internal/berryPropertyTesterDescriptor.h"
23 
25 
26 
27 namespace berry {
28 
72 class BERRY_EXPRESSIONS PropertyTester : public QObject, public IPropertyTester
73 {
74  Q_OBJECT
75  Q_INTERFACES(berry::IPropertyTester)
76 
77 private:
78  IConfigurationElement::Pointer fConfigElement;
79  QString fNamespace;
80  QString fProperties;
81 
82 public:
91  void InternalInitialize(PropertyTesterDescriptor::Pointer descriptor);
92 
99  PropertyTesterDescriptor::Pointer InternalCreateDescriptor();
100 
104  bool Handles(const QString& namespaze, const QString& property) override;
105 
109  bool IsInstantiated() override;
110 
114  bool IsDeclaringPluginActive() override;
115 
119  IPropertyTester* Instantiate() override;
120 
121 };
122 
123 } // namespace berry
124 
125 #endif /*BERRYPROPERTYTESTER_H_*/
itk::SmartPointer< Self > Pointer