Reference documentation for deal.II version 8.4.2
xml_parameter_writer.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 2013 by Martin Steigemann and Wolfgang Bangerth
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE at
12 // the top level of the deal.II distribution.
13 //
14 // ---------------------------------------------------------------------
15 
16 
17 #ifndef XMLPARAMETERWRITER_H
18 #define XMLPARAMETERWRITER_H
19 
20 #include <QXmlStreamWriter>
21 #include <QTreeWidget>
22 #include <QTreeWidgetItem>
23 
24 
25 namespace dealii
26 {
30  namespace ParameterGui
31  {
44  {
45  public:
50  XMLParameterWriter (QTreeWidget *tree_widget);
57  bool write_xml_file (QIODevice *device);
58 
59  private:
75  void write_item (QTreeWidgetItem *item);
82  QString mangle (const QString &s);
88  QXmlStreamWriter xml;
93  QTreeWidget * tree_widget;
94  };
95  }
97 }
98 
99 
100 #endif