Medical Imaging Interaction Toolkit  2023.12.00
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

◆ ~BaseDataSerializer()

mitk::BaseDataSerializer::~BaseDataSerializer ( )
overrideprotected

Member Function Documentation

◆ GetFilenameHint()

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

◆ GetUniqueFilenameInWorkingDirectory()

std::string mitk::BaseDataSerializer::GetUniqueFilenameInWorkingDirectory ( )
protected

◆ GetWorkingDirectory()

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

◆ mitkClassMacroItkParent()

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

◆ Serialize()

virtual 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

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

Definition at line 64 of file mitkBaseDataSerializer.h.

◆ m_FilenameHint

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

Definition at line 62 of file mitkBaseDataSerializer.h.

◆ m_WorkingDirectory

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

Definition at line 63 of file mitkBaseDataSerializer.h.


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