]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/timing-translator.hh
release: 1.3.6
[lilypond.git] / lily / include / timing-translator.hh
1 /*
2   timing-translator.hh -- declare Timing_translator
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef TIMING_TRANSLATOR_HH
11 #define TIMING_TRANSLATOR_HH
12
13 #include "moment.hh"
14 #include "translator.hh"
15
16 #include "parray.hh"
17
18 class Timing_translator : public virtual Translator
19 {
20 public:
21   VIRTUAL_COPY_CONS(Translator);
22   Time_signature_change_req * time_signature_req_l () const;
23   Timing_translator ();
24   Link_array<Timing_req> timing_req_l_arr_;
25 protected: 
26   virtual void do_creation_processing ();
27   virtual bool do_try_music (Music *req_l);
28   virtual void do_process_requests();
29   virtual void do_pre_move_processing();
30   virtual void do_post_move_processing();
31
32 public:
33   /// JUNKME
34   int bars_i () const;
35
36   Moment measure_position () const;
37   Moment measure_length () const;  
38   void set_time_signature (int, int);
39   void get_time_signature (int *, int*) const;
40
41 };
42 #endif // TIMING_TRANSLATOR_HH