diff options
| author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-12-30 06:50:29 +0000 |
|---|---|---|
| committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-12-30 06:50:29 +0000 |
| commit | a4a7690c336d4c8a16b3041c86d501ba38226e96 (patch) | |
| tree | 9e9f93a98edd2591453f092d178ad29a1c5fb519 /ace/Trace.h | |
| parent | a5c4d8047ab58df5c45092e18ae503ad40518f0e (diff) | |
| download | ATCD-unlabeled-4.1.2.tar.gz | |
This commit was manufactured by cvs2svn to create branchunlabeled-4.1.2
'unlabeled-4.1.2'.
Diffstat (limited to 'ace/Trace.h')
| -rw-r--r-- | ace/Trace.h | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/ace/Trace.h b/ace/Trace.h deleted file mode 100644 index 8943b7a8055..00000000000 --- a/ace/Trace.h +++ /dev/null @@ -1,77 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - - -// ============================================================================ -// -// = LIBRARY -// ace -// -// = FILENAME -// Trace.h -// -// = AUTHOR -// Doug Schmidt -// -// ============================================================================ - -#if !defined (ACE_TRACE_H) -#define ACE_TRACE_H - -class ACE_Export ACE_Trace - // = TITLE - // A C++ trace facility that keeps track of which methods are - // entered and exited. - // - // = 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. -{ -public: - // = Initialization and termination methods. - - ACE_Trace (const char *n, int line = 0, const char *file = ""); - // Perform the first part of the trace, which prints out the string - // N, the LINE, and the ACE_FILE as the function is entered. - - ~ACE_Trace (void); - // Perform the second part of the trace, which prints out the NAME - // as the function is exited. - - // = Control the tracing level. - static void start_tracing (void); - // Enable the tracing facility. - - static void stop_tracing (void); - // Disable the tracing facility. - - static void set_nesting_indent (int indent); - // Change the nesting indentation level. - - void dump (void) const; - // Dump the state of an object. - -private: - // Keeps track of how deeply the call stack is nested (this is - // maintained in thread-specific storage to ensure correctness in - // multiple threads of control. - - const char *name_; - // Name of the method we are in. - - static int nesting_indent_; - // Keeps track of how far to indent per trace call. - - static int enable_tracing_; - // Is tracing enabled? - - // Default values. - enum - { - DEFAULT_INDENT = 3, - DEFAULT_TRACING = 1 - }; -}; - -#endif /* ACE_TRACE_H */ |
