#include <Trace.h>
Public Methods | |
ACE_Trace (const ACE_TCHAR *n, int line=0, const ACE_TCHAR *file=ACE_LIB_TEXT("")) | |
~ACE_Trace (void) | |
void | dump (void) const |
Dump the state of an object. | |
Static Public Methods | |
int | is_tracing (void) |
Determine if tracing is enabled (return == 1) or not (== 0). | |
void | start_tracing (void) |
Enable the tracing facility. | |
void | stop_tracing (void) |
Disable the tracing facility. | |
void | set_nesting_indent (int indent) |
Change the nesting indentation level. | |
int | get_nesting_indent (void) |
Get the nesting indentation level. | |
Private Types | |
enum | { DEFAULT_INDENT = 3, DEFAULT_TRACING = 1 } |
Default values. More... | |
Private Attributes | |
const ACE_TCHAR * | name_ |
Name of the method we are in. | |
Static Private Attributes | |
int | nesting_indent_ = ACE_Trace::DEFAULT_INDENT |
Keeps track of how far to indent per trace call. | |
int | enable_tracing_ = ACE_Trace::DEFAULT_TRACING |
Is tracing enabled? |
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.
|
Default values.
|
|
Perform the first part of the trace, which prints out the string N, the LINE, and the ACE_FILE as the function is entered. |
|
Perform the second part of the trace, which prints out the NAME as the function is exited. |
|
Dump the state of an object.
|
|
Get the nesting indentation level.
|
|
Determine if tracing is enabled (return == 1) or not (== 0).
|
|
Change the nesting indentation level.
|
|
Enable the tracing facility.
|
|
Disable the tracing facility.
|
|
Is tracing enabled?
|
|
Name of the method we are in.
|
|
Keeps track of how far to indent per trace call.
|