YAML Parser

template <typename _Handler>
class

Inherits from orcus::yaml::parser_base

Public Types

typedef

Public Functions

orcus::yaml_parser::yaml_parser(const char *p, size_t n, handler_type &hdl)
void orcus::yaml_parser::parse()

Parser Handler

class

Public Functions

void yaml_parser_handler::begin_parse()

Called when the parser starts parsing a content.

void yaml_parser_handler::end_parse()

Called when the parser finishes parsing an entire content.

void yaml_parser_handler::begin_document()

Called when a new document is encountered.

void yaml_parser_handler::end_document()

Called when the parser has finished parsing a document.

void yaml_parser_handler::begin_sequence()

Called when a sequence begins.

void yaml_parser_handler::end_sequence()

Called when a sequence ends.

void yaml_parser_handler::begin_map()

Called when a map begins.

void yaml_parser_handler::begin_map_key()

Called when the parser starts parsing a map key.

void yaml_parser_handler::end_map_key()

Called when the parser finishes parsing a map key.

void yaml_parser_handler::end_map()

Called when the parser finishes parsing an entire map.

void yaml_parser_handler::string(const char *p, size_t n)

Called when a string value is encountered.

Parameters
  • p: pointer to the first character of the string value.
  • len: length of the string value.

void yaml_parser_handler::number(double val)

Called when a numeric value is encountered.

Parameters
  • val: numeric value.

void yaml_parser_handler::boolean_true()

Called when a boolean ‘true’ keyword is encountered.

void yaml_parser_handler::boolean_false()

Called when a boolean ‘false’ keyword is encountered.

void yaml_parser_handler::null()

Called when a ‘null’ keyword is encountered.