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