InstantIO::StateKeeperXML Class Reference

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>

List of all members.

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.

Detailed Description

Writes the current state of namespaces as XML to an output stream or reads the state of namespaces as XML from an input stream.

Author:
Patrick Dähne

Member Function Documentation

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.

Parameters:
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.

Parameters:
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.

Parameters:
ns The namespace we fill with the stored state
url The URL we want to read the namespace from.

The documentation for this class was generated from the following file:
Generated on Thu Jul 31 17:17:32 2014 by  doxygen 1.6.3