]> git.donarmstrong.com Git - lilypond.git/blob - mi2mu/include/lily-stream.hh
release: 0.1.7
[lilypond.git] / mi2mu / include / lily-stream.hh
1 //
2 //  lily-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 LILY_STREAM_HH
9 #define LILY_STREAM_HH
10
11 /// Lily output
12 class Lily_stream {
13 public:    
14     Lily_stream( String filename_str );
15     ~Lily_stream();
16
17     Lily_stream& operator <<( String str );
18     Lily_stream& operator <<( Midi_event& midi_event_r );
19
20 private:
21     void header();
22     void open();
23     void output( String str );
24     void output_wrapped( String str );
25
26     ostream* os_p_;
27     String filename_str_;
28     int indent_i_;
29     int column_i_;
30     int wrap_column_i_;
31     bool comment_mode_b_;
32 };
33
34 #endif // LILY_STREAM_HH
35