NAME

ACE_Trace - A C++ trace facility that keeps track of which methods are entered and exited.

SYNOPSIS


#include <ace/Trace.h>


class ACE_Trace
{
  public:
    ACE_Trace (const char *n, int line = 0, const char *file = "");
    ~ACE_Trace (void);
    static void start_tracing (void);
    static void stop_tracing (void);
    static void set_nesting_indent (int indent);
    void dump (void) const;
  private:
    const char *name_;
    static int nesting_indent_;
    static int enable_tracing_;
    enum { DEFAULT_INDENT = 3, DEFAULT_TRACING = 1 };
};

DESCRIPTION

This class uses C++ constructors and destructors to automate the ACE_Trace nesting. In addition, thread-specific storage is used to enable multiple threads to work correctly.

Initialization and termination methods.

ACE_Trace (const char *n, int line = 0, const char *file = "");
~ACE_Trace (void);

Control the tracing level.

static void start_tracing (void);
static void stop_tracing (void);
static void set_nesting_indent (int indent);
void dump (void) const;

AUTHOR

Doug Schmidt

LIBRARY

ace