Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkPropertyListSerializer_h_included
18 #define mitkPropertyListSerializer_h_included
19 
21 
22 #include "mitkPropertyList.h"
23 
24 #include <itkObjectFactoryBase.h>
25 
26 class TiXmlElement;
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 
40  itkSetStringMacro(FilenameHint);
41  itkGetStringMacro(FilenameHint);
42 
43  itkSetStringMacro(WorkingDirectory);
44  itkGetStringMacro(WorkingDirectory);
45 
46  itkSetObjectMacro(PropertyList, PropertyList);
47 
52  virtual std::string Serialize();
53 
54  PropertyList *GetFailedProperties();
55 
56  protected:
58  virtual ~PropertyListSerializer();
59 
60  TiXmlElement *SerializeOneProperty(const std::string &key, const BaseProperty *property);
61 
62  std::string m_FilenameHint;
63  std::string m_WorkingDirectory;
65 
67  };
68 
69 } // namespace
70 
71 #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:53
Serializes a mitk::PropertyList.
#define MITKSCENESERIALIZATIONBASE_EXPORT