class Debugger
|
An object that logs messages on creation and destruction. More... |
|
|
Public Methods
- Debugger (const char *name, const char *format = 0, ...)
- Debugger (int level, const char *name, const char *format = 0, ...)
- ~Debugger ()
Public Static Methods
- static void setOutput (void (*outFunc)(const char *) = 0)
- static void setIntOut (void (*outFunc)(const char *) = 0)
- static void enableOutput (bool enable = true)
This class is used as an automatic variable that logs messages on creation
and destruction (when the instruction block is left or function returns)
Debugger (const char *name, const char *format = 0, ...)
| Debugger |
The constructor prints the method entry message and indents.
Parameters:
name | Name of the function or block entered, must be static
|
format | printf() style format string
|
Debugger (int level, const char *name, const char *format = 0, ...)
| Debugger |
The constructor prints the method entry message and indents.
Parameters:
level | The level of the message
|
name | Name of the function or block entered, must be static
|
format | printf() style format string
|
The destructor prints the method leave message and deindents.
void setOutput (void (*outFunc)(const char *) = 0)
| setOutput |
[static]
Set the output callback
Parameters:
outFunc | Pointer to the output function, NULL to use stderr
|
void setIntOut (void (*outFunc)(const char *) = 0)
| setIntOut |
[static]
Set the interactive output callback
Parameters:
outFunc | Pointer to the output function, NULL to disable
|
void enableOutput (bool enable = true)
| enableOutput |
[static]
Enable or disable the debug output
Generated by: kk on nyx on Sat Jun 4 19:29:41 2005, using kdoc 2.0a54. |