-/* $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_
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