]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/paper-stream.hh
release: 1.3.118
[lilypond.git] / lily / include / paper-stream.hh
index ab5de0684e39739aa84e90acafd9197cbd67a9a9..7970ba146d2bb4e7c1971b77427fd746f2a0b41d 100644 (file)
 class Paper_stream
 {
 public:
-    bool outputting_comment_b_;
-    ostream *os;
-    int nest_level;
-    /// to check linelen in output. TeX has limits.
-    int line_len_i_;
+  String basename_;
+  bool outputting_comment_b_;
+  ostream *os_;
+  int nest_level;
+  /// to check linelen in output. TeX has limits.
+  int line_len_i_;
     
-    /// open a file for writing
-    Paper_stream (String filename);
+  /// open a file for writing
+  Paper_stream (String filename);
 
-    /// delegate conversion to scalar class
-    Paper_stream &operator <<(String);
+  /// delegate conversion to scalar class
+  Paper_stream &operator <<(String);
 
-    /// close the file
-    ~Paper_stream();
+  /// close the file
+  ~Paper_stream();
 
 private:
-    Paper_stream (Paper_stream const&);
-    void break_line();
+  Paper_stream (Paper_stream const&);
+  void break_line();
 };
 
+class ostream;
+ostream *open_file_stream (String filename);
+void close_file_stream (ostream *os);
+
+
 #endif // PAPER_STREAM_HH