Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::VectorPropertySerializer< DATATYPE > Class Template Reference

Serializes a VectorProperty. More...

#include <mitkVectorPropertySerializer.h>

Inheritance diagram for mitk::VectorPropertySerializer< DATATYPE >:
Collaboration diagram for mitk::VectorPropertySerializer< DATATYPE >:

Public Types

typedef VectorProperty< DATATYPE > PropertyType
 
typedef VectorPropertySerializer< DATATYPE > Self
 
typedef BasePropertySerializer SuperClass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetNameOfClass () const override
 
Pointer Clone () const
 
virtual TiXmlElement * Serialize () override
 Build an XML version of this property. More...
 
virtual BaseProperty::Pointer Deserialize (TiXmlElement *listElement) override
 Construct a property from an XML serialization. More...
 
- Public Member Functions inherited from mitk::BasePropertySerializer
 mitkClassMacroItkParent (BasePropertySerializer, itk::Object)
 
virtual void SetProperty (const BaseProperty *_arg)
 

Static Public Member Functions

static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 

Additional Inherited Members

- Protected Member Functions inherited from mitk::BasePropertySerializer
 BasePropertySerializer ()
 
virtual ~BasePropertySerializer ()
 
- Protected Attributes inherited from mitk::BasePropertySerializer
BaseProperty::ConstPointer m_Property
 

Detailed Description

template<typename DATATYPE>
class mitk::VectorPropertySerializer< DATATYPE >

Serializes a VectorProperty.

Serializes an instance of VectorProperty into a XML structure like

<Values>
  <Value idx="0" value="17.3"/>
  <Value idx="1" value="7.2"/>
  <Value idx="2" value="-17.3"/>
</Values>

This class is implemented as a template and makes use of std::stringstream for necessary conversions of specific data types to and from string.

For numeric types, the class adds a precision token to stringstream that should usually suffice.

Definition at line 48 of file mitkVectorPropertySerializer.h.

Member Typedef Documentation

template<typename DATATYPE >
typedef itk::SmartPointer<const Self> mitk::VectorPropertySerializer< DATATYPE >::ConstPointer

Definition at line 59 of file mitkVectorPropertySerializer.h.

template<typename DATATYPE >
typedef itk::SmartPointer<Self> mitk::VectorPropertySerializer< DATATYPE >::Pointer

Definition at line 58 of file mitkVectorPropertySerializer.h.

template<typename DATATYPE >
typedef VectorProperty<DATATYPE> mitk::VectorPropertySerializer< DATATYPE >::PropertyType

Definition at line 55 of file mitkVectorPropertySerializer.h.

template<typename DATATYPE >
typedef VectorPropertySerializer<DATATYPE> mitk::VectorPropertySerializer< DATATYPE >::Self

Definition at line 56 of file mitkVectorPropertySerializer.h.

template<typename DATATYPE >
typedef BasePropertySerializer mitk::VectorPropertySerializer< DATATYPE >::SuperClass

Definition at line 57 of file mitkVectorPropertySerializer.h.

Member Function Documentation

template<typename DATATYPE >
Pointer mitk::VectorPropertySerializer< DATATYPE >::Clone ( ) const
template<typename DATATYPE >
virtual BaseProperty::Pointer mitk::VectorPropertySerializer< DATATYPE >::Deserialize ( TiXmlElement *  listElement)
inlineoverridevirtual

Construct a property from an XML serialization.

Reimplemented from mitk::BasePropertySerializer.

Definition at line 105 of file mitkVectorPropertySerializer.h.

References MITK_DEBUG, MITK_ERROR, and mitk::New().

template<typename DATATYPE >
virtual std::vector<std::string> mitk::VectorPropertySerializer< DATATYPE >::GetClassHierarchy ( ) const
inlineoverridevirtual

Definition at line 60 of file mitkVectorPropertySerializer.h.

template<typename DATATYPE >
virtual const char* mitk::VectorPropertySerializer< DATATYPE >::GetNameOfClass ( ) const
inlineoverridevirtual

Definition at line 72 of file mitkVectorPropertySerializer.h.

References mitk::GetStaticNameOfClass().

template<typename DATATYPE >
static const char* mitk::VectorPropertySerializer< DATATYPE >::GetStaticNameOfClass ( )
inlinestatic

Definition at line 64 of file mitkVectorPropertySerializer.h.

template<typename DATATYPE >
static Pointer mitk::VectorPropertySerializer< DATATYPE >::New ( )
static
template<typename DATATYPE >
virtual TiXmlElement* mitk::VectorPropertySerializer< DATATYPE >::Serialize ( )
inlineoverridevirtual

Build an XML version of this property.

Reimplemented from mitk::BasePropertySerializer.

Definition at line 77 of file mitkVectorPropertySerializer.h.


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