Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkPropertyListSerializer.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 mitkPropertyListSerializer_h
14 #define mitkPropertyListSerializer_h
15 
17 
18 #include "mitkPropertyList.h"
19 
20 #include <itkObjectFactoryBase.h>
21 
22 namespace tinyxml2
23 {
24  class XMLDocument;
25  class XMLElement;
26 }
27 
28 namespace mitk
29 {
34  {
35  public:
37  itkFactorylessNewMacro(Self) // is this needed? should never be instantiated, only subclasses should
38  itkCloneMacro(Self);
39  itkSetStringMacro(FilenameHint);
40  itkGetStringMacro(FilenameHint);
41 
42  itkSetStringMacro(WorkingDirectory);
43  itkGetStringMacro(WorkingDirectory);
44 
45  itkSetObjectMacro(PropertyList, PropertyList);
46 
51  virtual std::string Serialize();
52 
53  PropertyList *GetFailedProperties();
54 
55  protected:
57  ~PropertyListSerializer() override;
58 
59  tinyxml2::XMLElement *SerializeOneProperty(tinyxml2::XMLDocument &doc, const std::string &key, const BaseProperty *property);
60 
61  std::string m_FilenameHint;
62  std::string m_WorkingDirectory;
64 
66  };
67 
68 } // namespace
69 
70 #endif
MitkSceneSerializationBaseExports.h
mitk::BaseProperty
Abstract base class for properties.
Definition: mitkBaseProperty.h:36
itk::SmartPointer< Self >
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::PropertyListSerializer::m_FilenameHint
std::string m_FilenameHint
Definition: mitkPropertyListSerializer.h:61
mitk::PropertyListSerializer::m_FailedProperties
PropertyList::Pointer m_FailedProperties
Definition: mitkPropertyListSerializer.h:65
mitk::PropertyListSerializer::m_PropertyList
PropertyList::Pointer m_PropertyList
Definition: mitkPropertyListSerializer.h:63
mitk::PropertyListSerializer::m_WorkingDirectory
std::string m_WorkingDirectory
Definition: mitkPropertyListSerializer.h:62
mitkPropertyList.h
mitk::PropertyList
Key-value list holding instances of BaseProperty.
Definition: mitkPropertyList.h:56
tinyxml2
Definition: mitkContourModelReader.h:25
MITKSCENESERIALIZATIONBASE_EXPORT
#define MITKSCENESERIALIZATIONBASE_EXPORT
Definition: MitkSceneSerializationBaseExports.h:15
mitk::PropertyListSerializer
Serializes a mitk::PropertyList.
Definition: mitkPropertyListSerializer.h:33