X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput.h;h=d30abd618b755c6e4c524ba1174345a1b2da08c8;hb=e1b8089be727f651fc2022d6e7ff775047730e85;hp=ad921ec62963883da68a66092b740b7256553187;hpb=e26f7e98e5d8a5666192a43348b3ca7a35f6b860;p=libs%2Fdatafile.git diff --git a/source/input.h b/source/input.h index ad921ec..d30abd6 100644 --- a/source/input.h +++ b/source/input.h @@ -1,29 +1,29 @@ -/* $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_ +#include #include namespace Msp { namespace DataFile { -class Input +class Input: private NonCopyable { +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; -private: - IO::Base ∈ - unsigned line; - int next; }; } // namespace DataFile