CMS 3D CMS Logo

TinyDom.cc
Go to the documentation of this file.
2 
3 using namespace std;
4 
5 void TinyDomPrettyPrint(ostream & os , const TinyDom & dom)
6 {
7  TinyDomWalker walker(dom);
8  // unsigned int level = 0;
9  //printTinyDom(os, walker, level); // recursive
10 }
11 
12 
13 
14 
15 // void printTinyDom(ostream & os, const TinyDomWalker & 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 // printTinyDom(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 // printTinyDom(os, w, level);
30 // //--level
31 // os << space << "<" << w.current().first.str() << "/>" << endl;
32 // }
33 // }
void TinyDomPrettyPrint(ostream &os, const TinyDom &dom)
Definition: TinyDom.cc:5