Writes the current state of namespaces as XML to an output stream or reads the state of namespaces as XML from an input stream. More...
#include <InstantIO/StateKeeperXML.h>
Static Public Member Functions | |
| static void | save (Namespace &ns, std::ostream &os) |
| Saves the state as XML. | |
| static void | load (Namespace &ns, std::istream &is) |
| Loads a XML-encoded state. | |
| static void | load (Namespace &ns, const Hermes::URL &url) |
| Loads the state. | |
Writes the current state of namespaces as XML to an output stream or reads the state of namespaces as XML from an input stream.
| static void InstantIO::StateKeeperXML::save | ( | Namespace & | ns, | |
| std::ostream & | os | |||
| ) | [static] |
Saves the state as XML.
Writes the current state of a namespace (i.e. all subnamespaces, nodes and routes) as XML to an output stream.
| ns | The namespace whose current state we want to write to the output stream. | |
| os | The output stream we want to write the current state of the namespace to. |
| static void InstantIO::StateKeeperXML::load | ( | Namespace & | ns, | |
| std::istream & | is | |||
| ) | [static] |
Loads a XML-encoded state.
Fills a namespace with a state (i.e. subnamespaces, nodes and routes) read as XML from an input stream.
| ns | The namespace we fill with the stored state | |
| is | The input stream we want to read the namespace from. |
| static void InstantIO::StateKeeperXML::load | ( | Namespace & | ns, | |
| const Hermes::URL & | url | |||
| ) | [static] |
Loads the state.
Fills a namespace with a state (i.e. subnamespaces, nodes and routes) read from an URL.
| ns | The namespace we fill with the stored state | |
| url | The URL we want to read the namespace from. |
1.6.3