Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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_included
14 #define mitkPropertyListSerializer_h_included
15 
17 
18 #include "mitkPropertyList.h"
19 
20 #include <itkObjectFactoryBase.h>
21 
22 class TiXmlElement;
23 
24 namespace mitk
25 {
30  {
31  public:
33  itkFactorylessNewMacro(Self) // is this needed? should never be instantiated, only subclasses should
34  itkCloneMacro(Self);
35  itkSetStringMacro(FilenameHint);
36  itkGetStringMacro(FilenameHint);
37 
38  itkSetStringMacro(WorkingDirectory);
39  itkGetStringMacro(WorkingDirectory);
40 
41  itkSetObjectMacro(PropertyList, PropertyList);
42 
47  virtual std::string Serialize();
48 
49  PropertyList *GetFailedProperties();
50 
51  protected:
53  ~PropertyListSerializer() override;
54 
55  TiXmlElement *SerializeOneProperty(const std::string &key, const BaseProperty *property);
56 
57  std::string m_FilenameHint;
58  std::string m_WorkingDirectory;
60 
62  };
63 
64 } // namespace
65 
66 #endif
DataCollection - Class to facilitate loading/accessing structured data.
Key-value list holding instances of BaseProperty.
Abstract base class for properties.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
Serializes a mitk::PropertyList.
#define MITKSCENESERIALIZATIONBASE_EXPORT