#ifndef MSP_DATAFILE_INPUT_H_
#define MSP_DATAFILE_INPUT_H_
-#include <istream>
+#include <msp/io/base.h>
namespace Msp {
namespace DataFile {
class Input
{
public:
- Input(std::istream &);
+ Input(IO::Base &);
int get();
int peek();
unsigned get_line_number() const { return line; }
- operator bool() const { return in; }
+ operator bool() const { return !in.eof(); }
private:
- std::istream ∈
+ IO::Base ∈
unsigned line;
int next;
};