PageRenderTime 20ms CodeModel.GetById 15ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/DetectorDescription/RegressionTest/src/TinyDom2.cc

https://github.com/aivanov-cern/cmssw
C++ | 35 lines | 6 code | 8 blank | 21 comment | 0 complexity | 2c2ca46288efe328595cbb196bc9eabf MD5 | raw file
 1#include "DetectorDescription/RegressionTest/src/TinyDom2.h"
 2
 3using namespace std;
 4
 5void 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