Moved all code to src/ and include/ directories.

This commit is contained in:
Jesse Beder
2008-07-14 04:33:30 +00:00
parent 4cfa233888
commit cadc04ce47
35 changed files with 43 additions and 33 deletions

25
src/stream.h Normal file
View File

@@ -0,0 +1,25 @@
#pragma once
#include <ios>
#include <string>
namespace YAML
{
struct Stream
{
Stream(std::istream& input_): input(input_), line(0), column(0) {}
int pos() const { return input.tellg(); }
operator std::istream& () { return input; }
operator bool() { return input.good(); }
bool operator !() { return !input; }
char peek() { return input.peek(); }
char get();
std::string get(int n);
void eat(int n = 1);
std::istream& input;
int line, column;
};
}