Property persistence info. This class is used to specify the way the persistance of a property of BaseData derived instances is handled. The info specifies the key for property, as well as the mime type the info is defined for and should be used. Additionally the functions for deserialization and serialization of the property can be defined. As default.
More...
#include <mitkPropertyPersistenceInfo.h>
Property persistence info. This class is used to specify the way the persistance of a property of BaseData derived instances is handled. The info specifies the key for property, as well as the mime type the info is defined for and should be used. Additionally the functions for deserialization and serialization of the property can be defined. As default.
Definition at line 32 of file mitkPropertyPersistenceInfo.h.
◆ DeserializationFunctionType
◆ MimeTypeNameType
◆ SerializationFunctionType
◆ PropertyPersistenceInfo() [1/2]
| mitk::PropertyPersistenceInfo::PropertyPersistenceInfo |
( |
const std::string & |
name = "" | ) |
|
|
protected |
Constructor.
- Parameters
-
| [in] | name | Name is the name of the property that described by the info. Key will be the same. |
◆ PropertyPersistenceInfo() [2/2]
| mitk::PropertyPersistenceInfo::PropertyPersistenceInfo |
( |
const std::string & |
name, |
|
|
const std::string & |
mimeTypeName |
|
) |
| |
|
protected |
Constructor.
- Parameters
-
| [in] | name | Name is the name of the property that described by the info. Key will be the same. |
| [in] | mimeTypeName | mime type the info is defined for. |
◆ ~PropertyPersistenceInfo()
| mitk::PropertyPersistenceInfo::~PropertyPersistenceInfo |
( |
| ) |
|
|
overrideprotected |
◆ ANY_MIMETYPE_NAME()
This mime type name indicates that a info can be used for any mime type as long as another info with a more specific mime type is not available.
◆ Clone()
| Pointer mitk::PropertyPersistenceInfo::Clone |
( |
| ) |
const |
◆ GetDeserializationFunction()
◆ GetKey()
| std::string mitk::PropertyPersistenceInfo::GetKey |
( |
| ) |
const |
◆ GetKeyTemplate()
| const std::string& mitk::PropertyPersistenceInfo::GetKeyTemplate |
( |
| ) |
const |
◆ GetMimeTypeName()
| const MimeTypeNameType& mitk::PropertyPersistenceInfo::GetMimeTypeName |
( |
| ) |
const |
◆ GetName()
| std::string mitk::PropertyPersistenceInfo::GetName |
( |
| ) |
const |
◆ GetNameTemplate()
| const std::string& mitk::PropertyPersistenceInfo::GetNameTemplate |
( |
| ) |
const |
◆ GetSerializationFunction()
◆ IsRegEx()
| bool mitk::PropertyPersistenceInfo::IsRegEx |
( |
| ) |
const |
◆ mitkClassMacroItkParent()
◆ mitkNewMacro1Param()
| mitk::PropertyPersistenceInfo::mitkNewMacro1Param |
( |
Self |
, |
|
|
const std::string & |
|
|
) |
| |
◆ mitkNewMacro2Param()
| mitk::PropertyPersistenceInfo::mitkNewMacro2Param |
( |
Self |
, |
|
|
const std::string & |
, |
|
|
const std::string & |
|
|
) |
| |
◆ New()
| static Pointer mitk::PropertyPersistenceInfo::New |
( |
| ) |
|
|
static |
◆ PrintSelf()
| void mitk::PropertyPersistenceInfo::PrintSelf |
( |
std::ostream & |
os, |
|
|
itk::Indent |
indent |
|
) |
| const |
|
overrideprotected |
◆ SetDeserializationFunction()
◆ SetMimeTypeName()
| void mitk::PropertyPersistenceInfo::SetMimeTypeName |
( |
const MimeTypeNameType & |
mimeTypeName | ) |
|
◆ SetName()
| void mitk::PropertyPersistenceInfo::SetName |
( |
const std::string & |
name | ) |
|
◆ SetNameAndKey()
| void mitk::PropertyPersistenceInfo::SetNameAndKey |
( |
const std::string & |
name, |
|
|
const std::string & |
key |
|
) |
| |
◆ SetSerializationFunction()
◆ UnRegExByKey()
| PropertyPersistenceInfo::Pointer mitk::PropertyPersistenceInfo::UnRegExByKey |
( |
const std::string & |
key | ) |
const |
◆ UnRegExByName()
| PropertyPersistenceInfo::Pointer mitk::PropertyPersistenceInfo::UnRegExByName |
( |
const std::string & |
propertyName | ) |
const |
◆ UseRegEx() [1/2]
| void mitk::PropertyPersistenceInfo::UseRegEx |
( |
const std::string & |
nameRegEx, |
|
|
const std::string & |
nameTemplate |
|
) |
| |
Sets the name and the key identifier as a regular expression that describes valid names and keys.
- Precondition
- nameRegEx must be a valid regular expression, otherwise a regex_error esception is thrown and the info object is not changed.
-
keyRegEx must be a valid regular expression, otherwise a regex_error esception is thrown and the info object is not changed.
◆ UseRegEx() [2/2]
| void mitk::PropertyPersistenceInfo::UseRegEx |
( |
const std::string & |
nameRegEx, |
|
|
const std::string & |
nameTemplate, |
|
|
const std::string & |
keyRegEx, |
|
|
const std::string |
keyTemplate |
|
) |
| |
The documentation for this class was generated from the following file: