]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/translator-group.hh
b302aefcdb8cd0a19eed19b5651eafa58710bd63
[lilypond.git] / lily / include / translator-group.hh
1 /*
2   translator-group.hh -- declare Translator_group
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef TRANSLATOR_GROUP_HH
11 #define TRANSLATOR_GROUP_HH
12
13 #include "string.hh"
14 #include "lily-proto.hh"
15 #include "virtual-methods.hh"
16 #include "translator.hh"
17 #include "parray.hh"
18 #include "smobs.hh"
19
20 typedef void (Translator::*Translator_method) (void);
21
22 class Translator_group : public virtual Translator {
23 protected:
24   
25 public:
26   VIRTUAL_COPY_CONS (Translator);
27
28 public:
29   virtual Translator_group* get_daddy_translator ()const;
30   virtual SCM get_simple_trans_list ();
31   virtual bool try_music (Music* req);       
32   virtual void initialize ();
33 };
34
35
36 SCM names_to_translators (SCM namelist, Context*tg);
37 void recurse_down_translators (Context * c, Translator_method ptr, Direction);
38 void translator_each (SCM list, Translator_method method);
39
40
41 #endif // TRANSLATOR_GROUP_HH