My Project
|
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 (const Parser &)=delete | |
Parser (Parser &&)=delete | |
Parser & | operator= (const Parser &)=delete |
Parser & | operator= (Parser &&)=delete |
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.