Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

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

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 399 of file data_node_functor.h.


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

  • Ser must be valid references.

  • Both ser and os must outlive this object. More correctly, this object's operator() must not be called after either ser or os are destroyed.

Definition at line 414 of file data_node_functor.h.


The documentation for this struct was generated from the following file:
Generated on Tue Jul 20 10:46:50 2004 for s11n by doxygen 1.3.7