Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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

std::vector< std::string > GetClassHierarchy () const override
 
const char * GetNameOfClass () const override
 
Pointer Clone () const
 
tinyxml2::XMLElement * Serialize (tinyxml2::XMLDocument &doc) override
 Build an XML version of this property. More...
 
BaseProperty::Pointer Deserialize (const tinyxml2::XMLElement *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 ()
 
 ~BasePropertySerializer () override
 
- 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 43 of file mitkVectorPropertySerializer.h.

Member Typedef Documentation

◆ ConstPointer

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

Definition at line 54 of file mitkVectorPropertySerializer.h.

◆ Pointer

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

Definition at line 53 of file mitkVectorPropertySerializer.h.

◆ PropertyType

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

Definition at line 50 of file mitkVectorPropertySerializer.h.

◆ Self

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

Definition at line 51 of file mitkVectorPropertySerializer.h.

◆ SuperClass

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

Definition at line 52 of file mitkVectorPropertySerializer.h.

Member Function Documentation

◆ Clone()

template<typename DATATYPE >
Pointer mitk::VectorPropertySerializer< DATATYPE >::Clone ( ) const

◆ Deserialize()

template<typename DATATYPE >
BaseProperty::Pointer mitk::VectorPropertySerializer< DATATYPE >::Deserialize ( const tinyxml2::XMLElement *  listElement)
inlineoverridevirtual

Construct a property from an XML serialization.

Reimplemented from mitk::BasePropertySerializer.

Definition at line 100 of file mitkVectorPropertySerializer.h.

References MITK_ERROR.

◆ GetClassHierarchy()

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

Definition at line 55 of file mitkVectorPropertySerializer.h.

◆ GetNameOfClass()

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

Definition at line 67 of file mitkVectorPropertySerializer.h.

◆ GetStaticNameOfClass()

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

Definition at line 59 of file mitkVectorPropertySerializer.h.

◆ New()

template<typename DATATYPE >
static Pointer mitk::VectorPropertySerializer< DATATYPE >::New ( )
static

◆ Serialize()

template<typename DATATYPE >
tinyxml2::XMLElement* mitk::VectorPropertySerializer< DATATYPE >::Serialize ( tinyxml2::XMLDocument &  doc)
inlineoverridevirtual

Build an XML version of this property.

Reimplemented from mitk::BasePropertySerializer.

Definition at line 72 of file mitkVectorPropertySerializer.h.


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