Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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.

Namespaces

namespace  s11n
namespace  s11n::io

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

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)
 Tries to load a node from the given input stream.
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 Sun Dec 25 20:34:56 2005 for libs11n-1.2.3 by  doxygen 1.4.4