Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DetectorDescription
RegressionTest
src
TinyDom.cc
Go to the documentation of this file.
1
#include "
DetectorDescription/RegressionTest/src/TinyDom.h
"
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
// }
TinyDomPrettyPrint
void TinyDomPrettyPrint(ostream &os, const TinyDom &dom)
Definition:
TinyDom.cc:5
TinyDom.h
contentValuesFiles.dom
tuple dom
Definition:
contentValuesFiles.py:50
graph< NodeName, AttList >
graphwalker
Definition:
graphwalker.h:13
Generated for CMSSW Reference Manual by
1.8.5