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

#include <mitkPropertyDescriptions.h>

Inheritance diagram for mitk::PropertyDescriptions:
Collaboration diagram for mitk::PropertyDescriptions:

Public Member Functions

 PropertyDescriptions ()
 
 ~PropertyDescriptions ()
 
bool AddDescription (const std::string &propertyName, const std::string &description, const std::string &className, bool overwrite) override
 Add a description for a specific property. More...
 
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 regulary expression. More...
 
std::string GetDescription (const std::string &propertyName, const std::string &className, bool overwrite) const override
 Get the description for a specific property. More...
 
bool HasDescription (const std::string &propertyName, const std::string &className, bool overwrite) const override
 Check if a specific property has a description. More...
 
void RemoveAllDescriptions (const std::string &className) override
 Remove all descriptions. More...
 
void RemoveDescription (const std::string &propertyName, const std::string &className) override
 Remove description of specific property. More...
 
- Public Member Functions inherited from mitk::IPropertyDescriptions
virtual ~IPropertyDescriptions ()
 

Detailed Description

Definition at line 25 of file mitkPropertyDescriptions.h.

Constructor & Destructor Documentation

mitk::PropertyDescriptions::PropertyDescriptions ( )

Definition at line 22 of file mitkPropertyDescriptions.cpp.

mitk::PropertyDescriptions::~PropertyDescriptions ( )

Definition at line 26 of file mitkPropertyDescriptions.cpp.

Member Function Documentation

bool mitk::PropertyDescriptions::AddDescription ( const std::string &  propertyName,
const std::string &  description,
const std::string &  className,
bool  overwrite 
)
overridevirtual

Add a description for a specific property.

Parameters
[in]propertyNameName of the property.
[in]descriptionDescription of the property.
[in]classNameOptional data node class name to which this description is restricted.
[in]overwriteOverwrite already existing description.
Returns
True if description was added successfully.

Implements mitk::IPropertyDescriptions.

Definition at line 30 of file mitkPropertyDescriptions.cpp.

bool mitk::PropertyDescriptions::AddDescriptionRegEx ( const std::string &  propertyRegEx,
const std::string &  description,
const std::string &  className,
bool  overwrite 
)
overridevirtual

Add a description for all properties matching the property regulary expression.

Parameters
[in]propertyRegExString of the regular expression specifing all relevant property names.
[in]descriptionDescription of the property.
[in]classNameOptional data node class name to which this description is restricted.
[in]overwriteOverwrite already existing description.
Returns
True if description was added successfully.

Implements mitk::IPropertyDescriptions.

Definition at line 50 of file mitkPropertyDescriptions.cpp.

std::string mitk::PropertyDescriptions::GetDescription ( const std::string &  propertyName,
const std::string &  className,
bool  allowNameRegEx 
) const
overridevirtual

Get the description for a specific property.

Parameters
[in]propertyNameName of the property.
[in]classNameOptional data node class name to which the returned description is restricted.
[in]allowNameRegExIndicates of also regular expressions should be regarded.
Returns
Property description or empty string if no description is available.

Implements mitk::IPropertyDescriptions.

Definition at line 79 of file mitkPropertyDescriptions.cpp.

bool mitk::PropertyDescriptions::HasDescription ( const std::string &  propertyName,
const std::string &  className,
bool  allowNameRegEx 
) const
overridevirtual

Check if a specific property has a description.

Parameters
[in]propertyNameName of the property.
[in]classNameOptional data node class name to which this description is restricted.
[in]allowNameRegExIndicates of also regular expressions should be regarded.
Returns
True if the property has a description, false otherwise.

Implements mitk::IPropertyDescriptions.

Definition at line 117 of file mitkPropertyDescriptions.cpp.

void mitk::PropertyDescriptions::RemoveAllDescriptions ( const std::string &  className)
overridevirtual

Remove all descriptions.

Parameters
[in]classNameOptional data node class name to which this description is restricted.

Implements mitk::IPropertyDescriptions.

Definition at line 155 of file mitkPropertyDescriptions.cpp.

void mitk::PropertyDescriptions::RemoveDescription ( const std::string &  propertyName,
const std::string &  className 
)
overridevirtual

Remove description of specific property.

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

Implements mitk::IPropertyDescriptions.

Definition at line 161 of file mitkPropertyDescriptions.cpp.


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