Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkNavigationToolStorageSerializer.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef NAVIGATIONTOOLSTORAGESERIALIZER_H_INCLUDED
18 #define NAVIGATIONTOOLSTORAGESERIALIZER_H_INCLUDED
19 
20 //itk headers
21 #include <itkObjectFactory.h>
22 
23 //mitk headers
24 #include <mitkCommon.h>
26 #include <MitkIGTExports.h>
27 
28 namespace mitk {
35  class MITKIGT_EXPORT NavigationToolStorageSerializer : public itk::Object
36  {
37  public:
39  itkFactorylessNewMacro(Self)
40  itkCloneMacro(Self)
41 
42 
49  bool Serialize(std::string filename, mitk::NavigationToolStorage::Pointer storage);
50 
55  itkGetMacro(ErrorMessage,std::string);
56 
57  protected:
60 
61  std::string m_ErrorMessage;
62 
63  std::string convertIntToString(int i);
64 
65  std::string m_tempDirectory;
66 
67  };
68 } // namespace mitk
69 #endif //NAVIGATIONTOOLSTORAGESERIALIZER
itk::SmartPointer< Self > Pointer
DataCollection - Class to facilitate loading/accessing structured data.
This class offers methods to save an object of the class NavigationToolStorage to the harddisc...
static const std::string filename
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53