Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkIPropertyDescriptions.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,
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 mitkIPropertyDescriptions_h
18 #define mitkIPropertyDescriptions_h
19 
20 #include <MitkCoreExports.h>
21 #include <mitkServiceInterface.h>
22 #include <string>
23 
24 namespace mitk
25 {
34  {
35  public:
36  virtual ~IPropertyDescriptions();
37 
46  virtual bool AddDescription(const std::string &propertyName,
47  const std::string &description,
48  const std::string &className = "",
49  bool overwrite = false) = 0;
50 
59  virtual bool AddDescriptionRegEx(const std::string &propertyRegEx,
60  const std::string &description,
61  const std::string &className = "",
62  bool overwrite = false) = 0;
63 
71  virtual std::string GetDescription(const std::string &propertyName,
72  const std::string &className = "",
73  bool allowNameRegEx = true) const = 0;
74 
82  virtual bool HasDescription(const std::string &propertyName,
83  const std::string &className = "",
84  bool allowNameRegEx = true) const = 0;
85 
90  virtual void RemoveAllDescriptions(const std::string &className = "") = 0;
91 
97  virtual void RemoveDescription(const std::string &propertyName, const std::string &className = "") = 0;
98  };
99 }
100 
101 MITK_DECLARE_SERVICE_INTERFACE(mitk::IPropertyDescriptions, "org.mitk.IPropertyDescriptions")
102 
103 #endif
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Interface of property descriptions service.
MITK_DECLARE_SERVICE_INTERFACE(mitk::ISimulationService,"org.mitk.ISimulationService")