]> git.tdb.fi Git - libs/datafile.git/blob - source/input.h
Drop copyright and license notices from source files
[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         unsigned line;
14         int next;
15
16 public:
17         Input(IO::Base &); 
18
19         int get();
20         int peek();
21         unsigned get_line_number() const { return line; }
22         operator bool() const;
23 };  
24
25 } // namespace DataFile
26 } // namespace Msp
27
28 #endif