Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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 ( )
protected

Definition at line 17 of file mitkBaseDataSerializer.cpp.

◆ ~BaseDataSerializer()

mitk::BaseDataSerializer::~BaseDataSerializer ( )
overrideprotected

Definition at line 21 of file mitkBaseDataSerializer.cpp.

Member Function Documentation

◆ GetFilenameHint()

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

◆ GetUniqueFilenameInWorkingDirectory()

◆ GetWorkingDirectory()

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

◆ mitkClassMacroItkParent()

mitk::BaseDataSerializer::mitkClassMacroItkParent ( BaseDataSerializer  ,
itk::Object   
)

◆ Serialize()

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

◆ SetData()

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

◆ SetFilenameHint()

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

◆ SetWorkingDirectory()

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

Member Data Documentation

◆ m_Data

◆ m_FilenameHint

◆ m_WorkingDirectory


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