From 219e37f3f3864acc42d1ff96dc2420a08b954a8b Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 4 Oct 1996 08:48:35 +0000 Subject: [PATCH] lilypond-0.0.1 --- tstream.hh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tstream.hh diff --git a/tstream.hh b/tstream.hh new file mode 100644 index 0000000000..07be0c1706 --- /dev/null +++ b/tstream.hh @@ -0,0 +1,27 @@ +#ifndef TSTREAM__HH +#define TSTREAM__HH + +#include +#include "string.hh" + +/// TeX output +struct Tex_stream { + bool outputting_comment; + ostream *os; + int nest_level; + + /// open a file for writing + Tex_stream(String filename); + + /// delegate conversion to string class. + Tex_stream &operator<<(String); + + /// close the file + ~Tex_stream(); +}; +/** + Use this class for writing to a TeX file. + It counts braces to prevent nesting errors, and + it will add a comment sign before each newline. + */ +#endif -- 2.39.5