]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/timing-translator.hh
release: 1.5.29
[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--2002 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   Timing_translator ();
23
24 protected: 
25   virtual void initialize ();
26   virtual void stop_translation_timestep ();
27   virtual void start_translation_timestep ();
28
29 public:
30   Moment measure_position () const;
31   Rational measure_length () const;  
32 };
33 #endif // TIMING_TRANSLATOR_HH