Serializes a mitk::PropertyList to an XML file.
More...
#include <mitkPropertyListSerializer.h>
Serializes a mitk::PropertyList to an XML file.
Iterates over all properties in the assigned PropertyList, uses the appropriate BasePropertySerializer for each property type (discovered via the ITK object factory), and writes the results as an XML file to the working directory.
Properties that cannot be serialized (no serializer found, serializer failure, etc.) are collected and can be retrieved via GetFailedProperties().
- See also
- BasePropertySerializer, SceneIO
Definition at line 43 of file mitkPropertyListSerializer.h.
◆ PropertyListSerializer()
| mitk::PropertyListSerializer::PropertyListSerializer |
( |
| ) |
|
|
protected |
◆ ~PropertyListSerializer()
| mitk::PropertyListSerializer::~PropertyListSerializer |
( |
| ) |
|
|
overrideprotected |
◆ Clone()
| Pointer mitk::PropertyListSerializer::Clone |
( |
| ) |
const |
◆ GetFailedProperties()
| PropertyList* mitk::PropertyListSerializer::GetFailedProperties |
( |
| ) |
|
Returns properties that failed to serialize during the last Serialize() call.
- Returns
- Pointer to a PropertyList containing all properties for which serialization failed, or nullptr if all properties were serialized successfully.
◆ GetFilenameHint()
| virtual const char* mitk::PropertyListSerializer::GetFilenameHint |
( |
| ) |
const |
|
virtual |
Returns the current filename hint.
◆ GetWorkingDirectory()
| virtual const char* mitk::PropertyListSerializer::GetWorkingDirectory |
( |
| ) |
const |
|
virtual |
Returns the current working directory.
◆ mitkClassMacroItkParent()
◆ New()
| static Pointer mitk::PropertyListSerializer::New |
( |
| ) |
|
|
static |
◆ Serialize()
| virtual std::string mitk::PropertyListSerializer::Serialize |
( |
| ) |
|
|
virtual |
◆ SerializeOneProperty()
| tinyxml2::XMLElement* mitk::PropertyListSerializer::SerializeOneProperty |
( |
tinyxml2::XMLDocument & |
doc, |
|
|
const std::string & |
key, |
|
|
const BaseProperty * |
property |
|
) |
| |
|
protected |
◆ SetFilenameHint()
| virtual void mitk::PropertyListSerializer::SetFilenameHint |
( |
const char * |
_arg | ) |
|
|
virtual |
Sets a hint for the output filename (without path or extension).
◆ SetPropertyList()
| virtual void mitk::PropertyListSerializer::SetPropertyList |
( |
PropertyList * |
_arg | ) |
|
|
virtual |
◆ SetWorkingDirectory()
| virtual void mitk::PropertyListSerializer::SetWorkingDirectory |
( |
const char * |
_arg | ) |
|
|
virtual |
Sets the working directory where the serialized XML file will be stored.
◆ m_FailedProperties
| PropertyList::Pointer mitk::PropertyListSerializer::m_FailedProperties |
|
protected |
◆ m_FilenameHint
| std::string mitk::PropertyListSerializer::m_FilenameHint |
|
protected |
◆ m_PropertyList
| PropertyList::Pointer mitk::PropertyListSerializer::m_PropertyList |
|
protected |
◆ m_WorkingDirectory
| std::string mitk::PropertyListSerializer::m_WorkingDirectory |
|
protected |
The documentation for this class was generated from the following file: