Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 mitkBaseDataSerializer_h
14 #define mitkBaseDataSerializer_h
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
MitkSceneSerializationBaseExports.h
mitk::BaseDataSerializer::m_Data
BaseData::ConstPointer m_Data
Definition: mitkBaseDataSerializer.h:64
itk::SmartPointer< const Self >
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::BaseDataSerializer
Base class for objects that serialize BaseData types.
Definition: mitkBaseDataSerializer.h:35
mitk::BaseDataSerializer::m_FilenameHint
std::string m_FilenameHint
Definition: mitkBaseDataSerializer.h:62
mitk::BaseData
Base of all data objects.
Definition: mitkBaseData.h:42
mitkSerializerMacros.h
mitkBaseData.h
MITKSCENESERIALIZATIONBASE_EXPORT
#define MITKSCENESERIALIZATIONBASE_EXPORT
Definition: MitkSceneSerializationBaseExports.h:15
mitk::BaseDataSerializer::m_WorkingDirectory
std::string m_WorkingDirectory
Definition: mitkBaseDataSerializer.h:63