Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::PropertyAliases Class Reference

#include <mitkPropertyAliases.h>

Inheritance diagram for mitk::PropertyAliases:
Collaboration diagram for mitk::PropertyAliases:

Public Member Functions

 PropertyAliases ()
 
 ~PropertyAliases ()
 
bool AddAlias (const std::string &propertyName, const std::string &alias, const std::string &className) override
 Add an alias for a specific property. More...
 
std::vector< std::string > GetAliases (const std::string &propertyName, const std::string &className) override
 Get aliases for a specific property. More...
 
std::string GetPropertyName (const std::string &alias, const std::string &className) override
 Get property name that is associated to specific alias. More...
 
bool HasAliases (const std::string &propertyName, const std::string &className) override
 Check if a specific property has aliases. More...
 
void RemoveAlias (const std::string &propertyName, const std::string &alias, const std::string &className) override
 Remove specific alias of a certain property. More...
 
void RemoveAliases (const std::string &propertyName, const std::string &className) override
 Remove all aliases of a specific property. More...
 
void RemoveAllAliases (const std::string &className) override
 Remove all aliases of all properties. More...
 
- Public Member Functions inherited from mitk::IPropertyAliases
virtual ~IPropertyAliases ()
 

Detailed Description

Definition at line 25 of file mitkPropertyAliases.h.

Constructor & Destructor Documentation

mitk::PropertyAliases::PropertyAliases ( )

Definition at line 39 of file mitkPropertyAliases.cpp.

mitk::PropertyAliases::~PropertyAliases ( )

Definition at line 43 of file mitkPropertyAliases.cpp.

Member Function Documentation

bool mitk::PropertyAliases::AddAlias ( const std::string &  propertyName,
const std::string &  alias,
const std::string &  className 
)
overridevirtual

Add an alias for a specific property.

Parameters
[in]propertyNameName of the property.
[in]aliasAlias for the property.
[in]classNameOptional data node class name to which this alias is restricted.
Returns
False if alias is an empty string.

Implements mitk::IPropertyAliases.

Definition at line 47 of file mitkPropertyAliases.cpp.

std::vector< std::string > mitk::PropertyAliases::GetAliases ( const std::string &  propertyName,
const std::string &  className 
)
overridevirtual

Get aliases for a specific property.

Parameters
[in]propertyNameName of the property.
[in]classNameOptional data node class name to which the returned aliases are restricted.
Returns
Aliases that match the input criteria.

Implements mitk::IPropertyAliases.

Definition at line 70 of file mitkPropertyAliases.cpp.

std::string mitk::PropertyAliases::GetPropertyName ( const std::string &  alias,
const std::string &  className 
)
overridevirtual

Get property name that is associated to specific alias.

Parameters
[in]aliasAlias of the property.
[in]classNameOptional data node class name to which the alias is restricted.
Returns
Associated property name or empty string if no property name was found.

Implements mitk::IPropertyAliases.

Definition at line 85 of file mitkPropertyAliases.cpp.

bool mitk::PropertyAliases::HasAliases ( const std::string &  propertyName,
const std::string &  className 
)
overridevirtual

Check if a specific property has aliases.

Parameters
[in]propertyNameName of the property.
[in]classNameOptional data node class name to which the aliases are restricted.
Returns
True if the property has aliases, false otherwise.

Implements mitk::IPropertyAliases.

Definition at line 99 of file mitkPropertyAliases.cpp.

void mitk::PropertyAliases::RemoveAlias ( const std::string &  propertyName,
const std::string &  alias,
const std::string &  className 
)
overridevirtual

Remove specific alias of a certain property.

Parameters
[in]propertyNameName of the property.
[in]aliasAlias of the property.
[in]classNameOptional data node class name to which the alias is restricted.

Implements mitk::IPropertyAliases.

Definition at line 106 of file mitkPropertyAliases.cpp.

void mitk::PropertyAliases::RemoveAliases ( const std::string &  propertyName,
const std::string &  className 
)
overridevirtual

Remove all aliases of a specific property.

Parameters
[in]propertyNameName of the property.
[in]classNameOptional data node class name to which the aliases are restricted.

Implements mitk::IPropertyAliases.

Definition at line 130 of file mitkPropertyAliases.cpp.

void mitk::PropertyAliases::RemoveAllAliases ( const std::string &  className)
overridevirtual

Remove all aliases of all properties.

Parameters
[in]classNameOptional data node class name to which the removal is restricted.

Implements mitk::IPropertyAliases.

Definition at line 139 of file mitkPropertyAliases.cpp.


The documentation for this class was generated from the following files: