Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkPropertyListsXmlFileReaderAndWriter.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 mitkXmlSceneIO_h_included
18 #define mitkXmlSceneIO_h_included
19 
20 #include "mitkDataStorage.h"
21 
22 class TiXmlElement;
23 
24 namespace mitk
25 {
26  class PropertyListsXmlFileReaderAndWriter;
27 
28  class PropertyListsXmlFileReaderAndWriter : public itk::Object
29  {
30  public:
31  static const char *GetPropertyListIdElementName();
32 
34  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
35 
36  bool WriteLists(const std::string &fileName,
37  const std::map<std::string, mitk::PropertyList::Pointer> &_PropertyLists) const;
38  bool ReadLists(const std::string &fileName,
39  std::map<std::string, mitk::PropertyList::Pointer> &_PropertyLists) const;
40 
41  protected:
44 
45  bool PropertyFromXmlElem(std::string &name, mitk::BaseProperty::Pointer &prop, TiXmlElement *elem) const;
46  bool PropertyToXmlElem(const std::string &name, const mitk::BaseProperty *prop, TiXmlElement *elem) const;
47  };
48 }
49 
50 #endif
bool ReadLists(const std::string &fileName, std::map< std::string, mitk::PropertyList::Pointer > &_PropertyLists) const
mitkClassMacroItkParent(PropertyListsXmlFileReaderAndWriter, itk::Object)
DataCollection - Class to facilitate loading/accessing structured data.
Abstract base class for properties.
bool PropertyFromXmlElem(std::string &name, mitk::BaseProperty::Pointer &prop, TiXmlElement *elem) const
bool PropertyToXmlElem(const std::string &name, const mitk::BaseProperty *prop, TiXmlElement *elem) const
bool WriteLists(const std::string &fileName, const std::map< std::string, mitk::PropertyList::Pointer > &_PropertyLists) const