mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-10 13:01:18 +00:00
Started the parser.
This commit is contained in:
21
reader.cpp
Normal file
21
reader.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "reader.h"
|
||||
#include "scanner.h"
|
||||
#include "parser.h"
|
||||
|
||||
namespace YAML
|
||||
{
|
||||
Reader::Reader(std::istream& in): m_pParser(0)
|
||||
{
|
||||
m_pParser = new Parser(in);
|
||||
}
|
||||
|
||||
Reader::~Reader()
|
||||
{
|
||||
delete m_pParser;
|
||||
}
|
||||
|
||||
void Reader::GetNextDocument(Document& document)
|
||||
{
|
||||
m_pParser->GetNextDocument(document);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user