]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/global-translator.hh
* input/regression/{many}.ly: improve descriptions: use complete
[lilypond.git] / lily / include / global-translator.hh
1 /*
2   global-translator.hh -- declare Global_translator
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef GLOBAL_TRANSLATOR_HH
11 #define GLOBAL_TRANSLATOR_HH
12
13 #include "translator-group.hh"
14 #include "moment.hh"
15 #include "pqueue.hh"
16
17 class Global_translator : public virtual Translator_group
18 {
19   PQueue<Moment> extra_mom_pq_;
20   Music_output_def*  output_def_;
21   friend class Music_output_def;
22 public:
23   VIRTUAL_COPY_CONS (Translator);
24   Global_translator ();
25
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*);
30
31   void apply_finalizations ();
32   void add_finalization (SCM);
33   
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;
41
42   Moment final_mom_;
43   Moment prev_mom_;
44   Moment now_mom_;
45 protected:
46 };
47
48
49
50 #endif // GLOBAL_TRANSLATOR_HH