Deserializes a mitk::PropertyList from an XML file.
More...
#include <mitkPropertyListDeserializer.h>
Deserializes a mitk::PropertyList from an XML file.
Acts as a version-dispatching base class for property list deserialization. When Deserialize() is called, it reads the file version from the XML document and instantiates the appropriate versioned deserializer (e.g., PropertyListDeserializerV1) through the ITK object factory mechanism. The deserialized PropertyList can then be retrieved via GetOutput().
- See also
- PropertyListDeserializerV1, PropertyListSerializer, SceneIO
Definition at line 31 of file mitkPropertyListDeserializer.h.
◆ PropertyListDeserializer()
| mitk::PropertyListDeserializer::PropertyListDeserializer |
( |
| ) |
|
|
protected |
◆ ~PropertyListDeserializer()
| mitk::PropertyListDeserializer::~PropertyListDeserializer |
( |
| ) |
|
|
overrideprotected |
◆ Clone()
| Pointer mitk::PropertyListDeserializer::Clone |
( |
| ) |
const |
◆ Deserialize()
| virtual bool mitk::PropertyListDeserializer::Deserialize |
( |
| ) |
|
|
virtual |
Read a PropertyList from the configured XML file.
Parses the file to determine its version, then delegates to the appropriate versioned deserializer found via the ITK object factory. The result can be retrieved with GetOutput().
- Returns
- True if deserialization succeeded, false otherwise.
- Precondition
- The Filename must be set to a valid XML file path.
Reimplemented in mitk::PropertyListDeserializerV1.
◆ GetFilename()
| virtual const char* mitk::PropertyListDeserializer::GetFilename |
( |
| ) |
const |
|
virtual |
Get the filename of the XML file to deserialize.
◆ GetOutput()
| virtual PropertyList::Pointer mitk::PropertyListDeserializer::GetOutput |
( |
| ) |
|
|
virtual |
◆ mitkClassMacroItkParent()
◆ New()
| static Pointer mitk::PropertyListDeserializer::New |
( |
| ) |
|
|
static |
◆ SetFilename()
| virtual void mitk::PropertyListDeserializer::SetFilename |
( |
const char * |
_arg | ) |
|
|
virtual |
Set the filename of the XML file to deserialize.
◆ m_Filename
| std::string mitk::PropertyListDeserializer::m_Filename |
|
protected |
◆ m_PropertyList
| PropertyList::Pointer mitk::PropertyListDeserializer::m_PropertyList |
|
protected |
The documentation for this class was generated from the following file: