Medical Imaging Interaction Toolkit  2018.4.99-064ad45c
Medical Imaging Interaction Toolkit
mitk::BaseDataSerializer Class Reference

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

#include <mitkBaseDataSerializer.h>

Inheritance diagram for mitk::BaseDataSerializer:
Collaboration diagram for mitk::BaseDataSerializer:

Public Member Functions

 mitkClassMacroItkParent (BaseDataSerializer, itk::Object)
virtual void SetFilenameHint (const char *_arg)
virtual const char * GetFilenameHint () const
virtual void SetWorkingDirectory (const char *_arg)
virtual const char * GetWorkingDirectory () const
virtual void SetData (const BaseData *_arg)
virtual std::string Serialize ()
 Serializes given BaseData object. More...

Protected Member Functions

 BaseDataSerializer ()
 ~BaseDataSerializer () override
std::string GetUniqueFilenameInWorkingDirectory ()

Protected Attributes

std::string m_FilenameHint
std::string m_WorkingDirectory
BaseData::ConstPointer m_Data

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 35 of file mitkBaseDataSerializer.h.

Constructor & Destructor Documentation

◆ BaseDataSerializer()

mitk::BaseDataSerializer::BaseDataSerializer ( )

Definition at line 17 of file mitkBaseDataSerializer.cpp.

◆ ~BaseDataSerializer()

mitk::BaseDataSerializer::~BaseDataSerializer ( )

Definition at line 21 of file mitkBaseDataSerializer.cpp.

Member Function Documentation

◆ GetFilenameHint()

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

◆ GetUniqueFilenameInWorkingDirectory()

◆ GetWorkingDirectory()

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

◆ mitkClassMacroItkParent()

mitk::BaseDataSerializer::mitkClassMacroItkParent ( BaseDataSerializer  ,

◆ Serialize()

std::string mitk::BaseDataSerializer::Serialize ( )

◆ SetData()

virtual void mitk::BaseDataSerializer::SetData ( const BaseData _arg)

◆ SetFilenameHint()

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

◆ SetWorkingDirectory()

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

Member Data Documentation

◆ m_Data

◆ m_FilenameHint

◆ m_WorkingDirectory

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