10 #include "trg/trg/Debug.h"
20 vector<string> TRGDebug::_stages;
21 int TRGDebug::_level = 0;
24 TRGDebug::enterStage(
const string& name)
27 cout << tab() <<
"--> ";
28 _stages.push_back(name);
34 TRGDebug::leaveStage(
const string& name)
36 if (name != _stages.back()) {
37 cout <<
"TRGDebug !!! given stage name(" << name <<
") doesn't match"
38 <<
" to expected stage name(" << _stages.back() << endl;
43 cout << tab() <<
"<-- " << name << endl;
50 const unsigned n = _stages.size();
51 for (
unsigned i = 0; i < n; i++)
57 TRGDebug::tab(
int extra)
61 for (
unsigned i = 0; i < unsigned(extra); i++)
73 TRGDebug::level(
int a,
bool b)
Abstract base class for different kinds of events.