]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/outputter.hh
partial: 1.0.1.jcn
[lilypond.git] / lily / include / outputter.hh
1 /*
2   outputter.hh -- declare Outputter
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #ifndef OUTPUTTER_HH
11 #define OUTPUTTER_HH
12
13 #include "lily-proto.hh"
14
15 /**
16   Abstract interface for a Score_elem to output itself.
17  */
18 struct Outputter
19 {
20   virtual ~Outputter(){}
21   virtual void start_line ()=0;
22   virtual void output_molecule (Molecule const *, Offset)=0;
23   virtual void stop_line ()=0;
24 };
25
26 /**
27   Output a line of score using  TeX strings
28  */
29 struct Tex_outputter : Outputter
30 {
31   Tex_outputter (Tex_stream *);
32   Tex_stream * outstream_l_;
33   virtual void output_molecule (Molecule const*, Offset);
34   virtual void start_line ();
35   virtual void stop_line ();
36 };
37
38 #endif // OUTPUTTER_HH