Medical Imaging Interaction Toolkit  2025.12.02
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 (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 mitkIPropertyDescriptions_h
14 #define mitkIPropertyDescriptions_h
15 
16 #include <MitkCoreExports.h>
17 #include <mitkServiceInterface.h>
18 #include <string>
19 
20 namespace mitk
21 {
30  {
31  public:
33 
42  virtual bool AddDescription(const std::string &propertyName,
43  const std::string &description,
44  const std::string &className = "",
45  bool overwrite = false) = 0;
46 
55  virtual bool AddDescriptionRegEx(const std::string &propertyRegEx,
56  const std::string &description,
57  const std::string &className = "",
58  bool overwrite = false) = 0;
59 
67  virtual std::string GetDescription(const std::string &propertyName,
68  const std::string &className = "",
69  bool allowNameRegEx = true) const = 0;
70 
78  virtual bool HasDescription(const std::string &propertyName,
79  const std::string &className = "",
80  bool allowNameRegEx = true) const = 0;
81 
86  virtual void RemoveAllDescriptions(const std::string &className = "") = 0;
87 
93  virtual void RemoveDescription(const std::string &propertyName, const std::string &className = "") = 0;
94  };
95 }
96 
97 MITK_DECLARE_SERVICE_INTERFACE(mitk::IPropertyDescriptions, "org.mitk.IPropertyDescriptions")
98 
99 #endif
#define MITKCORE_EXPORT
Interface of property descriptions service.
virtual void RemoveDescription(const std::string &propertyName, const std::string &className="")=0
Remove description of specific property.
virtual std::string GetDescription(const std::string &propertyName, const std::string &className="", bool allowNameRegEx=true) const =0
Get the description for a specific property.
virtual void RemoveAllDescriptions(const std::string &className="")=0
Remove all descriptions.
virtual bool AddDescriptionRegEx(const std::string &propertyRegEx, const std::string &description, const std::string &className="", bool overwrite=false)=0
Add a description for all properties matching the property regular expression.
virtual bool HasDescription(const std::string &propertyName, const std::string &className="", bool allowNameRegEx=true) const =0
Check if a specific property has a description.
virtual bool AddDescription(const std::string &propertyName, const std::string &description, const std::string &className="", bool overwrite=false)=0
Add a description for a specific property.
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Find image slices visible on a given plane.