Medical Imaging Interaction Toolkit  2026.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 {
44  {
45  public:
47  itkFactorylessNewMacro(Self) // is this needed? should never be instantiated, only subclasses should
48  itkCloneMacro(Self);
49 
51  itkSetStringMacro(FilenameHint);
53  itkGetStringMacro(FilenameHint);
54 
56  itkSetStringMacro(WorkingDirectory);
58  itkGetStringMacro(WorkingDirectory);
59 
64  itkSetObjectMacro(PropertyList, PropertyList);
65 
81  virtual std::string Serialize();
82 
89  PropertyList *GetFailedProperties();
90 
91  protected:
94 
95  tinyxml2::XMLElement *SerializeOneProperty(tinyxml2::XMLDocument &doc, const std::string &key, const BaseProperty *property);
96 
97  std::string m_FilenameHint;
98  std::string m_WorkingDirectory;
99  PropertyList::Pointer m_PropertyList;
100 
101  PropertyList::Pointer m_FailedProperties;
102  };
103 
104 } // namespace
105 
106 #endif
#define MITKSCENESERIALIZATIONBASE_EXPORT
Abstract base class for properties.
Serializes a mitk::PropertyList to an XML file.
mitkClassMacroItkParent(PropertyListSerializer, itk::Object)
Key-value list holding instances of BaseProperty.
Find image slices visible on a given plane.