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