]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/translator-dispatch-list.hh
Run `make grand-replace'.
[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--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef TRANSLATOR_DISPATCH_LIST_HH
10 #define TRANSLATOR_DISPATCH_LIST_HH
11
12 #include "lily-proto.hh"
13 #include "std-vector.hh"
14 #include "smobs.hh"
15
16 struct Engraver_dispatch_entry
17 {
18   Engraver *engraver_;
19   Engraver_void_function_engraver_grob_info function_;
20 };
21
22 class Engraver_dispatch_list
23 {
24   vector<Engraver_dispatch_entry> dispatch_entries_;
25 public:
26   void apply (Grob_info);
27   SCM static create (SCM trans_list,
28                      SCM iface_list, Direction);
29
30   DECLARE_SIMPLE_SMOBS (Engraver_dispatch_list);
31 };
32
33 #endif /* TRANSLATOR_DISPATCH_LIST_HH */