From: fred Date: Tue, 1 Jul 1997 08:52:30 +0000 (+0000) Subject: lilypond-0.0.71pre X-Git-Tag: release/1.5.59~6124 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b3abb0061341cc0d2b9756f55d3b825b45b02eb4;p=lilypond.git lilypond-0.0.71pre --- diff --git a/lily/acceptor.cc b/lily/acceptor.cc new file mode 100644 index 0000000000..0164b83b24 --- /dev/null +++ b/lily/acceptor.cc @@ -0,0 +1,16 @@ +/* + acceptor.cc -- implement Acceptor + + source file of the GNU LilyPond music typesetter + + (c) 1997 Han-Wen Nienhuys +*/ + +#include "acceptor.hh" +Acceptor::Acceptor() +{ + iterator_count_ = 0; +} + +IMPLEMENT_STATIC_NAME(Acceptor); +IMPLEMENT_IS_TYPE_B(Acceptor); diff --git a/lily/include/acceptor.hh b/lily/include/acceptor.hh new file mode 100644 index 0000000000..f298951081 --- /dev/null +++ b/lily/include/acceptor.hh @@ -0,0 +1,40 @@ +/* + acceptor.hh -- declare Acceptor + + source file of the GNU LilyPond music typesetter + + (c) 1997 Han-Wen Nienhuys +*/ + + +#ifndef ACCEPTOR_HH +#define ACCEPTOR_HH + +#include "string.hh" +#include "lily-proto.hh" +#include "interpreter.hh" +#include "virtual-methods.hh" + +class Acceptor { +public: + String id_str_; + + int iterator_count_; + + virtual Interpreter * interpreter_l() { return 0; } + + /// Score_register = 0, Staff_registers = 1, etc) + virtual int depth_i()const=0; + virtual Acceptor *find_get_acceptor_l(String name, String id)=0; + virtual Acceptor *ancestor_l(int l=1)=0; + virtual ~Acceptor(){} + NAME_MEMBERS(); + Acceptor(); + virtual Acceptor *get_default_interpreter()=0; +}; + +class Interpreter : public virtual Acceptor { +public: + virtual bool interpret_request_b(Request*) { return false;} +}; +#endif // ACCEPTOR_HH