#include <ace/Trace.h>
class ACE_Trace {
public:
ACE_Trace ( const ASYS_TCHAR *n, int line = 0, const ASYS_TCHAR *file = ASYS_TEXT ("") );
~ACE_Trace (void);
static int is_tracing(void);
static void start_tracing (void);
static void stop_tracing (void);
static void set_nesting_indent (int indent);
void dump (void) const;
private:
const ASYS_TCHAR *name_;
static int nesting_indent_;
static int enable_tracing_;
enum { DEFAULT_INDENT = 3, DEFAULT_TRACING = 1 };
};
ACE_Trace (
const ASYS_TCHAR *n,
int line = 0,
const ASYS_TCHAR *file = ASYS_TEXT ("")
);
~ACE_Trace (void);
static int is_tracing(void);
static void start_tracing (void);
static void stop_tracing (void);
static void set_nesting_indent (int indent);
void dump (void) const;