GlobalTracer Class Reference
[pydtn]

A singleton TracerChain. More...

#include <pydtn/Tracer.h>

Inheritance diagram for GlobalTracer:

Inheritance graph
[legend]
Collaboration diagram for GlobalTracer:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static void enable ()
 Create a unique instance of GlobalTracer.
static GlobalTracerinstance ()
 
Returns:
the current instance (might by NULL if not yet enabled)


Protected Member Functions

 GlobalTracer ()
 Default constructor.
virtual ~GlobalTracer ()
 Virtual destructor.

Static Protected Attributes

static GlobalTracerm_instance = 0
 The unique instance.


Detailed Description

A singleton TracerChain.

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.


The documentation for this class was generated from the following files:
Generated on Mon Mar 24 11:15:47 2008 for Pydtn Simulator by  doxygen 1.5.4