]> git.donarmstrong.com Git - lilypond.git/blob - mi2mu/include/mudela-stream.hh
partial: 1.0.1.jcn
[lilypond.git] / mi2mu / include / mudela-stream.hh
1 //
2 //  mudela-stream.hh -- part of LilyPond
3 //
4 //  copyright 1997 Jan Nieuwenhuizen <jan@digicash.com>
5
6 // should i be named Mudela_stream?
7
8 #ifndef MUDELA_STREAM_HH
9 #define MUDELA_STREAM_HH
10
11 #include "mi2mu-proto.hh"
12 #include "string.hh"
13
14 /// Lily output
15 class Mudela_stream {
16 public:    
17     Mudela_stream (String filename_str);
18     ~Mudela_stream();
19
20     Mudela_stream& operator << (String str);
21     Mudela_stream& operator << (Mudela_item& mudela_item_r);
22
23 private:
24     void handle_pending_indent();
25     void header();
26     void open();
27     void output (String str);
28     void output_wrapped (String str);
29
30     ostream* os_p_;
31     String filename_str_;
32     int indent_i_;
33     int column_i_;
34     int pending_indent_i_;
35     int wrap_column_i_;
36     bool comment_mode_b_;
37 };
38
39 #endif // MUDELA_STREAM_HH
40