Medical Imaging Interaction Toolkit  2016.11.0
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
 
bool Serialize (std::string filename, mitk::NavigationToolStorage::Pointer storage)
 Saves a mitk navigation tool storage to a file. More...
 
virtual std::string GetErrorMessage ()
 This method is decrepated. Exceptions are used for error handling now! More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

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

Protected Attributes

std::string m_ErrorMessage
 
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 35 of file mitkNavigationToolStorageSerializer.h.

Constructor & Destructor Documentation

mitk::NavigationToolStorageSerializer::NavigationToolStorageSerializer ( )
protected
mitk::NavigationToolStorageSerializer::~NavigationToolStorageSerializer ( )
protected

Definition at line 40 of file mitkNavigationToolStorageSerializer.cpp.

References File, and MITK_ERROR.

Member Function Documentation

Pointer mitk::NavigationToolStorageSerializer::Clone ( ) const
std::string mitk::NavigationToolStorageSerializer::convertIntToString ( int  i)
protected

Definition at line 92 of file mitkNavigationToolStorageSerializer.cpp.

virtual std::string mitk::NavigationToolStorageSerializer::GetErrorMessage ( )
virtual

This method is decrepated. Exceptions are used for error handling now!

Returns
Returns always an empty string since error handling was converted to exception handling.
mitk::NavigationToolStorageSerializer::mitkClassMacroItkParent ( NavigationToolStorageSerializer  ,
itk::Object   
)
static Pointer mitk::NavigationToolStorageSerializer::New ( )
static
bool mitk::NavigationToolStorageSerializer::Serialize ( std::string  filename,
mitk::NavigationToolStorage::Pointer  storage 
)

Saves a mitk navigation tool storage to a file.

Returns
Returns true always true since error handling was converted to exception handling. The return value is decrepated. Will be changed to void.
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 54 of file mitkNavigationToolStorageSerializer.cpp.

References filename, mitkThrowException, and mitk::NavigationToolWriter::New().

Member Data Documentation

std::string mitk::NavigationToolStorageSerializer::m_ErrorMessage
protected

Definition at line 61 of file mitkNavigationToolStorageSerializer.h.

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

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