]> git.donarmstrong.com Git - lilypond.git/blob - lily/swallow-engraver.cc
* flower
[lilypond.git] / lily / swallow-engraver.cc
1 /*
2   swallow-engraver.cc -- implement Swallow_engraver
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #include "engraver.hh"
10
11 class Swallow_engraver : public Engraver
12 {
13 public:
14   TRANSLATOR_DECLARATIONS (Swallow_engraver);
15 protected:
16   bool try_music (Music *);
17 };
18
19 bool
20 Swallow_engraver::try_music (Music *)
21 {
22   return true;
23 }
24
25 Swallow_engraver::Swallow_engraver ()
26 {
27 }
28
29 ADD_TRANSLATOR (Swallow_engraver,
30                 /* descr */ "This engraver swallows everything given to it silently. The purpose of "
31                 "this is to prevent spurious \"event junked\" warnings.",
32                 /* creats*/ "",
33                 /* accepts */ "general-music",
34                 /* acks  */ "",
35                 /* reads */ "",
36                 /* write */ "");