]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/translator-dispatch-list.hh
* lily/include/translator.icc (ADD_ACKNOWLEDGER): new macro.
[lilypond.git] / lily / include / translator-dispatch-list.hh
1 /*
2   translator-dispatch-list.hh -- declare Translator_dispatch_list
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
7
8 */
9
10 #ifndef TRANSLATOR_DISPATCH_LIST_HH
11 #define TRANSLATOR_DISPATCH_LIST_HH
12
13 #include "lily-proto.hh"
14 #include "lily-guile.hh"
15 #include "array.hh"
16 #include "smobs.hh"
17
18 struct Engraver_dispatch_entry
19 {
20   Engraver *engraver_;
21   Engraver_void_function_engraver_grob_info function_;
22 };
23
24 class Engraver_dispatch_list
25 {
26   Array<Engraver_dispatch_entry> dispatch_entries_;
27 public:
28   void apply (Grob_info);
29   SCM static create (SCM trans_list,
30                      SCM iface_list);
31
32   DECLARE_SIMPLE_SMOBS(Engraver_dispatch_list,);
33 };
34
35 #endif /* TRANSLATOR_DISPATCH_LIST_HH */