Medical Imaging Interaction Toolkit  2023.12.00
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 () override
 
std::string convertIntToString (int i)
 
void decompressFiles (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 32 of file mitkNavigationToolStorageDeserializer.h.

Constructor & Destructor Documentation

◆ NavigationToolStorageDeserializer()

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

◆ ~NavigationToolStorageDeserializer()

mitk::NavigationToolStorageDeserializer::~NavigationToolStorageDeserializer ( )
overrideprotected

Member Function Documentation

◆ convertIntToString()

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

◆ decompressFiles()

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

◆ Deserialize()

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 decompressed.
mitk::IGTExceptionThrows an Exception if no tool was found inside the storage.

◆ GetErrorMessage()

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

◆ mitkClassMacroItkParent()

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

◆ mitkNewMacro1Param()

mitk::NavigationToolStorageDeserializer::mitkNewMacro1Param ( Self  ,
mitk::DataStorage::Pointer   
)

Member Data Documentation

◆ m_DataStorage

mitk::DataStorage::Pointer mitk::NavigationToolStorageDeserializer::m_DataStorage
protected

Definition at line 55 of file mitkNavigationToolStorageDeserializer.h.

◆ m_ErrorMessage

std::string mitk::NavigationToolStorageDeserializer::m_ErrorMessage
protected

Definition at line 53 of file mitkNavigationToolStorageDeserializer.h.

◆ m_tempDirectory

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

Definition at line 57 of file mitkNavigationToolStorageDeserializer.h.


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