Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkBaseDataSerializer.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 mitkSerializeBaseData_h_included
18 #define mitkSerializeBaseData_h_included
19 
20 #include "mitkSerializerMacros.h"
22 
23 #include "mitkBaseData.h"
24 #include <itkObjectFactoryBase.h>
25 
26 namespace mitk
27 {
40  {
41  public:
43 
44  itkSetStringMacro(FilenameHint);
45  itkGetStringMacro(FilenameHint);
46 
47  itkSetStringMacro(WorkingDirectory);
48  itkGetStringMacro(WorkingDirectory);
49 
50  itkSetConstObjectMacro(Data, BaseData);
51 
58  virtual std::string Serialize();
59 
60  protected:
62  virtual ~BaseDataSerializer();
63 
64  std::string GetUniqueFilenameInWorkingDirectory();
65 
66  std::string m_FilenameHint;
67  std::string m_WorkingDirectory;
69  };
70 
71 } // namespace
72 
73 #endif
Base of all data objects.
Definition: mitkBaseData.h:39
Base class for objects that serialize BaseData types.
DataCollection - Class to facilitate loading/accessing structured data.
BaseData::ConstPointer m_Data
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
#define MITKSCENESERIALIZATIONBASE_EXPORT