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

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, sharing::wesnoth_sharing_context > 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_mapentity_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, sharing::wesnoth_sharing_context >.

Definition at line 42 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, sharing::wesnoth_sharing_context >.

Definition at line 45 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.


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().

Referenced by s11n::io::wesnoth_serializer< NodeType >::serialize().

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.

References s11n::io::wesnoth_serializer< NodeType >::entity_translations(), INDENT, s11n::io::data_node_serializer< NodeType >::magic_cookie(), s11n::plugin::open(), s11n::io::strtool::translate_entities(), and s11n::val().


The documentation for this class was generated from the following file:
Generated on Sat Dec 10 13:34:00 2005 for libs11n-1.2.1 by  doxygen 1.4.4