flower-1.0.1
[lilypond.git] / tstream.hh
blob07be0c170617ef5189d70b5f181e59fede657250
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);
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