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

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

#include <mitkLookupTablePropertySerializer.h>

Inheritance diagram for mitk::LookupTablePropertySerializer:
Collaboration diagram for mitk::LookupTablePropertySerializer:

Public Member Functions

 mitkClassMacro (LookupTablePropertySerializer, BasePropertySerializer)
 
Pointer Clone () const
 
virtual TiXmlElement * Serialize () override
 Serializes given BaseData object. More...
 
virtual BaseProperty::Pointer Deserialize (TiXmlElement *element) override
 Deserializes given TiXmlElement. More...
 
- Public Member Functions inherited from mitk::BasePropertySerializer
 mitkClassMacroItkParent (BasePropertySerializer, itk::Object)
 
virtual void SetProperty (const BaseProperty *_arg)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 LookupTablePropertySerializer ()
 
virtual ~LookupTablePropertySerializer ()
 
- Protected Member Functions inherited from mitk::BasePropertySerializer
 BasePropertySerializer ()
 
virtual ~BasePropertySerializer ()
 

Additional Inherited Members

- Protected Attributes inherited from mitk::BasePropertySerializer
BaseProperty::ConstPointer m_Property
 

Detailed Description

Base class for objects that serialize BaseData 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 BaseData is called GreenData
Then the serializer for this class must be called GreenDataSerializer

Definition at line 36 of file mitkLookupTablePropertySerializer.h.

Constructor & Destructor Documentation

mitk::LookupTablePropertySerializer::LookupTablePropertySerializer ( )
inlineprotected

Definition at line 53 of file mitkLookupTablePropertySerializer.h.

virtual mitk::LookupTablePropertySerializer::~LookupTablePropertySerializer ( )
inlineprotectedvirtual

Definition at line 54 of file mitkLookupTablePropertySerializer.h.

Member Function Documentation

Pointer mitk::LookupTablePropertySerializer::Clone ( ) const
mitk::BaseProperty::Pointer mitk::LookupTablePropertySerializer::Deserialize ( TiXmlElement *  )
overridevirtual

Deserializes given TiXmlElement.

Returns
The deserialized Property.

This should be overwritten by specific sub-classes.

Reimplemented from mitk::BasePropertySerializer.

Definition at line 93 of file mitkLookupTablePropertySerializer.cpp.

References MITK_ERROR, mitk::New(), mitk::LookupTable::New(), and mitk::LookupTableProperty::New().

mitk::LookupTablePropertySerializer::mitkClassMacro ( LookupTablePropertySerializer  ,
BasePropertySerializer   
)
static Pointer mitk::LookupTablePropertySerializer::New ( )
static
TiXmlElement * mitk::LookupTablePropertySerializer::Serialize ( )
overridevirtual

Serializes given BaseData object.

Returns
the filename of the newly created file.

This should be overwritten by specific sub-classes.

Reimplemented from mitk::BasePropertySerializer.

Definition at line 22 of file mitkLookupTablePropertySerializer.cpp.

References mitk::BasePropertySerializer::m_Property.


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