Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
berryIPropertyTester.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 BERRYIPROPERTYTESTER_H_
18 #define BERRYIPROPERTYTESTER_H_
19 
20 #include <berryMacros.h>
21 #include <berryObject.h>
22 
24 
25 #include <Poco/Any.h>
26 
27 #include <string>
28 #include <vector>
29 
30 #include <QObject>
31 
32 namespace berry {
33 
43 {
44 
46 
47  virtual ~IPropertyTester();
48 
58  virtual bool Handles(const QString& namespaze, const QString& property) = 0;
59 
67  virtual bool IsInstantiated() = 0;
68 
76  virtual bool IsDeclaringPluginActive() = 0;
77 
86  virtual IPropertyTester* Instantiate() = 0;
87 
103  virtual bool Test(Object::ConstPointer receiver, const QString& property,
104  const QList<Object::Pointer>& args, Object::Pointer expectedValue) = 0;
105 
106 };
107 
108 } // namespace berry
109 
110 Q_DECLARE_INTERFACE(berry::IPropertyTester, "org.blueberry.IPropertyTester")
111 
112 #endif /*BERRYIPROPERTYTESTER_H_*/
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:78
#define berryObjectMacro(...)
Definition: berryMacros.h:37