Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitk::PropertyListSerializer Class Reference

Serializes a mitk::PropertyList. More...

#include <mitkPropertyListSerializer.h>

Inheritance diagram for mitk::PropertyListSerializer:
Collaboration diagram for mitk::PropertyListSerializer:

Public Member Functions

 mitkClassMacroItkParent (PropertyListSerializer, itk::Object)
 
Pointer Clone () const
 
virtual void SetFilenameHint (const char *_arg)
 
virtual const char * GetFilenameHint () const
 
virtual void SetWorkingDirectory (const char *_arg)
 
virtual const char * GetWorkingDirectory () const
 
virtual void SetPropertyList (PropertyList *_arg)
 
virtual std::string Serialize ()
 Serializes given PropertyList object. More...
 
PropertyListGetFailedProperties ()
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 PropertyListSerializer ()
 
 ~PropertyListSerializer () override
 
TiXmlElement * SerializeOneProperty (const std::string &key, const BaseProperty *property)
 

Protected Attributes

std::string m_FilenameHint
 
std::string m_WorkingDirectory
 
PropertyList::Pointer m_PropertyList
 
PropertyList::Pointer m_FailedProperties
 

Detailed Description

Serializes a mitk::PropertyList.

Definition at line 29 of file mitkPropertyListSerializer.h.

Constructor & Destructor Documentation

◆ PropertyListSerializer()

mitk::PropertyListSerializer::PropertyListSerializer ( )
protected

Definition at line 21 of file mitkPropertyListSerializer.cpp.

◆ ~PropertyListSerializer()

mitk::PropertyListSerializer::~PropertyListSerializer ( )
overrideprotected

Definition at line 25 of file mitkPropertyListSerializer.cpp.

Member Function Documentation

◆ Clone()

Pointer mitk::PropertyListSerializer::Clone ( ) const

◆ GetFailedProperties()

mitk::PropertyList * mitk::PropertyListSerializer::GetFailedProperties ( )

Definition at line 161 of file mitkPropertyListSerializer.cpp.

References m_FailedProperties.

◆ GetFilenameHint()

virtual const char* mitk::PropertyListSerializer::GetFilenameHint ( ) const
virtual

◆ GetWorkingDirectory()

virtual const char* mitk::PropertyListSerializer::GetWorkingDirectory ( ) const
virtual

◆ mitkClassMacroItkParent()

mitk::PropertyListSerializer::mitkClassMacroItkParent ( PropertyListSerializer  ,
itk::Object   
)

◆ New()

static Pointer mitk::PropertyListSerializer::New ( )
static

◆ Serialize()

std::string mitk::PropertyListSerializer::Serialize ( )
virtual

Serializes given PropertyList object.

Returns
the filename of the newly created file.

Definition at line 29 of file mitkPropertyListSerializer.cpp.

References m_FailedProperties, m_PropertyList, m_WorkingDirectory, MITK_ERROR, mitk::PropertyList::New(), and SerializeOneProperty().

◆ SerializeOneProperty()

TiXmlElement * mitk::PropertyListSerializer::SerializeOneProperty ( const std::string &  key,
const BaseProperty property 
)
protected

Definition at line 101 of file mitkPropertyListSerializer.cpp.

References m_FailedProperties, MITK_ERROR, and MITK_WARN.

Referenced by Serialize().

◆ SetFilenameHint()

virtual void mitk::PropertyListSerializer::SetFilenameHint ( const char *  _arg)
virtual

◆ SetPropertyList()

virtual void mitk::PropertyListSerializer::SetPropertyList ( PropertyList _arg)
virtual

◆ SetWorkingDirectory()

virtual void mitk::PropertyListSerializer::SetWorkingDirectory ( const char *  _arg)
virtual

Member Data Documentation

◆ m_FailedProperties

PropertyList::Pointer mitk::PropertyListSerializer::m_FailedProperties
protected

◆ m_FilenameHint

std::string mitk::PropertyListSerializer::m_FilenameHint
protected

Definition at line 57 of file mitkPropertyListSerializer.h.

◆ m_PropertyList

PropertyList::Pointer mitk::PropertyListSerializer::m_PropertyList
protected

Definition at line 59 of file mitkPropertyListSerializer.h.

Referenced by Serialize().

◆ m_WorkingDirectory

std::string mitk::PropertyListSerializer::m_WorkingDirectory
protected

Definition at line 58 of file mitkPropertyListSerializer.h.

Referenced by Serialize().


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