(editor-command-template-alist): Use char iso
[lilypond/patrick.git] / lily / include / input.hh
blobe5ad3b42c5a44e17d561db13a1018a6f5e78c12e
1 /*
2 input.hh -- declare Input
4 source file of the LilyPond music typesetter
6 (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #ifndef INPUT_HH
10 #define INPUT_HH
12 #include "flower-proto.hh"
14 /**
15 Base class for anything that records its poisition in the parse file.
17 class Input
19 char const *start_;
20 char const *end_;
21 Source_file *source_file_;
23 public:
24 Source_file *get_source_file () const;
25 char const *start () const;
26 char const *end () const;
28 void set (Source_file *, char const *, char const *);
29 void warning (String) const; // should use member func?
30 void non_fatal_error (String) const;
31 void error (String) const;
32 void message (String) const;
33 void set_spot (Input const &);
34 void step_forward ();
35 void set_location (Input const &, Input const &);
36 Input spot () const;
37 String location_string () const;
38 String line_number_string () const;
39 String file_string ()const;
41 int line_number ()const;
42 int column_number ()const;
43 int end_line_number ()const;
44 int end_column_number ()const;
46 void get_counts (int*line, int *char_count, int *col) const;
48 Input (Input const &i);
49 Input ();
52 #endif // INPUT_HH