#include <wesnoth_serializer.hpp>
Inheritance diagram for s11n::io::wesnoth_serializer< NodeType >:
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. |
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.
|
Reimplemented from s11n::io::tree_builder_lexer< NodeType, sharing::wesnoth_sharing_context >. Definition at line 42 of file wesnoth_serializer.hpp. |
|
Reimplemented from s11n::io::tree_builder_lexer< NodeType, sharing::wesnoth_sharing_context >. Definition at line 45 of file wesnoth_serializer.hpp. |
|
Definition at line 44 of file wesnoth_serializer.hpp. |
|
Definition at line 47 of file wesnoth_serializer.hpp. References s11n::io::data_node_serializer< NodeType >::magic_cookie(), and MAGIC_COOKIE_WESNOTH. |
|
Definition at line 52 of file wesnoth_serializer.hpp. |
|
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(). |
|
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(). |