Medical Imaging Interaction Toolkit  2016.11.0
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 ()
 
virtual ~BaseDataSerializer ()
 
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 39 of file mitkBaseDataSerializer.h.

Constructor & Destructor Documentation

mitk::BaseDataSerializer::BaseDataSerializer ( )
protected

Definition at line 21 of file mitkBaseDataSerializer.cpp.

mitk::BaseDataSerializer::~BaseDataSerializer ( )
protectedvirtual

Definition at line 25 of file mitkBaseDataSerializer.cpp.

Member Function Documentation

virtual const char* mitk::BaseDataSerializer::GetFilenameHint ( ) const
virtual
std::string mitk::BaseDataSerializer::GetUniqueFilenameInWorkingDirectory ( )
protected

Definition at line 37 of file mitkBaseDataSerializer.cpp.

virtual const char* mitk::BaseDataSerializer::GetWorkingDirectory ( ) const
virtual
mitk::BaseDataSerializer::mitkClassMacroItkParent ( BaseDataSerializer  ,
itk::Object   
)
virtual void mitk::BaseDataSerializer::SetData ( const BaseData _arg)
virtual
virtual void mitk::BaseDataSerializer::SetFilenameHint ( const char *  _arg)
virtual
virtual void mitk::BaseDataSerializer::SetWorkingDirectory ( const char *  _arg)
virtual

Member Data Documentation

BaseData::ConstPointer mitk::BaseDataSerializer::m_Data
protected

Definition at line 68 of file mitkBaseDataSerializer.h.

std::string mitk::BaseDataSerializer::m_FilenameHint
protected

Definition at line 66 of file mitkBaseDataSerializer.h.

std::string mitk::BaseDataSerializer::m_WorkingDirectory
protected

Definition at line 67 of file mitkBaseDataSerializer.h.


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