Medical Imaging Interaction Toolkit  2018.4.99-064ad45c
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkSerializeBaseData_h_included
14 #define mitkSerializeBaseData_h_included
15 
16 #include "mitkSerializerMacros.h"
18 
19 #include "mitkBaseData.h"
20 #include <itkObjectFactoryBase.h>
21 
22 namespace mitk
23 {
36  {
37  public:
39 
40  itkSetStringMacro(FilenameHint);
41  itkGetStringMacro(FilenameHint);
42 
43  itkSetStringMacro(WorkingDirectory);
44  itkGetStringMacro(WorkingDirectory);
45 
46  itkSetConstObjectMacro(Data, BaseData);
47 
54  virtual std::string Serialize();
55 
56  protected:
58  ~BaseDataSerializer() override;
59 
60  std::string GetUniqueFilenameInWorkingDirectory();
61 
62  std::string m_FilenameHint;
63  std::string m_WorkingDirectory;
65  };
66 
67 } // namespace
68 
69 #endif
Base of all data objects.
Definition: mitkBaseData.h:42
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:49
#define MITKSCENESERIALIZATIONBASE_EXPORT