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

De/serializes objects from/to a simple XML grammar, with all properties and children stored as subnodes. More...

#include <funxml_serializer.hpp>

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

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

Collaboration graph
[legend]

List of all members.

Public Types

typedef NodeType node_type
typedef
funxml_serializer
< node_type
this_type
typedef
tree_builder_lexer
< node_type,
sharing::funxml_sharing_context
parent_type

Public Member Functions

 funxml_serializer ()
virtual ~funxml_serializer ()
virtual const
entity_translation_map
entity_translations () const
 Reimplemented to return this type's entity translation map.
virtual node_typedeserialize (std::istream &src)
 Overridden to parse src using this object's grammar rules.
virtual node_typedeserialize (const std::string &src)
virtual bool serialize (const node_type &src, std::ostream &dest)
 Writes src out to dest.


Detailed Description

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

De/serializes objects from/to a simple XML grammar, with all properties and children stored as subnodes.

Definition at line 46 of file funxml_serializer.hpp.


Member Typedef Documentation

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

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

Definition at line 49 of file funxml_serializer.hpp.

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

Definition at line 51 of file funxml_serializer.hpp.

template<typename NodeType>
typedef tree_builder_lexer<node_type,sharing::funxml_sharing_context> s11n::io::funxml_serializer< NodeType >::parent_type

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

Definition at line 52 of file funxml_serializer.hpp.


Constructor & Destructor Documentation

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

Definition at line 54 of file funxml_serializer.hpp.

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

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

Definition at line 59 of file funxml_serializer.hpp.


Member Function Documentation

template<typename NodeType>
virtual const entity_translation_map& s11n::io::funxml_serializer< NodeType >::entity_translations (  )  const [inline, virtual]

Reimplemented to return this type's entity translation map.

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

Definition at line 65 of file funxml_serializer.hpp.

References s11n::io::funxml_serializer_translations().

template<typename NodeType>
virtual node_type* s11n::io::funxml_serializer< NodeType >::deserialize ( std::istream &  src  )  [inline, virtual]

Overridden to parse src using this object's grammar rules.

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

Definition at line 74 of file funxml_serializer.hpp.

template<typename NodeType>
virtual node_type* s11n::io::funxml_serializer< NodeType >::deserialize ( const std::string &  src  )  [inline, virtual]

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

Definition at line 80 of file funxml_serializer.hpp.

References s11n::deserialize().

template<typename NodeType>
virtual bool s11n::io::funxml_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 91 of file funxml_serializer.hpp.


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