s11n::io::node_child_simple_formatter< SerializerT > Struct Template Reference

A helper functor to loop over serializable children of a node from within a Serializer implementation. More...

#include <data_node_format.hpp>

List of all members.

Public Types

typedef SerializerT serializer_type

Public Member Functions

 node_child_simple_formatter (serializer_type &ser, std::ostream &os, const std::string &prefix="", const std::string &suffix="\n")
 Preconditions:.
template<typename NodeType>
bool operator() (const NodeType *src) const
 Serializes src into this object's target container, using this object's serializer.


Detailed Description

template<typename SerializerT>
struct s11n::io::node_child_simple_formatter< SerializerT >

A helper functor to loop over serializable children of a node from within a Serializer implementation.

Designed for use with std::for_each().

SerializerT must be compatible with data_node_serializer<>.

Definition at line 795 of file data_node_format.hpp.


Member Typedef Documentation

template<typename SerializerT>
typedef SerializerT s11n::io::node_child_simple_formatter< SerializerT >::serializer_type

Definition at line 797 of file data_node_format.hpp.


Constructor & Destructor Documentation

template<typename SerializerT>
s11n::io::node_child_simple_formatter< SerializerT >::node_child_simple_formatter ( serializer_type ser,
std::ostream &  os,
const std::string &  prefix = "",
const std::string &  suffix = "\n" 
) [inline]

Preconditions:.

Definition at line 810 of file data_node_format.hpp.


Member Function Documentation

template<typename SerializerT>
template<typename NodeType>
bool s11n::io::node_child_simple_formatter< SerializerT >::operator() ( const NodeType *  src  )  const [inline]

Serializes src into this object's target container, using this object's serializer.

Definition at line 821 of file data_node_format.hpp.


The documentation for this struct was generated from the following file:
Generated on Wed Jun 4 21:44:21 2008 for libs11n by  doxygen 1.5.3