|
BRE12
|
A parser turns a stream of bytes into one stream of "events" per YAML document in the input stream. More...
#include <parser.h>
Public Member Functions | |
| Parser () | |
| Constructs an empty parser (with no input. More... | |
| Parser (std::istream &in) | |
| Constructs a parser from the given input stream. More... | |
| operator bool () const | |
| Evaluates to true if the parser has some valid input to be read. More... | |
| void | Load (std::istream &in) |
| Resets the parser with the given input stream. More... | |
| bool | HandleNextDocument (EventHandler &eventHandler) |
| Handles the next document by calling events on the. More... | |
| void | PrintTokens (std::ostream &out) |
A parser turns a stream of bytes into one stream of "events" per YAML document in the input stream.
| YAML::Parser::Parser | ( | ) |
Constructs an empty parser (with no input.
|
explicit |
Constructs a parser from the given input stream.
The input stream must live as long as the parser.
| bool YAML::Parser::HandleNextDocument | ( | EventHandler & | eventHandler | ) |
Handles the next document by calling events on the.
.
| a | ParserException on error. |
| void YAML::Parser::Load | ( | std::istream & | in | ) |
Resets the parser with the given input stream.
Any existing state is erased.
|
explicit |
Evaluates to true if the parser has some valid input to be read.
1.8.12