Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::BasePropertySerializer Class Reference

Base class for objects that serialize BaseProperty types. More...

#include <mitkBasePropertySerializer.h>

Inheritance diagram for mitk::BasePropertySerializer:
Collaboration diagram for mitk::BasePropertySerializer:

Public Member Functions

 mitkClassMacroItkParent (BasePropertySerializer, itk::Object)
 
virtual void SetProperty (const BaseProperty *_arg)
 
virtual TiXmlElement * Serialize ()
 Serializes given BaseProperty object. More...
 
virtual BaseProperty::Pointer Deserialize (TiXmlElement *)
 Deserializes given TiXmlElement. More...
 

Protected Member Functions

 BasePropertySerializer ()
 
virtual ~BasePropertySerializer ()
 

Protected Attributes

BaseProperty::ConstPointer m_Property
 

Detailed Description

Base class for objects that serialize BaseProperty types.

The name of sub-classes must be deduced from the class name of the object that should be serialized. The serialization assumes that

If the class derived from BaseProperty is called GreenProperty
Then the serializer for this class must be called GreenPropertySerializer

Definition at line 41 of file mitkBasePropertySerializer.h.

Constructor & Destructor Documentation

mitk::BasePropertySerializer::BasePropertySerializer ( )
protected

Definition at line 19 of file mitkBasePropertySerializer.cpp.

mitk::BasePropertySerializer::~BasePropertySerializer ( )
protectedvirtual

Definition at line 23 of file mitkBasePropertySerializer.cpp.

Member Function Documentation

mitk::BaseProperty::Pointer mitk::BasePropertySerializer::Deserialize ( TiXmlElement *  )
virtual

Deserializes given TiXmlElement.

Returns
The deserialized Property.

This should be overwritten by specific sub-classes.

Reimplemented in mitk::OdfNormalizationMethodPropertySerializer, mitk::VectorPropertySerializer< DATATYPE >, mitk::OdfScaleByPropertySerializer, mitk::LookupTablePropertySerializer, and mitk::TransferFunctionPropertySerializer.

Definition at line 34 of file mitkBasePropertySerializer.cpp.

References MITK_ERROR.

Referenced by TestAllProperties().

mitk::BasePropertySerializer::mitkClassMacroItkParent ( BasePropertySerializer  ,
itk::Object   
)
TiXmlElement * mitk::BasePropertySerializer::Serialize ( )
virtual

Serializes given BaseProperty object.

Returns
The filename of the newly created file.

This should be overwritten by specific sub-classes.

Reimplemented in mitk::VectorPropertySerializer< DATATYPE >, mitk::LookupTablePropertySerializer, mitk::EnumerationPropertySerializer, and mitk::TransferFunctionPropertySerializer.

Definition at line 27 of file mitkBasePropertySerializer.cpp.

References MITK_INFO.

Referenced by mitk::PlanarFigureWriter::GenerateData(), and TestAllProperties().

virtual void mitk::BasePropertySerializer::SetProperty ( const BaseProperty _arg)
virtual

Member Data Documentation


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