2008-06-26 10:49:50 +04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <ios>
|
|
|
|
#include <string>
|
2008-06-30 10:51:22 +04:00
|
|
|
#include "scanner.h"
|
|
|
|
#include "document.h"
|
2008-06-26 10:49:50 +04:00
|
|
|
|
|
|
|
namespace YAML
|
|
|
|
{
|
|
|
|
class Node;
|
|
|
|
|
|
|
|
class Parser
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Parser(std::istream& in);
|
|
|
|
~Parser();
|
|
|
|
|
2008-06-30 10:51:22 +04:00
|
|
|
void GetNextDocument(Document& document);
|
2008-06-26 10:49:50 +04:00
|
|
|
|
|
|
|
private:
|
2008-06-30 10:51:22 +04:00
|
|
|
Scanner m_scanner;
|
2008-06-26 10:49:50 +04:00
|
|
|
};
|
|
|
|
}
|