![]() |
Reference documentation for deal.II version 8.4.2
|
#include </build/deal.ii-pdtiAo/deal.ii-8.4.2/contrib/parameter_gui/xml_parameter_writer.h>
Public Member Functions | |
| XMLParameterWriter (QTreeWidget *tree_widget) | |
| bool | write_xml_file (QIODevice *device) |
Private Member Functions | |
| void | write_item (QTreeWidgetItem *item) |
| QString | mangle (const QString &s) |
Private Attributes | |
| QXmlStreamWriter | xml |
| QTreeWidget * | tree_widget |
The XMLParameterWriter class provides an interface to write parameters stored in a QTreeWidget to a file in XML format. This class makes extensive use of the QXmlStreamWriter class, which implements the basic functionalities for writing XML files.
Definition at line 43 of file xml_parameter_writer.h.
| dealii::ParameterGui::XMLParameterWriter::XMLParameterWriter | ( | QTreeWidget * | tree_widget | ) |
Constructor. Parameter values from tree_widget will be written.
Definition at line 26 of file xml_parameter_writer.cpp.
| bool dealii::ParameterGui::XMLParameterWriter::write_xml_file | ( | QIODevice * | device | ) |
This function writes the parameter values stored in tree_widget to device in XML format. We use the QXmlStreamWriter class for this. The root element is <ParameterHandler>
Definition at line 34 of file xml_parameter_writer.cpp.
|
private |
This function writes a given item of tree_widget to a file in XML format. For this the QXmlStreamWriter class is used. If the item is a parameter, the elements that describes this parameter are written:
If the item is a subsection, a start element this_subsection is written and write_item is called recursively to write the next item.
Definition at line 50 of file xml_parameter_writer.cpp.
|
private |
Reimplemented from the ParameterHandler class. Mangle a string s so that it doesn't contain any special characters or spaces.
Definition at line 73 of file xml_parameter_writer.cpp.
|
private |
An QXmlStreamWriter object which implements the functionalities we need for writing parameters to XML files.
Definition at line 88 of file xml_parameter_writer.h.
|
private |
A pointer to the QTreeWidget structure which stores the parameters.
Definition at line 93 of file xml_parameter_writer.h.
1.8.12