yaml_handler¶
Defined in header: <orcus/yaml_parser.hpp>
-
class yaml_handler¶
Blank handler class for yaml_parser. One can sub-class this and overwrite callback functions one needs to handle.
Public Functions
-
inline void begin_parse()¶
Called when the parser starts parsing a content.
-
inline void end_parse()¶
Called when the parser finishes parsing an entire content.
-
inline void begin_document()¶
Called when a new document is encountered.
-
inline void end_document()¶
Called when the parser has finished parsing a document.
-
inline void begin_sequence()¶
Called when a sequence begins.
-
inline void end_sequence()¶
Called when a sequence ends.
-
inline void begin_map()¶
Called when a map begins.
-
inline void begin_map_key()¶
Called when the parser starts parsing a map key.
-
inline void end_map_key()¶
Called when the parser finishes parsing a map key.
-
inline void end_map()¶
Called when the parser finishes parsing an entire map.
-
inline void string(std::string_view value)¶
Called when a string value is encountered.
- Parameters:
value – string value.
-
inline void number(double val)¶
Called when a numeric value is encountered.
- Parameters:
val – numeric value.
-
inline void boolean_true()¶
Called when a boolean ‘true’ keyword is encountered.
-
inline void boolean_false()¶
Called when a boolean ‘false’ keyword is encountered.
-
inline void null()¶
Called when a ‘null’ keyword is encountered.
-
inline void begin_parse()¶