10#include "trg/trg/Debug.h"
27 cout <<
tab() <<
"--> ";
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++)
61 for (
unsigned i = 0; i < unsigned(extra); i++)
static std::string tab(void)
returns tab spaces.
static void enterStage(const std::string &stageName)
Declare that you enter new stage.
static std::vector< std::string > _stages
Storage for stages.
static int _level
Debug level. 0:do nothing, 1:show you flow, 2:show you detail, 10:show you very detail.
static int level(void)
returns the debug level.
static void leaveStage(const std::string &stageName)
Declare that you leave a stage.
Abstract base class for different kinds of events.