Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::PropertyListDeserializerV1 Class Reference

Deserializes a version 1 mitk::PropertyList from an XML file. More...

#include <mitkPropertyListDeserializerV1.h>

Inheritance diagram for mitk::PropertyListDeserializerV1:
Collaboration diagram for mitk::PropertyListDeserializerV1:

Public Member Functions

 mitkClassMacro (PropertyListDeserializerV1, PropertyListDeserializer)
 
Pointer Clone () const
 
bool Deserialize () override
 Read a version 1 PropertyList from the configured XML file. More...
 
- Public Member Functions inherited from mitk::PropertyListDeserializer
 mitkClassMacroItkParent (PropertyListDeserializer, itk::Object)
 
Pointer Clone () const
 
virtual void SetFilename (const char *_arg)
 Set the filename of the XML file to deserialize. More...
 
virtual const char * GetFilename () const
 Get the filename of the XML file to deserialize. More...
 
virtual PropertyList::Pointer GetOutput ()
 Retrieve the deserialized PropertyList. More...
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from mitk::PropertyListDeserializer
static Pointer New ()
 

Protected Member Functions

 PropertyListDeserializerV1 ()
 
 ~PropertyListDeserializerV1 () override
 
- Protected Member Functions inherited from mitk::PropertyListDeserializer
 PropertyListDeserializer ()
 
 ~PropertyListDeserializer () override
 

Additional Inherited Members

- Protected Attributes inherited from mitk::PropertyListDeserializer
std::string m_Filename
 Path to the XML file to deserialize. More...
 
PropertyList::Pointer m_PropertyList
 The deserialized property list. More...
 

Detailed Description

Deserializes a version 1 mitk::PropertyList from an XML file.

Implements the deserialization logic for property list XML files with FileVersion 1. Iterates over all <property> elements in the XML, looks up the appropriate BasePropertySerializer for each property type via the ITK object factory, and reassembles the PropertyList. The result can be retrieved via GetOutput().

This class is registered with the ITK object factory using MITK_REGISTER_SERIALIZER so it can be discovered automatically by PropertyListDeserializer.

See also
PropertyListDeserializer, BasePropertySerializer

Definition at line 35 of file mitkPropertyListDeserializerV1.h.

Constructor & Destructor Documentation

◆ PropertyListDeserializerV1()

mitk::PropertyListDeserializerV1::PropertyListDeserializerV1 ( )
protected

◆ ~PropertyListDeserializerV1()

mitk::PropertyListDeserializerV1::~PropertyListDeserializerV1 ( )
overrideprotected

Member Function Documentation

◆ Clone()

Pointer mitk::PropertyListDeserializerV1::Clone ( ) const

◆ Deserialize()

bool mitk::PropertyListDeserializerV1::Deserialize ( )
overridevirtual

Read a version 1 PropertyList from the configured XML file.

Parses each <property> element, instantiates the corresponding serializer based on the type attribute, and deserializes the property value. The resulting PropertyList can be retrieved via GetOutput().

Returns
True if all properties were deserialized successfully, false if any errors occurred.
Precondition
The Filename must be set to a valid version 1 property list XML file.

Reimplemented from mitk::PropertyListDeserializer.

◆ mitkClassMacro()

mitk::PropertyListDeserializerV1::mitkClassMacro ( PropertyListDeserializerV1  ,
PropertyListDeserializer   
)

◆ New()

static Pointer mitk::PropertyListDeserializerV1::New ( )
static

The documentation for this class was generated from the following file: