lilypond-0.0.9
[lilypond.git] / dstream.hh
blob3a47a84784a77e43c29debf4c2f1712dfbf48327
1 // debug_stream
3 #ifndef DSTREAM_HH
4 #define DSTREAM_HH
6 #include "string.hh"
8 const char eol= '\n';
10 /// debug stream
11 class dstream
13 ostream *os;
14 int indentlvl;
16 /// indent of each level
17 const INDTAB = 3;
18 public:
19 dstream(ostream &r){
20 os = &r;
21 indentlvl = 0;
23 dstream &operator << (String s);
25 /**
26 a class for providing debug output of nested structures,
27 with indents according to \{\}()[]
28 */
29 #endif