#include <pydtn/Tracer.h>


Static Public Member Functions | |
| static void | enable () |
| Create a unique instance of GlobalTracer. | |
| static GlobalTracer * | instance () |
| |
Protected Member Functions | |
| GlobalTracer () | |
| Default constructor. | |
| virtual | ~GlobalTracer () |
| Virtual destructor. | |
Static Protected Attributes | |
| static GlobalTracer * | m_instance = 0 |
| The unique instance. | |
The instance() method indicates if there is global tracer. This is in contrast to most singleton classes, where instance() would create a new object. Instead, we use an explicit enable() method to bring the singleton instance into existence. This allows us to have or not have a GlobalTracer, depending on run-time configuration.
Definition at line 132 of file Tracer.h.
1.5.4