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

s11n::io::tree_builder_lexer< NodeType, LexerSharingContext > s11n::io::data_node_serializer< NodeType >

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)
 Tries to read a new node from src.


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]

Tries to read a new node from src.

The caller owns the returned pointer, which may be null. Writes src out to dest.

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

Definition at line 62 of file compact_serializer.hpp.


The documentation for this class was generated from the following file:
Generated on Wed Jun 4 21:45:47 2008 for libs11n-1.2.7 by  doxygen 1.5.3