Inherits from orcus::yaml::parser_base
Public Types
Public Functions
orcus::yaml_parser::yaml_parser(const char *p, size_t n, handler_type &hdl)¶orcus::yaml_parser::parse()¶Public Functions
yaml_parser_handler::begin_parse()¶Called when the parser starts parsing a content.
yaml_parser_handler::end_parse()¶Called when the parser finishes parsing an entire content.
yaml_parser_handler::begin_document()¶Called when a new document is encountered.
yaml_parser_handler::end_document()¶Called when the parser has finished parsing a document.
yaml_parser_handler::begin_sequence()¶Called when a sequence begins.
yaml_parser_handler::end_sequence()¶Called when a sequence ends.
yaml_parser_handler::begin_map()¶Called when a map begins.
yaml_parser_handler::begin_map_key()¶Called when the parser starts parsing a map key.
yaml_parser_handler::end_map_key()¶Called when the parser finishes parsing a map key.
yaml_parser_handler::end_map()¶Called when the parser finishes parsing an entire map.
yaml_parser_handler::string(const char *p, size_t n)¶Called when a string value is encountered.
p: pointer to the first character of the string value. len: length of the string value. yaml_parser_handler::number(double val)¶Called when a numeric value is encountered.
val: numeric value. yaml_parser_handler::boolean_true()¶Called when a boolean ‘true’ keyword is encountered.
yaml_parser_handler::boolean_false()¶Called when a boolean ‘false’ keyword is encountered.
yaml_parser_handler::null()¶Called when a ‘null’ keyword is encountered.