Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkPropertyPersistence.h>
Public Types | |
typedef IPropertyPersistence::InfoResultType | InfoResultType |
Public Types inherited from mitk::IPropertyPersistence | |
using | InfoResultType = std::list< PropertyPersistenceInfo::ConstPointer > |
using | MimeTypeNameType = PropertyPersistenceInfo::MimeTypeNameType |
Public Member Functions | |
PropertyPersistence () | |
~PropertyPersistence () | |
bool | AddInfo (const PropertyPersistenceInfo *info, bool overwrite) override |
Add persistence info for a specific base data property. If there is already a property info instance for the passed property name and the same info, it won't be added. Info instances are regarded equal, if the mime types are equal. You may enforce to overwrite the old equal info for a property name by the overwrite parameter. More... | |
InfoResultType | GetInfo (const std::string &propertyName, bool allowNameRegEx) const override |
Get the persistence info for a specific base data property. More... | |
InfoResultType | GetInfo (const std::string &propertyName, const MimeTypeNameType &mime, bool allowMimeWildCard, bool allowNameRegEx) const override |
Get the persistence info for a specific base data property and mime type. More... | |
InfoResultType | GetInfoByKey (const std::string &persistenceKey, bool allowKeyRegEx) const override |
Get the persistence info that will use the specified key. More... | |
bool | HasInfo (const std::string &propertyName, bool allowNameRegEx) const override |
Check if a specific base data property has persistence info. More... | |
void | RemoveAllInfo () override |
Remove all persistence info. More... | |
void | RemoveInfo (const std::string &propertyName) override |
Remove persistence info instances of a specific property name/regex. More... | |
void | RemoveInfo (const std::string &propertyName, const MimeTypeNameType &mime) override |
Remove persistence info instances of a specific property name/regex and mime type. More... | |
Public Member Functions inherited from mitk::IPropertyPersistence | |
virtual | ~IPropertyPersistence () |
Definition at line 25 of file mitkPropertyPersistence.h.
Definition at line 31 of file mitkPropertyPersistence.h.
mitk::PropertyPersistence::PropertyPersistence | ( | ) |
Definition at line 23 of file mitkPropertyPersistence.cpp.
mitk::PropertyPersistence::~PropertyPersistence | ( | ) |
Definition at line 27 of file mitkPropertyPersistence.cpp.
|
overridevirtual |
Add persistence info for a specific base data property. If there is already a property info instance for the passed property name and the same info, it won't be added. Info instances are regarded equal, if the mime types are equal. You may enforce to overwrite the old equal info for a property name by the overwrite parameter.
[in] | propertyName | Name of the property. |
[in] | info | Persistence info of the property. |
[in] | overwrite | Overwrite already existing persistence info. |
Implements mitk::IPropertyPersistence.
Definition at line 31 of file mitkPropertyPersistence.cpp.
References mitk::PropertyPersistenceInfo::GetMimeTypeName(), mitk::PropertyPersistenceInfo::GetName(), and info().
|
overridevirtual |
Get the persistence info for a specific base data property.
[in] | propertyName | Name of the property. |
[in] | allowNameRegEx | Indicates if also added info instances with regexs are being checked. |
Implements mitk::IPropertyPersistence.
Definition at line 85 of file mitkPropertyPersistence.cpp.
|
overridevirtual |
Get the persistence info for a specific base data property and mime type.
[in] | propertyName | Name of the property. |
[in] | mime | Name of the mime type the info is specified for. |
[in] | allowMimeWildCard | Indicates if wildcard is allowed. If it is allowed, the method will first try to find the specified info. If no info was found but an info exists with the mime type name PropertyPersistenceInfo::ANY_MIMETYPE_NAME(), the later info will be returned as fall back option. |
[in] | allowNameRegEx | Indicates if also added info instances with regexs are being checked. |
Implements mitk::IPropertyPersistence.
Definition at line 143 of file mitkPropertyPersistence.cpp.
References mitk::PropertyPersistenceInfo::ANY_MIMETYPE_NAME(), infoPredicate(), and infoPredicateRegEx().
|
overridevirtual |
Get the persistence info that will use the specified key.
[in] | propertyName | Name of the property. |
[in] | allowKeyRegEx | Indicates if also added info instances with regexs for the key are being checked. |
Implements mitk::IPropertyPersistence.
Definition at line 192 of file mitkPropertyPersistence.cpp.
|
overridevirtual |
Check if a specific base data property has persistence info.
[in] | propertyName | Name of the property. |
[in] | allowNameRegEx | Indicates if also added info instances with regexs are being checked. |
Implements mitk::IPropertyPersistence.
Definition at line 218 of file mitkPropertyPersistence.cpp.
|
overridevirtual |
Remove all persistence info.
Implements mitk::IPropertyPersistence.
Definition at line 223 of file mitkPropertyPersistence.cpp.
|
overridevirtual |
Remove persistence info instances of a specific property name/regex.
[in] | propertyName | Registered name or regex that should be removed. |
Implements mitk::IPropertyPersistence.
Definition at line 229 of file mitkPropertyPersistence.cpp.
|
overridevirtual |
Remove persistence info instances of a specific property name/regex and mime type.
[in] | propertyName | Registered name or regex that should be removed. |
[in] | mime | Name of the mime type. |
Implements mitk::IPropertyPersistence.
Definition at line 237 of file mitkPropertyPersistence.cpp.