]> git.donarmstrong.com Git - lilypond.git/blob - midi2ly/include/mudela-stream.hh
6953a961cd3112a7b71b4434581036f86f0384ea
[lilypond.git] / midi2ly / include / mudela-stream.hh
1 //
2 //  mudela-stream.hh -- part of LilyPond
3 //
4 //  copyright 1997 Jan Nieuwenhuizen <janneke@gnu.org>
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 #include "scalar.hh"
14
15 /// Lily output
16 class Mudela_stream {
17 public:    
18     Mudela_stream (String filename_str);
19     ~Mudela_stream();
20
21     Mudela_stream& operator << (Scalar s);
22     Mudela_stream& operator << (Mudela_item& mudela_item_r);
23
24 private:
25     void handle_pending_indent();
26     void header();
27     void open();
28     void output (String str);
29     void output_wrapped (String str);
30
31     ostream* os_p_;
32     String filename_str_;
33     int indent_i_;
34     int column_i_;
35     int pending_indent_i_;
36     int wrap_column_i_;
37     bool comment_mode_b_;
38 };
39
40 #endif // MUDELA_STREAM_HH
41