17 #ifndef mitkPropertyAliases_h
18 #define mitkPropertyAliases_h
31 bool AddAlias(
const std::string &propertyName,
const std::string &alias,
const std::string &className)
override;
32 std::vector<std::string>
GetAliases(
const std::string &propertyName,
const std::string &className)
override;
33 std::string
GetPropertyName(
const std::string &alias,
const std::string &className)
override;
34 bool HasAliases(
const std::string &propertyName,
const std::string &className)
override;
35 void RemoveAlias(
const std::string &propertyName,
const std::string &alias,
const std::string &className)
override;
36 void RemoveAliases(
const std::string &propertyName,
const std::string &className)
override;
40 typedef std::map<std::string, std::vector<std::string>> AliasesMap;
41 typedef AliasesMap::const_iterator AliasesMapConstIterator;
42 typedef AliasesMap::iterator AliasesMapIterator;
47 std::map<std::string, AliasesMap> m_Aliases;
std::string GetPropertyName(const std::string &alias, const std::string &className) override
Get property name that is associated to specific alias.
Interface of property aliases service.
DataCollection - Class to facilitate loading/accessing structured data.
bool HasAliases(const std::string &propertyName, const std::string &className) override
Check if a specific property has aliases.
bool AddAlias(const std::string &propertyName, const std::string &alias, const std::string &className) override
Add an alias for a specific property.
void RemoveAliases(const std::string &propertyName, const std::string &className) override
Remove all aliases of a specific property.
std::vector< std::string > GetAliases(const std::string &propertyName, const std::string &className) override
Get aliases for a specific property.
void RemoveAlias(const std::string &propertyName, const std::string &alias, const std::string &className) override
Remove specific alias of a certain property.
void RemoveAllAliases(const std::string &className) override
Remove all aliases of all properties.