XML configuration backend that stores the config to an XML file.
More...
#include <conf_backend_xml.hpp>
List of all members.
Detailed Description
XML configuration backend that stores the config to an XML file.
This is not a live backend so it needs explicit calls on save and load on the conf_node.
Constructor & Destructor Documentation
| psynth::base::conf_backend_xml::conf_backend_xml |
( |
const std::string & |
file | ) |
[inline] |
Constructor.
- Parameters:
-
| file | The name of the file where to store and load the configuration. |
| psynth::base::conf_backend_xml::~conf_backend_xml |
( |
| ) |
[inline] |
Member Function Documentation
| void psynth::base::conf_backend_xml::attach |
( |
conf_node & |
node | ) |
[inline, virtual] |
| void psynth::base::conf_backend_xml::datach |
( |
conf_node & |
node | ) |
[inline, virtual] |
| void psynth::base::conf_backend_xml::def_load |
( |
conf_node & |
node | ) |
[inline, virtual] |
Loads the content of the XML file into a node but preserving the node values that are already set.
Implements psynth::base::conf_backend.
| const std::string& psynth::base::conf_backend_xml::get_file |
( |
| ) |
[inline] |
Returns the name of the current filename.
| void psynth::base::conf_backend_xml::handle_conf_add_child |
( |
conf_node & |
c | ) |
[inline, virtual] |
| void psynth::base::conf_backend_xml::handle_conf_change |
( |
conf_node & |
c | ) |
[inline, virtual] |
| void psynth::base::conf_backend_xml::handle_conf_del_child |
( |
conf_node & |
c | ) |
[inline, virtual] |
| void psynth::base::conf_backend_xml::handle_conf_nudge |
( |
conf_node & |
c | ) |
[inline, virtual] |
| void psynth::base::conf_backend_xml::load |
( |
conf_node & |
node | ) |
[inline, virtual] |
Loads the conentent of the XML file into a node.
- Parameters:
-
| node | The node where to store the config. |
Implements psynth::base::conf_backend.
| void psynth::base::conf_backend_xml::save |
( |
conf_node & |
node | ) |
[virtual] |
Permanently stores the configuration in the currently set file.
- Parameters:
-
| node | The configuration to store. |
Implements psynth::base::conf_backend.
| void psynth::base::conf_backend_xml::set_file |
( |
const std::string & |
file | ) |
[inline] |
Changes the name of the file to use.
- Parameters:
-
| file | The new file name to use. |
The documentation for this class was generated from the following files: