]> git.donarmstrong.com Git - lilypond.git/blob - tstream.hh
release: 0.0.3
[lilypond.git] / tstream.hh
1 #ifndef TSTREAM__HH
2 #define TSTREAM__HH
3
4 #include <iostream.h>
5 #include "string.hh"
6
7 /// TeX output
8 struct Tex_stream {
9     bool outputting_comment;
10     ostream *os;
11     int nest_level;
12     
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);
18
19     /// close the file
20     ~Tex_stream();
21 };
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.
26   */
27 #endif