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