Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
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>
Public Types | |
using | DeserializationFunctionType = std::function< mitk::BaseProperty::Pointer(const std::string &)> |
using | SerializationFunctionType = std::function< std::string(const mitk::BaseProperty *)> |
using | MimeTypeNameType = std::string |
typedef PropertyPersistenceInfo | Self |
typedef itk::LightObject | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
std::string | GetName () const |
std::string | GetKey () const |
void | SetName (const std::string &name) |
void | SetNameAndKey (const std::string &name, const std::string &key) |
bool | IsRegEx () const |
void | UseRegEx (const std::string &nameRegEx, const std::string &nameTemplate) |
void | UseRegEx (const std::string &nameRegEx, const std::string &nameTemplate, const std::string &keyRegEx, const std::string keyTemplate) |
const std::string & | GetKeyTemplate () const |
const std::string & | GetNameTemplate () const |
const MimeTypeNameType & | GetMimeTypeName () const |
void | SetMimeTypeName (const MimeTypeNameType &mimeTypeName) |
const DeserializationFunctionType | GetDeserializationFunction () const |
void | SetDeserializationFunction (const DeserializationFunctionType &fnc) |
const SerializationFunctionType | GetSerializationFunction () const |
void | SetSerializationFunction (const SerializationFunctionType &fnc) |
PropertyPersistenceInfo::Pointer | UnRegExByName (const std::string &propertyName) const |
PropertyPersistenceInfo::Pointer | UnRegExByKey (const std::string &key) const |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
static Pointer | New (const std::string &_arg) |
static Pointer | New (const std::string &_arga, const std::string &_argb) |
static MimeTypeNameType | ANY_MIMETYPE_NAME () |
Protected Member Functions | |
PropertyPersistenceInfo (const std::string &name="") | |
Constructor. More... | |
PropertyPersistenceInfo (const std::string &name, const std::string &mimeTypeName) | |
Constructor. More... | |
~PropertyPersistenceInfo () override | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
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.
typedef itk::SmartPointer<const Self> mitk::PropertyPersistenceInfo::ConstPointer |
Definition at line 41 of file mitkPropertyPersistenceInfo.h.
using mitk::PropertyPersistenceInfo::DeserializationFunctionType = std::function<mitk::BaseProperty::Pointer(const std::string &)> |
Signature specification for functions that can be provided for deserialization of the property.
Definition at line 37 of file mitkPropertyPersistenceInfo.h.
using mitk::PropertyPersistenceInfo::MimeTypeNameType = std::string |
Definition at line 39 of file mitkPropertyPersistenceInfo.h.
Definition at line 41 of file mitkPropertyPersistenceInfo.h.
Definition at line 41 of file mitkPropertyPersistenceInfo.h.
using mitk::PropertyPersistenceInfo::SerializationFunctionType = std::function<std::string(const mitk::BaseProperty *)> |
Definition at line 38 of file mitkPropertyPersistenceInfo.h.
typedef itk::LightObject mitk::PropertyPersistenceInfo::Superclass |
Definition at line 41 of file mitkPropertyPersistenceInfo.h.
|
protected |
Constructor.
[in] | name | Name is the name of the property that described by the info. Key will be the same. |
|
protected |
Constructor.
[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. |
|
overrideprotected |
|
static |
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.
Pointer mitk::PropertyPersistenceInfo::Clone | ( | ) | const |
|
inlinevirtual |
Definition at line 41 of file mitkPropertyPersistenceInfo.h.
|
virtual |
const DeserializationFunctionType mitk::PropertyPersistenceInfo::GetDeserializationFunction | ( | ) | const |
std::string mitk::PropertyPersistenceInfo::GetKey | ( | ) | const |
const std::string& mitk::PropertyPersistenceInfo::GetKeyTemplate | ( | ) | const |
const MimeTypeNameType& mitk::PropertyPersistenceInfo::GetMimeTypeName | ( | ) | const |
std::string mitk::PropertyPersistenceInfo::GetName | ( | ) | const |
const std::string& mitk::PropertyPersistenceInfo::GetNameTemplate | ( | ) | const |
const SerializationFunctionType mitk::PropertyPersistenceInfo::GetSerializationFunction | ( | ) | const |
|
inlinestatic |
Definition at line 41 of file mitkPropertyPersistenceInfo.h.
bool mitk::PropertyPersistenceInfo::IsRegEx | ( | ) | const |
|
static |
|
inlinestatic |
Definition at line 43 of file mitkPropertyPersistenceInfo.h.
|
inlinestatic |
Definition at line 44 of file mitkPropertyPersistenceInfo.h.
|
overrideprotected |
void mitk::PropertyPersistenceInfo::SetDeserializationFunction | ( | const DeserializationFunctionType & | fnc | ) |
void mitk::PropertyPersistenceInfo::SetMimeTypeName | ( | const MimeTypeNameType & | mimeTypeName | ) |
void mitk::PropertyPersistenceInfo::SetName | ( | const std::string & | name | ) |
void mitk::PropertyPersistenceInfo::SetNameAndKey | ( | const std::string & | name, |
const std::string & | key | ||
) |
void mitk::PropertyPersistenceInfo::SetSerializationFunction | ( | const SerializationFunctionType & | fnc | ) |
PropertyPersistenceInfo::Pointer mitk::PropertyPersistenceInfo::UnRegExByKey | ( | const std::string & | key | ) | const |
PropertyPersistenceInfo::Pointer mitk::PropertyPersistenceInfo::UnRegExByName | ( | const std::string & | propertyName | ) | const |
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.
void mitk::PropertyPersistenceInfo::UseRegEx | ( | const std::string & | nameRegEx, |
const std::string & | nameTemplate, | ||
const std::string & | keyRegEx, | ||
const std::string | keyTemplate | ||
) |