X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput.h;h=a9c96f48abce9cdf9e533e640f3913c8849e0d7f;hb=b39ce68f12c30eedb272b65fe78baec5864d89ca;hp=eeb18407ec2848927cdef93507180987c71d4cbe;hpb=6dd94a7fe90c6467024685fbac769067ddb74688;p=libs%2Fdatafile.git diff --git a/source/input.h b/source/input.h index eeb1840..a9c96f4 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,21 @@ namespace DataFile { class Input { +private: + IO::Base *in; + IO::Base *compressed; + unsigned line; + int next; + public: Input(IO::Base &); + ~Input(); + + void set_decompress(); 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