15 #include "trg/trg/Debug.h"
25 vector<string> TRGDebug::_stages;
26 int TRGDebug::_level = 0;
29 TRGDebug::enterStage(
const string& name)
32 cout << tab() <<
"--> ";
33 _stages.push_back(name);
39 TRGDebug::leaveStage(
const string& name)
41 if (name != _stages.back()) {
42 cout <<
"TRGDebug !!! given stage name(" << name <<
") doesn't match"
43 <<
" to expected stage name(" << _stages.back() << endl;
48 cout << tab() <<
"<-- " << name << endl;
55 const unsigned n = _stages.size();
56 for (
unsigned i = 0; i < n; i++)
62 TRGDebug::tab(
int extra)
66 for (
unsigned i = 0; i < unsigned(extra); i++)
78 TRGDebug::level(
int a,
bool b)