]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.1
authorfred <fred>
Fri, 4 Oct 1996 08:48:35 +0000 (08:48 +0000)
committerfred <fred>
Fri, 4 Oct 1996 08:48:35 +0000 (08:48 +0000)
tstream.hh [new file with mode: 0644]

diff --git a/tstream.hh b/tstream.hh
new file mode 100644 (file)
index 0000000..07be0c1
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef TSTREAM__HH
+#define TSTREAM__HH
+
+#include <iostream.h>
+#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