Reference documentation for deal.II version 8.4.2
xml_parameter_reader.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 XMLPARAMETERREADER_H
18 #define XMLPARAMETERREADER_H
19 
20 #include <QIcon>
21 #include <QXmlStreamReader>
22 #include <QTreeWidget>
23 #include <QTreeWidgetItem>
24 
25 
26 namespace dealii
27 {
31  namespace ParameterGui
32  {
45  {
46  public:
51  XMLParameterReader (QTreeWidget *tree_widget);
60  bool read_xml_file (QIODevice *device);
64  QString error_string () const;
65 
66  private:
73  void parse_parameters ();
81  void read_subsection_element (QTreeWidgetItem *parent);
96  void read_parameter_element (QTreeWidgetItem *parent);
101  QString demangle (const QString &s);
105  QTreeWidgetItem * create_child_item(QTreeWidgetItem *item);
109  QXmlStreamReader xml;
113  QTreeWidget * tree_widget;
122  };
123  }
125 }
126 
127 
128 #endif
QTreeWidgetItem * create_child_item(QTreeWidgetItem *item)
void read_parameter_element(QTreeWidgetItem *parent)
void read_subsection_element(QTreeWidgetItem *parent)