]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/acceptor.hh
release: 0.0.74pre
[lilypond.git] / lily / include / acceptor.hh
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..872f374aee2478554c9491d4837f3759d8b8a04b 100644 (file)
@@ -0,0 +1,41 @@
+/*
+  acceptor.hh -- declare Translator
+
+  source file of the GNU LilyPond music typesetter
+
+  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
+
+
+#ifndef ACCEPTOR_HH
+#define ACCEPTOR_HH
+#error
+
+#include "string.hh"
+#include "lily-proto.hh"
+#include "interpreter.hh"
+#include "virtual-methods.hh"
+
+class Translator {
+public:
+    String id_str_;
+    
+    int iterator_count_;
+    
+    virtual Interpreter * interpreter_l() { return 0; }
+
+    /// Score_engraver = 0, Staff_engravers = 1, etc)
+    virtual int depth_i()const=0;
+    virtual Translator *find_get_translator_l(String name, String id)=0;
+    virtual Translator *ancestor_l(int l=1)=0;
+    virtual ~Translator(){}
+    NAME_MEMBERS();
+    Translator();
+    virtual Translator *get_default_interpreter()=0;
+};
+
+class Interpreter : public virtual Translator {
+public:
+    virtual bool interpret_request_b(Request*) { return false;}
+};
+#endif // ACCEPTOR_HH