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

De/serializes objects from/to this class' config-file-like grammar. More...

#include <wesnoth_serializer.hpp>

Inheritance diagram for s11n::io::wesnoth_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
wesnoth_serializer
< node_type
this_type
typedef
tree_builder_lexer
< node_type,
sharing::wesnoth_sharing_context
parent_type

Public Member Functions

 wesnoth_serializer ()
virtual ~wesnoth_serializer ()
virtual const
entity_translation_map
entity_translations () const
 Reimplemented to return this type's entity translation map.
virtual bool serialize (const node_type &src, std::ostream &dest)
 Writes src out to dest.


Detailed Description

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

De/serializes objects from/to this class' config-file-like grammar.

It gets its name, and most of its grammar, from the Open Source strategy/adventure game "The Battle for Wesnoth" (www.wesnoth.org).

Definition at line 39 of file wesnoth_serializer.hpp.


Member Typedef Documentation

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

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

Definition at line 42 of file wesnoth_serializer.hpp.

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

Definition at line 44 of file wesnoth_serializer.hpp.

template<typename NodeType>
typedef tree_builder_lexer<node_type,sharing::wesnoth_sharing_context> s11n::io::wesnoth_serializer< NodeType >::parent_type

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

Definition at line 45 of file wesnoth_serializer.hpp.


Constructor & Destructor Documentation

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

Definition at line 47 of file wesnoth_serializer.hpp.

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

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

Definition at line 52 of file wesnoth_serializer.hpp.


Member Function Documentation

template<typename NodeType>
virtual const entity_translation_map& s11n::io::wesnoth_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 58 of file wesnoth_serializer.hpp.

References s11n::io::wesnoth_serializer_translations().

template<typename NodeType>
virtual bool s11n::io::wesnoth_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 67 of file wesnoth_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