s11nlite.hpp File Reference

#include <memory>
#include <iterator>
#include <s11n.net/s11n/s11n.hpp>
#include <s11n.net/s11n/io/data_node_io.hpp>
#include <s11n.net/s11n/client_api.hpp>

Include dependency graph for s11nlite.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  s11nlite

Defines

#define S11N_LITE_H_INCLUDED   1
#define s11n_S11NLITE_INCLUDED   1

Typedefs

typedef client_api< s11n::s11n_nodes11nlite::client_interface
 client_interface defines the interface used/returned by the instance() functions.
typedef client_interface::node_type s11nlite::node_type
 node_type is the type used to store/load a Serializable object's data.
typedef client_interface::node_traits s11nlite::node_traits
 The s11n::node_traits type for node_type.
typedef client_interface::serializer_interface s11nlite::serializer_interface
 This is the base-most type of the serializers used by s11nlite.

Functions

client_interface & s11nlite::instance ()
 Returns the client_interface object used by the s11nlite API.
void s11nlite::instance (client_interface *newinstance)
 Sets the client_interface object used by the s11nlite API.
serializer_interface * s11nlite::create_serializer ()
 Returns a new instance of the default serializer class.
serializer_interface * s11nlite::create_serializer (const std::string &classname)
 Returns a new instance of the given serializer class, or 0 if one could not be loaded.
void s11nlite::serializer_class (const std::string &)
 Sets the current Serializer class used by s11nlite's create_serializer().
std::string s11nlite::serializer_class ()
 Gets the name of the current Serializer type.
node_type * s11nlite::find_child (node_type &parent, const std::string subnodename)
 A non-const overload.
const node_type * s11nlite::find_child (const node_type &parent, const std::string subnodename)
 Equivalent to s11n::find_child_by_name( parent, subnodename ).
template<typename SerializableType>
bool s11nlite::serialize (node_type &dest, const SerializableType &src)
 See s11n::serialize().
template<typename SerializableType>
bool s11nlite::serialize_subnode (node_type &dest, const std::string &subnodename, const SerializableType &src)
 See s11n::serialize().
bool s11nlite::save (const node_type &src, std::ostream &dest)
 Saves the given node to the given ostream using the default serializer type.
bool s11nlite::save (const node_type &src, const std::string &filename)
 Saves the given node to the given filename using the default serializer type.
template<typename SerializableType>
bool s11nlite::save (const SerializableType &src, std::ostream &dest)
 Saves the given Serializable to the given ostream using the default serializer type.
template<typename SerializableType>
bool s11nlite::save (const SerializableType &src, const std::string &dest)
 Saves the given Serializable to the given filename using the default serializer type.
node_type * s11nlite::load_node (const std::string &src)
 Tries to load a node from the given filename.
node_type * s11nlite::load_node (std::istream &src)
 Tries to load a node from the given input stream.


Define Documentation

#define S11N_LITE_H_INCLUDED   1

Definition at line 2 of file s11nlite.hpp.

#define s11n_S11NLITE_INCLUDED   1

Definition at line 7 of file s11nlite.hpp.


Generated on Thu Feb 8 10:25:45 2007 for libs11n-1.2.5 by  doxygen 1.5.0