contrib/parameter_gui/xml_parameter_writer.h

00001 //---------------------------------------------------------------------------
00002 //
00003 //    Copyright (C) 2010, 2011 by the deal.II authors
00004 //
00005 //    This file is subject to QPL and may not be  distributed
00006 //    without copyright and license information. Please refer
00007 //    to the file deal.II/doc/license.html for the  text  and
00008 //    further information on this license.
00009 //
00010 //---------------------------------------------------------------------------
00011 
00012 #ifndef XMLPARAMETERWRITER_H
00013 #define XMLPARAMETERWRITER_H
00014 
00015 #include <QXmlStreamWriter>
00016 #include <QTreeWidget>
00017 #include <QTreeWidgetItem>
00018 
00019 
00020 namespace dealii
00021 {
00025   namespace ParameterGui
00026   {
00038     class XMLParameterWriter
00039     {
00040       public:
00045         XMLParameterWriter (QTreeWidget *tree_widget);
00052         bool write_xml_file (QIODevice *device);
00053 
00054       private:
00070         void write_item (QTreeWidgetItem *item);
00077         QString  mangle (const QString &s);
00083         QXmlStreamWriter  xml;
00088         QTreeWidget * tree_widget;
00089     };
00090   }
00092 }
00093 
00094 
00095 #endif
00096 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Wed May 23 2012 12:03:17 by doxygen 1.7.3