Developer Documentation
|
#include <ACG/Utils/Tracing.hh>
Public Member Functions | |
Tracing (const std::string &_text, std::ostream &_os=std::cerr) | |
Constructor. | |
~Tracing () | |
Destructor. | |
void | progress () |
Protected Attributes | |
std::ostream & | os_ |
Static Protected Attributes | |
static char | progress_ [4] = { '-', '\\', '|', '/' } |
static unsigned char | idx_ = 0 |
Tracing outputs starting and finishing messages for some lengthy procedures. Its constructor will output a given string, the destructor will output "finished\\n". That means you have to start a new block and define a local trancing object in there. When entering the block the constructor is called, the start message is printed. When leaving the block the descructor displays the finishing message. For convenience there are some macros defining the local object so you can write:
If you want to trace only one command you can also use:
Definition at line 119 of file Tracing.hh.
|
inline |
Show some progress (the next frame of a rotating bar is displayed for every call of this function)
Definition at line 136 of file Tracing.hh.