]> git.tdb.fi Git - libs/datafile.git/blob - source/input.h
Some more code reformatting
[libs/datafile.git] / source / input.h
1 /* $Id$
2
3 This file is part of libmspdatafile
4 Copyright © 2006  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7 #ifndef MSP_DATAFILE_INPUT_H_
8 #define MSP_DATAFILE_INPUT_H_
9
10 #include <msp/io/base.h>
11
12 namespace Msp {
13 namespace DataFile {
14
15 class Input
16 {   
17 private:
18         IO::Base &in;
19         unsigned line;
20         int next;
21
22 public:
23         Input(IO::Base &); 
24
25         int get();
26         int peek();
27         unsigned get_line_number() const { return line; }
28         operator bool() const;
29 };  
30
31 } // namespace DataFile
32 } // namespace Msp
33
34 #endif