s11n::io::compact_serializer< NodeType > Class Template Reference

De/serializes objects from/to a compact binary-like grammar. More...

#include <compact_serializer.hpp>

Inheritance diagram for s11n::io::compact_serializer< NodeType >:

Inheritance graph
[legend]
Collaboration diagram for s11n::io::compact_serializer< NodeType >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef NodeType node_type
typedef compact_serializer<
node_type
this_type
typedef tree_builder_lexer<
node_type, sharing::compact_sharing_context
parent_type
typedef entity_translation_map translation_map

Public Member Functions

 compact_serializer ()
virtual ~compact_serializer ()
virtual bool serialize (const node_type &src, std::ostream &dest)
 Writes src out to dest.

Detailed Description

template<typename NodeType>
class s11n::io::compact_serializer< NodeType >

De/serializes objects from/to a compact binary-like grammar.

Definition at line 31 of file compact_serializer.hpp.


Member Typedef Documentation

template<typename NodeType>
typedef NodeType s11n::io::compact_serializer< NodeType >::node_type

Reimplemented from s11n::io::tree_builder_lexer< NodeType, LexerSharingContext >.

Definition at line 34 of file compact_serializer.hpp.

template<typename NodeType>
typedef compact_serializer<node_type> s11n::io::compact_serializer< NodeType >::this_type

Definition at line 36 of file compact_serializer.hpp.

template<typename NodeType>
typedef tree_builder_lexer<node_type,sharing::compact_sharing_context> s11n::io::compact_serializer< NodeType >::parent_type

Reimplemented from s11n::io::tree_builder_lexer< NodeType, LexerSharingContext >.

Definition at line 37 of file compact_serializer.hpp.

template<typename NodeType>
typedef entity_translation_map s11n::io::compact_serializer< NodeType >::translation_map

Reimplemented from s11n::io::data_node_serializer< NodeType >.

Definition at line 47 of file compact_serializer.hpp.


Constructor & Destructor Documentation

template<typename NodeType>
s11n::io::compact_serializer< NodeType >::compact_serializer (  )  [inline]

Definition at line 39 of file compact_serializer.hpp.

References s11n::io::data_node_serializer< NodeType >::magic_cookie(), and MAGIC_COOKIE_COMPACT.

template<typename NodeType>
virtual s11n::io::compact_serializer< NodeType >::~compact_serializer (  )  [inline, virtual]

Definition at line 45 of file compact_serializer.hpp.


Member Function Documentation

template<typename NodeType>
virtual bool s11n::io::compact_serializer< NodeType >::serialize ( const node_type src,
std::ostream &  dest 
) [inline, virtual]

Writes src out to dest.

Reimplemented from s11n::io::data_node_serializer< NodeType >.

Definition at line 53 of file compact_serializer.hpp.

References s11n::node_traits< NodeT >::children(), s11n::node_traits< NodeT >::class_name(), INSERT, s11n::node_traits< NodeT >::name(), OS_INT, and s11n::node_traits< NodeT >::properties().


The documentation for this class was generated from the following file:
Generated on Thu Feb 8 10:27:56 2007 for libs11n-1.2.5 by  doxygen 1.5.0