]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/performer.hh
release: 0.0.78
[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     virtual bool try_request( Request* req_l );
32
33     virtual void do_removal_processing();
34     void creation_processing();
35 protected:
36     virtual void do_creation_processing();
37
38     virtual bool do_try_request(Request*);
39     virtual int get_tempo_i() const;
40     virtual void do_print() const;
41     virtual Moment get_mom() const;
42     virtual void play_event( Midi_item* l );
43
44 };
45
46 #include "global-performers.hh"
47
48 #endif // PERFORMER_HH