X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fglobal-translator.hh;h=b4381eb70341e3b72a3d54a10ee2601623e94c6b;hb=1cf3d59c1559fb9774c4c1c8cae155cfe54a927c;hp=8344d3d898f9e4214690c2277e97800b4582c99e;hpb=57d6628b46ba1d7ed7c9c0ca7f579567d1912b0d;p=lilypond.git diff --git a/lily/include/global-translator.hh b/lily/include/global-translator.hh index 8344d3d898..b4381eb703 100644 --- a/lily/include/global-translator.hh +++ b/lily/include/global-translator.hh @@ -3,35 +3,39 @@ source file of the GNU LilyPond music typesetter - (c) 1997 Han-Wen Nienhuys + (c) 1997--1998 Han-Wen Nienhuys */ #ifndef GLOBAL_TRANSLATOR_HH #define GLOBAL_TRANSLATOR_HH -#include "translator.hh" +#include "translator-group.hh" +#include "rational.hh" #include "pqueue.hh" -class Global_translator : public virtual Translator { - PQueue extra_mom_pq_; - Moment last_mom_; +class Global_translator : public virtual Translator_group{ + PQueue extra_mom_pq_; public: - Score *score_l_; - Global_translator(); - int moments_left_i()const; - void modify_next(Moment&); - void add_moment_to_process(Moment); - - virtual void set_score(Score*); - virtual void prepare(Moment); - virtual void process() {} - virtual void finish() {} - + TRANSLATOR_CLONE(Global_translator); + Moment last_mom_; + Moment now_mom_; + Global_translator(); + + int moments_left_i() const; + void modify_next (Moment&); + void add_moment_to_process (Moment); + + virtual Music_output *get_output_p (); + virtual void prepare (Moment); + virtual void process() {} + virtual void finish() {} + virtual void start() {} + + DECLARE_MY_RUNTIME_TYPEINFO; protected: - virtual Global_translator *global_l() { return this; } - virtual int depth_i() const; - virtual Translator *ancestor_l(int); + virtual Moment now_moment () const; + virtual Global_translator *global_l() { return this; } };