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

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

  • 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 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 Fri Nov 25 17:19:30 2005 for libs11n-1.2.0 by  doxygen 1.4.4