00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-08-11 15:15:02 +0200 (Di, 11 Aug 2009) $ 00006 Version: $Revision $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef NAVIGATIONTOOLSTORAGEDESERIALIZER_H_INCLUDED 00019 #define NAVIGATIONTOOLSTORAGEDESERIALIZER_H_INCLUDED 00020 00021 //itk headers 00022 #include <itkObjectFactory.h> 00023 00024 //mitk headers 00025 #include <mitkCommon.h> 00026 #include <mitkDataStorage.h> 00027 #include "mitkNavigationToolStorage.h" 00028 #include <MitkIGTExports.h> 00029 00030 namespace mitk { 00037 class MitkIGT_EXPORT NavigationToolStorageDeserializer : public itk::Object 00038 { 00039 public: 00040 mitkClassMacro(NavigationToolStorageDeserializer,itk::Object); 00041 mitkNewMacro1Param(Self,mitk::DataStorage::Pointer); 00042 00049 mitk::NavigationToolStorage::Pointer Deserialize(std::string filename); 00050 00051 itkGetMacro(ErrorMessage,std::string); 00052 00053 protected: 00054 NavigationToolStorageDeserializer(mitk::DataStorage::Pointer dataStorage); 00055 ~NavigationToolStorageDeserializer(); 00056 00057 std::string m_ErrorMessage; 00058 00059 mitk::DataStorage::Pointer m_DataStorage; 00060 00061 }; 00062 } // namespace mitk 00063 #endif //NAVIGATIONTOOLSTORAGEDESERIALIZER