Medical Imaging Interaction Toolkit  2018.4.99-b7f3afaa
Medical Imaging Interaction Toolkit
mitk::NavigationToolStorageSerializer Class Reference

This class offers methods to save an object of the class NavigationToolStorage to the harddisc. More...

#include <mitkNavigationToolStorageSerializer.h>

Inheritance diagram for mitk::NavigationToolStorageSerializer:
Collaboration diagram for mitk::NavigationToolStorageSerializer:

Public Member Functions

 mitkClassMacroItkParent (NavigationToolStorageSerializer, itk::Object)
 
Pointer Clone () const
 
void Serialize (const std::string &filename, mitk::NavigationToolStorage::Pointer storage)
 Saves a mitk navigation tool storage to a file. More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 NavigationToolStorageSerializer ()
 
 ~NavigationToolStorageSerializer () override
 
std::string convertIntToString (int i)
 

Protected Attributes

std::string m_tempDirectory
 

Detailed Description

This class offers methods to save an object of the class NavigationToolStorage to the harddisc.

Documentation

Definition at line 31 of file mitkNavigationToolStorageSerializer.h.

Constructor & Destructor Documentation

◆ NavigationToolStorageSerializer()

mitk::NavigationToolStorageSerializer::NavigationToolStorageSerializer ( )
protected

◆ ~NavigationToolStorageSerializer()

mitk::NavigationToolStorageSerializer::~NavigationToolStorageSerializer ( )
overrideprotected

Definition at line 35 of file mitkNavigationToolStorageSerializer.cpp.

References m_tempDirectory, and MITK_ERROR.

Member Function Documentation

◆ Clone()

Pointer mitk::NavigationToolStorageSerializer::Clone ( ) const

◆ convertIntToString()

std::string mitk::NavigationToolStorageSerializer::convertIntToString ( int  i)
protected

Definition at line 85 of file mitkNavigationToolStorageSerializer.cpp.

Referenced by Serialize().

◆ mitkClassMacroItkParent()

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

◆ New()

static Pointer mitk::NavigationToolStorageSerializer::New ( )
static

◆ Serialize()

void mitk::NavigationToolStorageSerializer::Serialize ( const std::string &  filename,
mitk::NavigationToolStorage::Pointer  storage 
)

Saves a mitk navigation tool storage to a file.

Exceptions
mitk::IGTIOExceptionThrows an exception if the given filename cannot be opened for writing or if the temp directory is not accessible.

Definition at line 49 of file mitkNavigationToolStorageSerializer.cpp.

References convertIntToString(), mitk::IOUtil::GetDirectorySeparator(), m_tempDirectory, mitkThrowException, and mitk::NavigationToolWriter::New().

Member Data Documentation

◆ m_tempDirectory

std::string mitk::NavigationToolStorageSerializer::m_tempDirectory
protected

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