]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/swallow-engraver.cc
2003 -> 2004
[lilypond.git] / lily / swallow-engraver.cc
index 0a86e7163aee7e43bf47c64f7016d88f46313078..4bda0a7ebf1c6ef177375642b7cf68a75c95c3ef 100644 (file)
@@ -3,13 +3,21 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
-#include "swallow-engraver.hh"
 
+#include "engraver.hh"
 
+/**
+ */
+class Swallow_engraver : public Engraver
+{
+public:
+  TRANSLATOR_DECLARATIONS(Swallow_engraver);
+protected:
+  bool try_music (Music*) ;
+};
 
-ADD_THIS_TRANSLATOR(Swallow_engraver);
 
 
 bool
@@ -17,3 +25,16 @@ Swallow_engraver::try_music (Music*)
 {
   return true;
 }
+
+Swallow_engraver::Swallow_engraver ()
+{
+}
+
+ENTER_DESCRIPTION(Swallow_engraver,
+/* descr */       "This engraver swallows everything given to it silently. The purpose of "
+                 "this is to prevent spurious \"event junked\" warnings.",
+/* creats*/       "",
+/* accepts */     "general-music",
+/* acks  */       "",
+/* reads */       "",
+/* write */       "");