#include "crt.h" #include "stream.h" #include namespace YAML { int Stream::pos() const { return input.tellg(); } char Stream::peek() { return input.peek(); } Stream::operator bool() { return input.good(); } // get // . Extracts a character from the stream and updates our position char Stream::get() { char ch = input.get(); column++; if(ch == '\n') { column = 0; line++; } return ch; } // get // . Extracts 'n' characters from the stream and updates our position std::string Stream::get(int n) { std::string ret; for(int i=0;i