Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Interface of property persistence service. More...
#include <mitkIPropertyPersistence.h>
Public Types | |
using | InfoResultType = std::list< PropertyPersistenceInfo::ConstPointer > |
using | MimeTypeNameType = PropertyPersistenceInfo::MimeTypeNameType |
Public Member Functions | |
virtual | ~IPropertyPersistence () |
virtual bool | AddInfo (const PropertyPersistenceInfo *info, bool overwrite=false)=0 |
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... | |
virtual InfoResultType | GetInfo (const std::string &propertyName, bool allowNameRegEx=true) const =0 |
Get the persistence info for a specific base data property. More... | |
virtual InfoResultType | GetInfo (const std::string &propertyName, const MimeTypeNameType &mime, bool allowMimeWildCard=false, bool allowNameRegEx=true) const =0 |
Get the persistence info for a specific base data property and mime type. More... | |
virtual InfoResultType | GetInfoByKey (const std::string &persistenceKey, bool allowKeyRegEx=true) const =0 |
Get the persistence info that will use the specified key. More... | |
virtual bool | HasInfo (const std::string &propertyName, bool allowNameRegEx=true) const =0 |
Check if a specific base data property has persistence info. More... | |
virtual void | RemoveAllInfo ()=0 |
Remove all persistence info. More... | |
virtual void | RemoveInfo (const std::string &propertyName)=0 |
Remove persistence info instances of a specific property name/regex. More... | |
virtual void | RemoveInfo (const std::string &propertyName, const MimeTypeNameType &mime)=0 |
Remove persistence info instances of a specific property name/regex and mime type. More... | |
Interface of property persistence service.
This service allows you to manage persistence info for base data properties. Persistent properties will be saved if the file format supports custom key value pairs like the .nrrd file format.
Definition at line 38 of file mitkIPropertyPersistence.h.
using mitk::IPropertyPersistence::InfoResultType = std::list<PropertyPersistenceInfo::ConstPointer> |
Definition at line 43 of file mitkIPropertyPersistence.h.
Definition at line 44 of file mitkIPropertyPersistence.h.
|
virtual |
Definition at line 19 of file mitkIPropertyPersistence.cpp.
|
pure virtual |
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. |
Implemented in mitk::PropertyPersistence.
Referenced by mitk::DICOMTagsOfInterestService::AddTagOfInterest(), and mitk::ItkImageIO::Read().
|
pure virtual |
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. |
Implemented in mitk::PropertyPersistence.
Referenced by mitk::ItkImageIO::Write().
|
pure virtual |
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. |
Implemented in mitk::PropertyPersistence.
|
pure virtual |
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. |
Implemented in mitk::PropertyPersistence.
Referenced by mitk::ItkImageIO::Read().
|
pure virtual |
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. |
Implemented in mitk::PropertyPersistence.
|
pure virtual |
Remove all persistence info.
Implemented in mitk::PropertyPersistence.
|
pure virtual |
Remove persistence info instances of a specific property name/regex.
[in] | propertyName | Registered name or regex that should be removed. |
Implemented in mitk::PropertyPersistence.
Referenced by mitk::DICOMTagsOfInterestService::RemoveAllTags(), and mitk::DICOMTagsOfInterestService::RemoveTag().
|
pure virtual |
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. |
Implemented in mitk::PropertyPersistence.