Gobelijn API documentation
- generated for commit a0cbea7
|
Class whose constructor/destructor pair are used to mark entering and leaving a code block. More...
#include <BlockTracer.h>
Public Member Functions | |
BlockTracer (const std::string &msg) | |
Constructor insert message in TrackerOutput about entering a block. More... | |
BlockTracer (const BlockTracer &)=delete | |
No copy constructor. More... | |
BlockTracer & | operator= (const BlockTracer &)=delete |
No assignment. More... | |
~BlockTracer () | |
Destructor inserts message in TracerOutput about leaving a block. More... | |
Private Attributes | |
const std::string | m_msg |
Class whose constructor/destructor pair are used to mark entering and leaving a code block.
You do this by defining an automatic variable of BlockTracer type at the beginning of the block. The constructor triggers an appropriate message.The destructor for the variable gets called when leaving the block and triggers the appropriate message. The messages are logged through the tarcer log.
Definition at line 26 of file BlockTracer.h.
|
explicit |
Constructor insert message in TrackerOutput about entering a block.
Definition at line 14 of file BlockTracer.cpp.
References UA_CoMP::Misc::g_tracer_log, UA_CoMP::Misc::TracerOutput::increase_indent(), UA_CoMP::Misc::TracerOutput::log(), and m_msg.
|
delete |
No copy constructor.
UA_CoMP::Misc::BlockTracer::~BlockTracer | ( | ) |
Destructor inserts message in TracerOutput about leaving a block.
Definition at line 20 of file BlockTracer.cpp.
References UA_CoMP::Misc::TracerOutput::decrease_indent(), UA_CoMP::Misc::g_tracer_log, UA_CoMP::Misc::TracerOutput::log(), and m_msg.
|
delete |
No assignment.
|
private |
Definition at line 42 of file BlockTracer.h.
Referenced by BlockTracer(), and ~BlockTracer().