]> git.donarmstrong.com Git - lilypond.git/blob - lib/include/input.hh
release: 0.1.11
[lilypond.git] / lib / include / input.hh
1 /*
2   input.hh -- declare Input
3
4   source file of the LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #ifndef INPUT_HH
11 #define INPUT_HH
12
13 #include "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_ch_C_ ;
20     Source_file * source_file_l_;
21 public:
22     
23     void warning(String) const; // should use member func?
24     void error(String) const;
25     void message(String) const;
26     void set_spot(Input const &);
27     
28     String location_str() const;
29     Input(Source_file*, char const*);
30     Input();
31     Input( Input const& );
32 };
33
34 #endif // INPUT_HH