Medical Imaging Interaction Toolkit  2021.10.99-1c4db16f
Medical Imaging Interaction Toolkit
mitkIPropertyExtensions.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkIPropertyExtensions_h
14 #define mitkIPropertyExtensions_h
15 
16 #include <MitkCoreExports.h>
17 #include <mitkPropertyExtension.h>
18 #include <mitkServiceInterface.h>
19 #include <string>
20 
21 namespace mitk
22 {
33  {
34  public:
35  virtual ~IPropertyExtensions();
36 
45  virtual bool AddExtension(const std::string &propertyName,
47  const std::string &className = "",
48  bool overwrite = false) = 0;
49 
56  virtual PropertyExtension::Pointer GetExtension(const std::string &propertyName,
57  const std::string &className = "") = 0;
58 
65  virtual bool HasExtension(const std::string &propertyName, const std::string &className = "") = 0;
66 
71  virtual void RemoveAllExtensions(const std::string &className = "") = 0;
72 
78  virtual void RemoveExtension(const std::string &propertyName, const std::string &className = "") = 0;
79  };
80 }
81 
82 MITK_DECLARE_SERVICE_INTERFACE(mitk::IPropertyExtensions, "org.mitk.IPropertyExtensions")
83 
84 #endif
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Interface of property extensions service.