X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput.h;h=a9c96f48abce9cdf9e533e640f3913c8849e0d7f;hb=HEAD;hp=9fa4b853a668640736fb4a37f97bf1c71ef23fd3;hpb=7df5e45c7f414f6a07681dc4ec2abb63b091a309;p=libs%2Fdatafile.git diff --git a/source/input.h b/source/input.h index 9fa4b85..6cc53e7 100644 --- a/source/input.h +++ b/source/input.h @@ -1,25 +1,29 @@ #ifndef MSP_DATAFILE_INPUT_H_ #define MSP_DATAFILE_INPUT_H_ +#include #include namespace Msp { namespace DataFile { -class Input +class Input: private NonCopyable { private: - IO::Base ∈ - unsigned line; - int next; + IO::Base *in = nullptr; + IO::Base *compressed = nullptr; + unsigned line = 1; + int next = -1; public: Input(IO::Base &); + ~Input(); + void set_decompress(); int get(); int peek(); unsigned get_line_number() const { return line; } - operator bool() const; + explicit operator bool() const; }; } // namespace DataFile