]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/input.hh
``slikken kreng''
[lilypond.git] / flower / include / input.hh
1 /*
2   input.hh -- declare Input
3
4   source file of the LilyPond music typesetter
5
6   (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef INPUT_HH
11 #define INPUT_HH
12
13 #include "flower-proto.hh"
14
15 /**
16   Base class for anything that records its poisition in the parse file.
17  */
18 class Input {
19   char const *defined_str0_ ;
20   Source_file * source_file_;
21 public:
22     
23   void warning (String) const; // should use member func?
24   void non_fatal_error (String) const;
25   void error (String) const;
26   void message (String) const;
27   void set_spot (Input const &);
28   Input spot () const;
29   String location_string () const;
30   String line_number_string () const;
31
32
33   String file_string ()const;
34   int line_number ()const;
35   int column_number ()const;
36
37   
38   Input (Source_file*, char const*);
39   Input ();
40 };
41
42 #endif // INPUT_HH