X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput.h;h=9fa4b853a668640736fb4a37f97bf1c71ef23fd3;hb=7df5e45c7f414f6a07681dc4ec2abb63b091a309;hp=eeb18407ec2848927cdef93507180987c71d4cbe;hpb=6dd94a7fe90c6467024685fbac769067ddb74688;p=libs%2Fdatafile.git diff --git a/source/input.h b/source/input.h index eeb1840..9fa4b85 100644 --- a/source/input.h +++ b/source/input.h @@ -1,9 +1,3 @@ -/* $Id$ - -This file is part of libmspdatafile -Copyright © 2006 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ #ifndef MSP_DATAFILE_INPUT_H_ #define MSP_DATAFILE_INPUT_H_ @@ -14,16 +8,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