]> git.tdb.fi Git - libs/datafile.git/blob - source/input.h
Cosmetic changes
[libs/datafile.git] / source / input.h
1 #ifndef MSP_DATAFILE_INPUT_H_
2 #define MSP_DATAFILE_INPUT_H_
3
4 #include <msp/io/base.h>
5
6 namespace Msp {
7 namespace DataFile {
8
9 class Input
10 {   
11 private:
12         IO::Base *in;
13         IO::Base *compressed;
14         unsigned line;
15         int next;
16
17 public:
18         Input(IO::Base &); 
19         ~Input();
20
21         void set_decompress();
22         int get();
23         int peek();
24         unsigned get_line_number() const { return line; }
25         operator bool() const;
26 };  
27
28 } // namespace DataFile
29 } // namespace Msp
30
31 #endif