X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput.h;h=e5748662d5a899b9f5b4b6201c69687c084da401;hb=215e719d0ef85f748898660d15d01e77ac551de9;hp=eeb18407ec2848927cdef93507180987c71d4cbe;hpb=6dd94a7fe90c6467024685fbac769067ddb74688;p=libs%2Fdatafile.git diff --git a/source/input.h b/source/input.h index eeb1840..e574866 100644 --- a/source/input.h +++ b/source/input.h @@ -14,16 +14,18 @@ namespace DataFile { class Input { +private: + IO::Base ∈ + unsigned line; + int next; + public: Input(IO::Base &); + int get(); int peek(); unsigned get_line_number() const { return line; } - operator bool() const { return !in.eof(); } -private: - IO::Base ∈ - unsigned line; - int next; + operator bool() const; }; } // namespace DataFile