Medical Imaging Interaction Toolkit  2024.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 {
22  {
23  public:
25  ~PropertyAliases() override;
26 
27  bool AddAlias(const std::string &propertyName, const std::string &alias, const std::string &className) override;
28  std::vector<std::string> GetAliases(const std::string &propertyName, const std::string &className) override;
29  std::string GetPropertyName(const std::string &alias, const std::string &className) override;
30  bool HasAliases(const std::string &propertyName, const std::string &className) override;
31  void RemoveAlias(const std::string &propertyName, const std::string &alias, const std::string &className) override;
32  void RemoveAliases(const std::string &propertyName, const std::string &className) override;
33  void RemoveAllAliases(const std::string &className) override;
34 
35  private:
36  typedef std::map<std::string, std::vector<std::string>> AliasesMap;
37  typedef AliasesMap::const_iterator AliasesMapConstIterator;
38  typedef AliasesMap::iterator AliasesMapIterator;
39 
41  PropertyAliases &operator=(const PropertyAliases &);
42 
43  std::map<std::string, AliasesMap> m_Aliases;
44  };
45 }
46 
47 #endif
mitk::PropertyAliases::PropertyAliases
PropertyAliases()
mitk::IPropertyAliases
Interface of property aliases service.
Definition: mitkIPropertyAliases.h:31
mitk::PropertyAliases::AddAlias
bool AddAlias(const std::string &propertyName, const std::string &alias, const std::string &className) override
Add an alias for a specific property.
mitk::PropertyAliases
Definition: mitkPropertyAliases.h:21
mitk::PropertyAliases::RemoveAlias
void RemoveAlias(const std::string &propertyName, const std::string &alias, const std::string &className) override
Remove specific alias of a certain property.
mitk::PropertyAliases::GetPropertyName
std::string GetPropertyName(const std::string &alias, const std::string &className) override
Get property name that is associated to specific alias.
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::PropertyAliases::~PropertyAliases
~PropertyAliases() override
mitk::PropertyAliases::RemoveAllAliases
void RemoveAllAliases(const std::string &className) override
Remove all aliases of all properties.
mitk::PropertyAliases::HasAliases
bool HasAliases(const std::string &propertyName, const std::string &className) override
Check if a specific property has aliases.
mitk::PropertyAliases::GetAliases
std::vector< std::string > GetAliases(const std::string &propertyName, const std::string &className) override
Get aliases for a specific property.
mitk::PropertyAliases::RemoveAliases
void RemoveAliases(const std::string &propertyName, const std::string &className) override
Remove all aliases of a specific property.
mitkIPropertyAliases.h