Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkPropertyAliases.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 mitkPropertyAliases_h
14 #define mitkPropertyAliases_h
15 
16 #include <map>
17 #include <mitkIPropertyAliases.h>
18 
19 namespace mitk
20 {
30  {
31  public:
33  ~PropertyAliases() override;
34 
36  bool AddAlias(const std::string &propertyName, const std::string &alias, const std::string &className) override;
38  std::vector<std::string> GetAliases(const std::string &propertyName, const std::string &className) override;
40  std::string GetPropertyName(const std::string &alias, const std::string &className) override;
42  bool HasAliases(const std::string &propertyName, const std::string &className) override;
44  void RemoveAlias(const std::string &propertyName, const std::string &alias, const std::string &className) override;
46  void RemoveAliases(const std::string &propertyName, const std::string &className) override;
48  void RemoveAllAliases(const std::string &className) override;
49 
50  private:
51  typedef std::map<std::string, std::vector<std::string>> AliasesMap;
52  typedef AliasesMap::const_iterator AliasesMapConstIterator;
53  typedef AliasesMap::iterator AliasesMapIterator;
54 
56  PropertyAliases &operator=(const PropertyAliases &);
57 
58  std::map<std::string, AliasesMap> m_Aliases;
59  };
60 }
61 
62 #endif
Interface of property aliases service.
Implementation of the IPropertyAliases service interface.
void RemoveAllAliases(const std::string &className) override
Remove all aliases of all properties.
std::string GetPropertyName(const std::string &alias, const std::string &className) override
Get property name that is associated to specific alias.
bool AddAlias(const std::string &propertyName, const std::string &alias, const std::string &className) override
Add an alias for a specific property.
std::vector< std::string > GetAliases(const std::string &propertyName, const std::string &className) override
Get aliases for a specific property.
bool HasAliases(const std::string &propertyName, const std::string &className) override
Check if a specific property has aliases.
~PropertyAliases() override
void RemoveAlias(const std::string &propertyName, const std::string &alias, const std::string &className) override
Remove specific alias of a certain property.
void RemoveAliases(const std::string &propertyName, const std::string &className) override
Remove all aliases of a specific property.
Find image slices visible on a given plane.