2 type-swallow-engraver.hh -- declare Type_swallow_translator
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef TYPESWALLOW_GRAV_HH
11 #define TYPESWALLOW_GRAV_HH
13 #include "translator.hh"
15 /** eat a certain type of request.
16 (Duh, it's good for your skin)
18 class Type_swallow_translator : public virtual Translator
22 bool try_music (Music*);
24 VIRTUAL_COPY_CONS (Translator);
27 #define DECLARE_REQUEST_SWALLOWER(TYPE) \
28 struct TYPE ## _swallow_translator : public Type_swallow_translator {\
29 TYPE ## _swallow_translator () { \
30 swallow_str_ = #TYPE;\
33 VIRTUAL_COPY_CONS (Translator);\
35 ADD_THIS_TRANSLATOR (TYPE ## _swallow_translator);\
37 #endif // TYPESWALLOW_GRAV_HH