2 global-translator.hh -- declare Global_translator
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef GLOBAL_TRANSLATOR_HH
11 #define GLOBAL_TRANSLATOR_HH
13 #include "translator-group.hh"
17 class Global_translator : public virtual Translator_group
19 PQueue<Moment> extra_mom_pq_;
20 Music_output_def* output_def_;
21 friend class Music_output_def;
23 VIRTUAL_COPY_CONS (Translator);
26 int get_moments_left () const;
27 Moment sneaky_insert_extra_moment (Moment);
28 void add_moment_to_process (Moment);
29 void run_iterator_on_me (Music_iterator*);
31 void apply_finalizations ();
32 void add_finalization (SCM);
34 virtual Music_output *get_output ();
35 virtual void prepare (Moment);
36 virtual void one_time_step ();
37 virtual void finish ();
38 virtual void start ();
39 virtual Music_output_def* get_output_def () const;
40 virtual Moment now_mom () const;
50 #endif // GLOBAL_TRANSLATOR_HH