]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/performer.hh
release: 0.1.0
[lilypond.git] / lily / include / performer.hh
1 /*
2   performer.hh -- declare Performer
3
4   (c) 1996, 1997 Han-Wen Nienhuys <hanwen@stack.nl>
5                  Jan Nieuwenhuizen <jan@digicash.com>
6  */
7
8 #ifndef PERFORMER_HH
9 #define PERFORMER_HH
10
11 #include "lily-proto.hh"
12 #include "varray.hh"
13 #include "request.hh"
14 #include "score-elem-info.hh"
15 #include "staff-info.hh"
16
17 class Performer {
18     bool init_b_;
19 public:
20     DECLARE_MY_RUNTIME_TYPEINFO;
21     Performer_group_performer* daddy_perf_l_;
22
23     Performer();
24     virtual ~Performer();
25
26     
27     void print() const;
28     virtual void process_requests();
29
30     virtual void set( Moment mom );
31     // <ugh>
32     virtual void set_track( int& track_i_r );
33     virtual int get_track_i() const;
34     // </ugh>
35
36     virtual bool try_request( Request* req_l );
37
38     virtual void do_removal_processing();
39     void creation_processing();
40 protected:
41     virtual void do_creation_processing();
42
43     virtual bool do_try_request(Request*);
44     virtual int get_tempo_i() const;
45     virtual void do_print() const;
46     virtual Moment get_mom() const;
47     virtual void play_event( Midi_item* l );
48
49 };
50
51 #include "global-performers.hh"
52
53 #endif // PERFORMER_HH