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 NAVIGATIONTOOLSTORAGESERIALIZER_H_INCLUDED 00019 #define NAVIGATIONTOOLSTORAGESERIALIZER_H_INCLUDED 00020 00021 //itk headers 00022 #include <itkObjectFactory.h> 00023 00024 //mitk headers 00025 #include <mitkCommon.h> 00026 #include "mitkNavigationToolStorage.h" 00027 #include <MitkIGTExports.h> 00028 00029 namespace mitk { 00036 class MitkIGT_EXPORT NavigationToolStorageSerializer : public itk::Object 00037 { 00038 00039 public: 00040 mitkClassMacro(NavigationToolStorageSerializer,itk::Object); 00041 itkNewMacro(Self); 00042 00047 bool Serialize(std::string filename, mitk::NavigationToolStorage::Pointer storage); 00048 00049 itkGetMacro(ErrorMessage,std::string); 00050 00051 protected: 00052 NavigationToolStorageSerializer(); 00053 ~NavigationToolStorageSerializer(); 00054 00055 std::string m_ErrorMessage; 00056 00057 }; 00058 } // namespace mitk 00059 #endif //NAVIGATIONTOOLSTORAGESERIALIZER