De/serializes objects from/to this class' config-file-like grammar. More...
#include <wesnoth_serializer.hpp>
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. |
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.
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.
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.
typedef wesnoth_serializer<node_type> s11n::io::wesnoth_serializer< NodeType >::this_type |
Definition at line 44 of file wesnoth_serializer.hpp.
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.
virtual s11n::io::wesnoth_serializer< NodeType >::~wesnoth_serializer | ( | ) | [inline, virtual] |
Definition at line 52 of file wesnoth_serializer.hpp.
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().
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.