Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkPropertyDescriptions.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 mitkPropertyDescriptions_h
14 #define mitkPropertyDescriptions_h
15 
16 #include <map>
18 
19 namespace mitk
20 {
30  {
31  public:
34 
36  bool AddDescription(const std::string &propertyName,
37  const std::string &description,
38  const std::string &className,
39  bool overwrite) override;
41  bool AddDescriptionRegEx(const std::string &propertyRegEx,
42  const std::string &description,
43  const std::string &className,
44  bool overwrite) override;
46  std::string GetDescription(const std::string &propertyName,
47  const std::string &className,
48  bool allowNameRegEx) const override;
50  bool HasDescription(const std::string &propertyName, const std::string &className, bool allowNameRegEx) const override;
52  void RemoveAllDescriptions(const std::string &className) override;
54  void RemoveDescription(const std::string &propertyName, const std::string &className) override;
55 
56  private:
57  typedef std::map<std::string, std::string> DescriptionMap;
58  typedef DescriptionMap::const_iterator DescriptionMapConstIterator;
59  typedef DescriptionMap::iterator DescriptionMapIterator;
60 
62  PropertyDescriptions &operator=(const PropertyDescriptions &);
63 
64  std::map<std::string, DescriptionMap> m_Descriptions;
65  std::map<std::string, DescriptionMap> m_DescriptionsRegEx;
66  };
67 }
68 
69 #endif
Interface of property descriptions service.
Implementation of the IPropertyDescriptions service interface.
bool AddDescription(const std::string &propertyName, const std::string &description, const std::string &className, bool overwrite) override
Add a description for a specific property.
void RemoveAllDescriptions(const std::string &className) override
Remove all descriptions.
std::string GetDescription(const std::string &propertyName, const std::string &className, bool allowNameRegEx) const override
Get the description for a specific property.
bool AddDescriptionRegEx(const std::string &propertyRegEx, const std::string &description, const std::string &className, bool overwrite) override
Add a description for all properties matching the property regular expression.
bool HasDescription(const std::string &propertyName, const std::string &className, bool allowNameRegEx) const override
Check if a specific property has a description.
void RemoveDescription(const std::string &propertyName, const std::string &className) override
Remove description of specific property.
Find image slices visible on a given plane.