Orcus
Loading...
Searching...
No Matches
orcus::yaml_handler Class Reference

#include <yaml_parser.hpp>

Public Member Functions

void begin_parse ()
 
void end_parse ()
 
void begin_document ()
 
void end_document ()
 
void begin_sequence ()
 
void end_sequence ()
 
void begin_map ()
 
void begin_map_key ()
 
void end_map_key ()
 
void end_map ()
 
void string (std::string_view value)
 
void number (double val)
 
void boolean_true ()
 
void boolean_false ()
 
void null ()
 

Detailed Description

Blank handler class for yaml_parser. One can sub-class this and overwrite callback functions one needs to handle.

Member Function Documentation

◆ begin_document()

void orcus::yaml_handler::begin_document ( )
inline

Called when a new document is encountered.

◆ begin_map()

void orcus::yaml_handler::begin_map ( )
inline

Called when a map begins.

◆ begin_map_key()

void orcus::yaml_handler::begin_map_key ( )
inline

Called when the parser starts parsing a map key.

◆ begin_parse()

void orcus::yaml_handler::begin_parse ( )
inline

Called when the parser starts parsing a content.

◆ begin_sequence()

void orcus::yaml_handler::begin_sequence ( )
inline

Called when a sequence begins.

◆ boolean_false()

void orcus::yaml_handler::boolean_false ( )
inline

Called when a boolean 'false' keyword is encountered.

◆ boolean_true()

void orcus::yaml_handler::boolean_true ( )
inline

Called when a boolean 'true' keyword is encountered.

◆ end_document()

void orcus::yaml_handler::end_document ( )
inline

Called when the parser has finished parsing a document.

◆ end_map()

void orcus::yaml_handler::end_map ( )
inline

Called when the parser finishes parsing an entire map.

◆ end_map_key()

void orcus::yaml_handler::end_map_key ( )
inline

Called when the parser finishes parsing a map key.

◆ end_parse()

void orcus::yaml_handler::end_parse ( )
inline

Called when the parser finishes parsing an entire content.

◆ end_sequence()

void orcus::yaml_handler::end_sequence ( )
inline

Called when a sequence ends.

◆ null()

void orcus::yaml_handler::null ( )
inline

Called when a 'null' keyword is encountered.

◆ number()

void orcus::yaml_handler::number ( double val)
inline

Called when a numeric value is encountered.

Parameters
valnumeric value.

◆ string()

void orcus::yaml_handler::string ( std::string_view value)
inline

Called when a string value is encountered.

Parameters
valuestring value.