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 the file. |
Variable Details¶
parser¶
yaml_parser_t parser
LibYAML parser.
event¶
yaml_event_t event
LibYAML event.
Function Details¶
YAMLParser¶
YAMLParser()
Constructor.
-
filename
- File name.
~YAMLParser¶
~YAMLParser()
Destructor.
parse¶
YAMLNode parse(const std::filesystem::path& filename)
Parse the file.
- Return
- The contents of the file.