summaryrefslogtreecommitdiff
path: root/lib/include/input.hh
blob: f87385c4280b384a92738e1021c964fbc9fb0f3f (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
  input.hh -- declare Input

  source file of the LilyPond music typesetter

  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
*/


#ifndef INPUT_HH
#define INPUT_HH

/**
  Base class for anything that records its poisition in the parse file.
 */
class Input {
    char const *defined_ch_C_ ;
    Source_file * source_file_l_;
public:
    
    void warning(String)const; // should use member func?
    void error(String)const;
    void message(String)const;
    void set_spot(Input const &);
    
    String location_str()const;
    Input(Source_file*, char const*);
    Input();
    Input( Input const& );
};

#endif // INPUT_HH