CMS 3D CMS Logo

TinyDom2.cc
Go to the documentation of this file.
2 
3 using namespace std;
4 
5 void TinyDom2PrettyPrint(ostream & os , const TinyDom2 & dom)
6 {
7  TinyDom2Walker walker(dom);
8  // unsigned int level = 0;
9  //printTinyDom2(os, walker, level); // recursive
10 }
11 
12 
13 
14 
15 // void printTinyDom2(ostream & os, const TinyDom2Walker & w, unsigned int level)
16 // {
17 // string space(level,' ');
18 // os << space << "<" << w.current().first.str();
19 // if (w.firstChild()) {
20 // os << space << ">" << endl;
21 // ++level;
22 // printTinyDom2(os, w, level);
23 // --level
24 // os << space << "<" << w.current().first.str() << "/>" << endl;
25 // }
26 // else if (w.nextSibling()) {
27 // os << space << ">" << endl;
28 // //++level;
29 // printTinyDom2(os, w, level);
30 // //--level
31 // os << space << "<" << w.current().first.str() << "/>" << endl;
32 // }
33 // }
34 
35 
void TinyDom2PrettyPrint(ostream &os, const TinyDom2 &dom)
Definition: TinyDom2.cc:5