Added default constructor to Parser, and cleaned it up a bit

This commit is contained in:
Jesse Beder
2009-10-19 22:40:46 +00:00
parent 59b0e986bf
commit ed570b9f7c
2 changed files with 15 additions and 15 deletions

View File

@@ -4,21 +4,24 @@
#define PARSER_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#include "node.h"
#include "parserstate.h"
#include "noncopyable.h"
#include <ios>
#include <string>
#include <vector>
#include <map>
#include "node.h"
#include "parserstate.h"
#include <memory>
namespace YAML
{
class Scanner;
struct Token;
class Parser
class Parser: private noncopyable
{
public:
Parser();
Parser(std::istream& in);
~Parser();
@@ -35,12 +38,7 @@ namespace YAML
void HandleTagDirective(Token *pToken);
private:
// can't copy this
Parser(const Parser&) {}
Parser& operator = (const Parser&) { return *this; }
private:
Scanner *m_pScanner;
std::auto_ptr<Scanner> m_pScanner;
ParserState m_state;
};
}