YAMLParser¶
class YAMLParser
Parser for YAML config files and YAML frontmatter of Markdown files. Also works for JSON, as YAML is nowadays a superset of JSON.
Variables¶
Name | Description |
---|---|
parser | LibYAML parser. |
event | LibYAML event. |
Functions¶
Name | Description |
---|---|
YAMLParser | Constructor. |
~YAMLParser | Destructor. |
parse | Parse a file. |
Variable Details¶
event¶
yaml_event_t event
LibYAML event.
parser¶
yaml_parser_t parser
LibYAML parser.
Function Details¶
YAMLParser¶
YAMLParser()
Constructor.
parse¶
YAMLNode parse(const std::string& file)
Parse a file.
-
file
- File name.
- Return
- The contents of the file.
~YAMLParser¶
~YAMLParser()
Destructor.