#include <data_node_format.hpp>
Public Types | |
typedef NodeType | node_type |
typedef LexerSharingContext | sharing_context |
typedef data_node_serializer < NodeType > | parent_type |
Public Member Functions | |
tree_builder_lexer (const std::string &lexerClassName) | |
lexerClassName = the class name of the FlexLexer subtype associated with this serializer. | |
virtual | ~tree_builder_lexer () |
virtual node_type * | deserialize (std::istream &src) |
Overridden to parse src using this object's lexer. | |
virtual node_type * | deserialize (const std::string &src) |
std::string | lexer_class () const |
Returns this object's lexer class name. | |
Protected Member Functions | |
void | lexer_class (const std::string &classname) |
Sets this object's lexer class name. |
It is useless standalone: it must be subclassed.
It holds the class name of a FlexLexer type so it can be dynamically loaded as needed. It takes the responsibility of instantiating that type and passing off input to subclasses.
Definition at line 646 of file data_node_format.hpp.
typedef NodeType s11n::io::tree_builder_lexer< NodeType, LexerSharingContext >::node_type |
Reimplemented from s11n::io::data_node_serializer< NodeType >.
Reimplemented in s11n::io::compact_serializer< NodeType >, s11n::io::funtxt_serializer< NodeType >, s11n::io::funxml_serializer< NodeType >, s11n::io::parens_serializer< NodeType >, s11n::io::simplexml_serializer< NodeType >, and s11n::io::wesnoth_serializer< NodeType >.
Definition at line 650 of file data_node_format.hpp.
typedef LexerSharingContext s11n::io::tree_builder_lexer< NodeType, LexerSharingContext >::sharing_context |
Definition at line 651 of file data_node_format.hpp.
typedef data_node_serializer<NodeType> s11n::io::tree_builder_lexer< NodeType, LexerSharingContext >::parent_type |
Reimplemented in s11n::io::compact_serializer< NodeType >, s11n::io::funtxt_serializer< NodeType >, s11n::io::funxml_serializer< NodeType >, s11n::io::parens_serializer< NodeType >, s11n::io::simplexml_serializer< NodeType >, and s11n::io::wesnoth_serializer< NodeType >.
Definition at line 652 of file data_node_format.hpp.
s11n::io::tree_builder_lexer< NodeType, LexerSharingContext >::tree_builder_lexer | ( | const std::string & | lexerClassName | ) | [inline, explicit] |
lexerClassName = the class name of the FlexLexer subtype associated with this serializer.
Definition at line 658 of file data_node_format.hpp.
virtual s11n::io::tree_builder_lexer< NodeType, LexerSharingContext >::~tree_builder_lexer | ( | ) | [inline, virtual] |
Definition at line 662 of file data_node_format.hpp.
virtual node_type* s11n::io::tree_builder_lexer< NodeType, LexerSharingContext >::deserialize | ( | std::istream & | src | ) | [inline, virtual] |
Overridden to parse src using this object's lexer.
It uses deserialize_lex_forwarder<sharing_context>()
, passing it this object's lexer_class().
Reimplemented from s11n::io::data_node_serializer< NodeType >.
Reimplemented in s11n::io::funxml_serializer< NodeType >.
Definition at line 669 of file data_node_format.hpp.
virtual node_type* s11n::io::tree_builder_lexer< NodeType, LexerSharingContext >::deserialize | ( | const std::string & | src | ) | [inline, virtual] |
Reimplemented from s11n::io::data_node_serializer< NodeType >.
Reimplemented in s11n::io::funxml_serializer< NodeType >.
Definition at line 677 of file data_node_format.hpp.
std::string s11n::io::tree_builder_lexer< NodeType, LexerSharingContext >::lexer_class | ( | ) | const [inline] |
Returns this object's lexer class name.
Definition at line 688 of file data_node_format.hpp.
Referenced by s11n::io::tree_builder_lexer< NodeType, s11n::io::sharing::funxml_sharing_context >::deserialize().
void s11n::io::tree_builder_lexer< NodeType, LexerSharingContext >::lexer_class | ( | const std::string & | classname | ) | [inline, protected] |