Yate
|
A holder for a debug level. More...
#include <yateclass.h>
Public Member Functions | |
DebugEnabler (int level=TelEngine::debugLevel(), bool enabled=true) | |
int | debugLevel () const |
int | debugLevel (int level) |
bool | debugEnabled () const |
void | debugEnabled (bool enable) |
const char * | debugName () const |
bool | debugAt (int level) const |
bool | debugChained () const |
void | debugChain (const DebugEnabler *chain=0) |
void | debugCopy (const DebugEnabler *original=0) |
Protected Member Functions | |
void | debugName (const char *name) |
A holder for a debug level.
Holds a local debugging level that can be modified separately from the global debugging
|
inline |
Constructor
level | The initial local debug level |
enabled | Enable debugging on this object |
References DebugEnabler::debugLevel().
bool debugAt | ( | int | level | ) | const |
Check if debugging output should be generated
level | The debug level we are testing |
|
inline |
Chain this debug holder to a parent or detach from existing one
chain | Pointer to parent debug level, NULL to detach |
|
inline |
Check if this enabler is chained to another one
void debugCopy | ( | const DebugEnabler * | original = 0 | ) |
Copy debug settings from another object or from engine globals
original | Pointer to a DebugEnabler to copy settings from |
|
inline |
Retrieve the current debug activation status
References DebugEnabler::debugEnabled().
Referenced by DebugEnabler::debugEnabled().
|
inline |
Set the current debug activation status
enable | The new debug activation status, true to enable |
|
inline |
Retrieve the current local debug level
References DebugEnabler::debugLevel().
Referenced by DebugEnabler::DebugEnabler(), and DebugEnabler::debugLevel().
int debugLevel | ( | int | level | ) |
Set the current local debug level.
level | The desired debug level |
|
inline |
Get the current debug name
|
inlineprotected |
Set the current debug name
name | Static debug name or NULL |