Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::NavigationToolStorageDeserializer Class Reference

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

#include <mitkNavigationToolStorageDeserializer.h>

Inheritance diagram for mitk::NavigationToolStorageDeserializer:
Collaboration diagram for mitk::NavigationToolStorageDeserializer:

Public Member Functions

 mitkClassMacroItkParent (NavigationToolStorageDeserializer, itk::Object)
 
 mitkNewMacro1Param (Self, mitk::DataStorage::Pointer)
 
mitk::NavigationToolStorage::Pointer Deserialize (std::string filename)
 Loads a collection of navigation tools represented by a mitk::NavigationToolStorage from a file. More...
 
virtual std::string GetErrorMessage ()
 

Protected Member Functions

 NavigationToolStorageDeserializer (mitk::DataStorage::Pointer dataStorage)
 
 ~NavigationToolStorageDeserializer ()
 
std::string convertIntToString (int i)
 
void decomressFiles (std::string file, std::string path)
 

Protected Attributes

std::string m_ErrorMessage
 
mitk::DataStorage::Pointer m_DataStorage
 
std::string m_tempDirectory
 

Detailed Description

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

Documentation

Definition at line 36 of file mitkNavigationToolStorageDeserializer.h.

Constructor & Destructor Documentation

mitk::NavigationToolStorageDeserializer::NavigationToolStorageDeserializer ( mitk::DataStorage::Pointer  dataStorage)
protected
mitk::NavigationToolStorageDeserializer::~NavigationToolStorageDeserializer ( )
protected

Definition at line 42 of file mitkNavigationToolStorageDeserializer.cpp.

References File, and MITK_ERROR.

Member Function Documentation

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

Definition at line 84 of file mitkNavigationToolStorageDeserializer.cpp.

void mitk::NavigationToolStorageDeserializer::decomressFiles ( std::string  file,
std::string  path 
)
protected
Exceptions
Throwsan Exception if particular file cannot be opened for reading

Definition at line 93 of file mitkNavigationToolStorageDeserializer.cpp.

References MITK_ERROR, and mitkThrowException.

mitk::NavigationToolStorage::Pointer mitk::NavigationToolStorageDeserializer::Deserialize ( std::string  filename)

Loads a collection of navigation tools represented by a mitk::NavigationToolStorage from a file.

Returns
Returns the storage which was loaded or an empty storage if there was an error in the loading process.
Exceptions
mitk::IGTExceptionThrows an Exception if the file cannot be decopressed.
mitk::IGTExceptionThrows an Exception if no tool was found inside the storage.

Definition at line 56 of file mitkNavigationToolStorageDeserializer.cpp.

References m_DataStorage, mitkThrowException, mitk::NavigationToolReader::New(), and mitk::NavigationToolStorage::New().

virtual std::string mitk::NavigationToolStorageDeserializer::GetErrorMessage ( )
virtual
mitk::NavigationToolStorageDeserializer::mitkClassMacroItkParent ( NavigationToolStorageDeserializer  ,
itk::Object   
)
mitk::NavigationToolStorageDeserializer::mitkNewMacro1Param ( Self  ,
mitk::DataStorage::Pointer   
)

Member Data Documentation

mitk::DataStorage::Pointer mitk::NavigationToolStorageDeserializer::m_DataStorage
protected
std::string mitk::NavigationToolStorageDeserializer::m_ErrorMessage
protected

Definition at line 57 of file mitkNavigationToolStorageDeserializer.h.

std::string mitk::NavigationToolStorageDeserializer::m_tempDirectory
protected

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