Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIExtensionPointFilter.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 BERRYIEXTENSIONPOINTFILTER_H
18 #define BERRYIEXTENSIONPOINTFILTER_H
19 
21 
22 #include <memory>
23 
24 namespace berry {
25 
26 struct IExtensionPoint;
27 
37 {
39  virtual bool Matches(const IExtensionPoint* target) const = 0;
40 
41  virtual ~Concept();
42  };
43 
44  IExtensionPointFilter(const Concept* concept);
45 
46  bool IsNull() const;
47 
48  const Concept* GetConcept() const;
49 
58  bool Matches(const IExtensionPoint* target) const;
59 
60 private:
61 
62  std::shared_ptr<const Concept> m_Self;
63 };
64 
65 }
66 
67 #endif // BERRYIEXTENSIONPOINTFILTER_H
#define org_blueberry_core_runtime_EXPORT