13 #ifndef mitkPropertyPersistenceInfo_h
14 #define mitkPropertyPersistenceInfo_h
22 #include <itkObjectFactory.h>
42 itkFactorylessNewMacro(Self);
58 void UseRegEx(
const std::string &nameRegEx,
const std::string &nameTemplate);
60 const std::string &nameTemplate,
61 const std::string &keyRegEx,
62 const std::string keyTemplate);
76 PropertyPersistenceInfo::Pointer
UnRegExByName(
const std::string &propertyName)
const;
77 PropertyPersistenceInfo::Pointer
UnRegExByKey(
const std::string &key)
const;
99 void PrintSelf(std::ostream &os, itk::Indent indent)
const override;
103 Self &operator=(
const Self &other);
111 namespace PropertyPersistenceSerialization
117 namespace PropertyPersistenceDeserialization
Abstract base class for properties.
Property persistence info. This class is used to specify the way the persistance of a property of Bas...
const DeserializationFunctionType GetDeserializationFunction() const
const MimeTypeNameType & GetMimeTypeName() const
void SetName(const std::string &name)
std::string GetKey() const
std::function< mitk::BaseProperty::Pointer(const std::string &)> DeserializationFunctionType
void SetMimeTypeName(const MimeTypeNameType &mimeTypeName)
PropertyPersistenceInfo::Pointer UnRegExByName(const std::string &propertyName) const
const SerializationFunctionType GetSerializationFunction() const
PropertyPersistenceInfo(const std::string &name="")
Constructor.
std::function< std::string(const mitk::BaseProperty *)> SerializationFunctionType
void PrintSelf(std::ostream &os, itk::Indent indent) const override
std::string GetName() const
const std::string & GetKeyTemplate() const
PropertyPersistenceInfo(const std::string &name, const std::string &mimeTypeName)
Constructor.
void UseRegEx(const std::string &nameRegEx, const std::string &nameTemplate)
mitkNewMacro2Param(Self, const std::string &, const std::string &)
std::string MimeTypeNameType
void SetNameAndKey(const std::string &name, const std::string &key)
void SetDeserializationFunction(const DeserializationFunctionType &fnc)
PropertyPersistenceInfo::Pointer UnRegExByKey(const std::string &key) const
const std::string & GetNameTemplate() const
~PropertyPersistenceInfo() override
static MimeTypeNameType ANY_MIMETYPE_NAME()
mitkClassMacroItkParent(PropertyPersistenceInfo, itk::LightObject)
void SetSerializationFunction(const SerializationFunctionType &fnc)
void UseRegEx(const std::string &nameRegEx, const std::string &nameTemplate, const std::string &keyRegEx, const std::string keyTemplate)
#define mitkNewMacro1Param(classname, type)
MITKCORE_EXPORT mitk::BaseProperty::Pointer deserializeToStringProperty(const std::string &value)
MITKCORE_EXPORT::std::string serializeByGetValueAsString(const mitk::BaseProperty *prop)
Find image slices visible on a given plane.
MITKCORE_EXPORT std::ostream & operator<<(std::ostream &o, DataNode::Pointer &dtn)