lilypond-0.0.5
[lilypond.git] / tstream.hh
blob9474dd69a8d8413b00695efc046295aa39fac83b
1 #ifndef TSTREAM__HH
2 #define TSTREAM__HH
4 #include <iostream.h>
5 #include "string.hh"
7 /// TeX output
8 struct Tex_stream {
9 bool outputting_comment;
10 ostream *os;
11 int nest_level;
13 /// open a file for writing
14 Tex_stream(String filename);
15 void header();
16 /// delegate conversion to string class.
17 Tex_stream &operator<<(String);
19 /// close the file
20 ~Tex_stream();
22 /**
23 Use this class for writing to a TeX file.
24 It counts braces to prevent nesting errors, and
25 it will add a comment sign before each newline.
27 #endif