Medical Imaging Interaction Toolkit  2018.4.99-f51274ea
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.


Definition at line 31 of file mitkNavigationToolStorageSerializer.h.

Constructor & Destructor Documentation

◆ NavigationToolStorageSerializer()

mitk::NavigationToolStorageSerializer::NavigationToolStorageSerializer ( )

◆ ~NavigationToolStorageSerializer()

mitk::NavigationToolStorageSerializer::~NavigationToolStorageSerializer ( )

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)

Definition at line 85 of file mitkNavigationToolStorageSerializer.cpp.

Referenced by Serialize().

◆ mitkClassMacroItkParent()

mitk::NavigationToolStorageSerializer::mitkClassMacroItkParent ( NavigationToolStorageSerializer  ,

◆ New()

static Pointer mitk::NavigationToolStorageSerializer::New ( )

◆ Serialize()

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

Saves a mitk navigation tool storage to a file.

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

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