data_node_io.hpp File Reference

#include <string>
#include <sstream>
#include <list>
#include <map>
#include <deque>
#include <iostream>
#include <memory>
#include <cassert>
#include <typeinfo>
#include <s11n.net/s11n/phoenix.hpp>
#include <s11n.net/s11n/exception.hpp>
#include <s11n.net/s11n/s11n_debuggering_macros.hpp>
#include <s11n.net/s11n/classload.hpp>
#include <s11n.net/s11n/serialize.hpp>
#include <s11n.net/s11n/traits.hpp>
#include <s11n.net/s11n/export.hpp>

Go to the source code of this file.

Classes

class  s11n::io::data_node_serializer< NodeT >
 data_node_serializer provides an interface for saving/loading a given abstract data node type to/from streams. More...

Namespaces

namespace  s11n
 

The s11n serialization (s11n) framework is an object serialization framework for C++ modelled heavily off work by Rusty Ballinger (bozo@users.sourceforge.net http://libfunutil.sourceforge.net).


namespace  s11n::io
 

The s11n::io namespace defines some i/o-related types which conform to the conventions expected by the s11n::de/serialize() core functions.


Defines

#define s11n_SERIALIZER_ENABLE_INTERACTIVE   0

Functions

std::ostream * s11n::io::get_ostream (const std::string name)
 Returns an output stream for the given file name.
std::istream * s11n::io::get_istream (const std::string name, bool ExternalData=true)
 Returns an input stream for the given file name.
std::string s11n::io::get_magic_cookie (const std::string &src, bool ExternalData=true)
 Convenience function for grabbing the first line of a file.
std::string s11n::io::get_magic_cookie (std::istream &is)
 Convenience function for grabbing the first line of a stream.
template<typename NodeType >
data_node_serializer< NodeType > * s11n::io::guess_serializer (std::istream &is)
 Tries to guess which Serializer can be used to read is.
template<typename NodeType >
data_node_serializer< NodeType > * s11n::io::guess_serializer (std::string const &infile)
 An overload which assumes infile is a local file.
template<typename NodeType >
NodeType * s11n::io::load_node_classload_serializer (std::istream &is)
 Tries to load a NodeType object from the given node.
template<typename NodeType >
NodeType * s11n::io::load_node_classload_serializer (std::string const &src)
 Overloaded to take a filename.
template<typename NodeType >
NodeType * s11n::io::load_node (std::istream &is)
 Returns a node pointer, parsed from the given stream, using s11n::io::data_node_serializer<NodeType> as the base type for looking up a stream handler.
template<typename NodeType >
NodeType * s11n::io::load_node (const std::string &src, bool ExternalData=true)
 Overloaded form of load_node( istream ), provided for convenience.
template<typename NodeT , typename SerializableT >
SerializableT * s11n::io::load_serializable (std::istream &src)
 Tries to load a SerializableT from the given stream.
template<typename NodeT , typename SerializableT >
SerializableT * s11n::io::load_serializable (const std::string &src, bool ExternalData=true)
 An overloaded form which takes an input string.

Define Documentation

#define s11n_SERIALIZER_ENABLE_INTERACTIVE   0

Definition at line 42 of file data_node_io.hpp.


Generated on Sat Mar 20 12:29:24 2010 for libs11n-1.2.10 by  doxygen 1.6.1