]> git.donarmstrong.com Git - lilypond.git/blob - hdr/tstream.hh
release: 0.0.30
[lilypond.git] / hdr / tstream.hh
1 #ifndef TSTREAM__HH
2 #define TSTREAM__HH
3
4 #include <iostream.h>
5 #include "string.hh"
6
7 /// TeX output
8 /**
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.
12   */
13 struct Tex_stream {
14     bool outputting_comment;
15     ostream *os;
16     int nest_level;
17     
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);
23
24     /// close the file
25     ~Tex_stream();
26 private:
27     Tex_stream(Tex_stream const&);
28 };
29 #endif