Run-time activation/deactivation of debug flags. More...
#include <MsqDebug.hpp>
Classes | |
class | FormatPrinter |
class | InitializeFlags |
Public Types | |
enum | { WARN = 1, INFO = 2 } |
enum | { WARN = 1, INFO = 2 } |
Static Public Member Functions | |
static void | enable (unsigned flag) |
Enable a debug flag. More... | |
static void | disable (unsigned flag) |
Disable a debug flag. More... | |
static void | set (unsigned flag, bool state) |
Set a debug flag. More... | |
static bool | get (unsigned flag) |
Check a debug flag. More... | |
static void | disable_all () |
Disable all debug streams. More... | |
static msq_stdio::ostream & | get_stream (unsigned flag) |
Get the output stream to be used for a given debug flag. More... | |
static void | set_stream (unsigned flag, msq_stdio::ostream &stream) |
Set the output stream to be used for a given debug flag. More... | |
static void | enable (unsigned flag) |
Enable a debug flag. More... | |
static void | disable (unsigned flag) |
Disable a debug flag. More... | |
static void | set (unsigned flag, bool state) |
Set a debug flag. More... | |
static bool | get (unsigned flag) |
Check a debug flag. More... | |
static void | disable_all () |
Disable all debug streams. More... | |
static msq_stdio::ostream & | get_stream (unsigned flag) |
Get the output stream to be used for a given debug flag. More... | |
static void | set_stream (unsigned flag, msq_stdio::ostream &stream) |
Set the output stream to be used for a given debug flag. More... | |
Static Private Attributes | |
static msq_std::vector < msq_stdio::ostream * > | streams |
static msq_std::vector< bool > | flags |
static InitializeFlags | init |
Run-time activation/deactivation of debug flags.
Wrap static functions for managing debug flags and associated output streams. Output is expected do be done using the provided macros MSQ_DBGOUT, MSQ_PRINT, and MSQ_DBG.
The default output stream for all flags is cout.
Definition at line 87 of file includeLinks/MsqDebug.hpp.
anonymous enum |
anonymous enum |
|
inlinestatic |
Disable a debug flag.
Definition at line 100 of file includeLinks/MsqDebug.hpp.
References MsqDebug::set().
|
inlinestatic |
Disable a debug flag.
Definition at line 100 of file src/Misc/MsqDebug.hpp.
References MsqDebug::set().
|
static |
Disable all debug streams.
Definition at line 76 of file Misc/MsqDebug.cpp.
References MsqDebug::flags.
|
static |
Disable all debug streams.
|
inlinestatic |
Enable a debug flag.
Definition at line 98 of file src/Misc/MsqDebug.hpp.
References MsqDebug::set().
|
inlinestatic |
Enable a debug flag.
Definition at line 98 of file includeLinks/MsqDebug.hpp.
References MsqDebug::set().
|
static |
Check a debug flag.
Definition at line 54 of file Misc/MsqDebug.cpp.
References MsqDebug::flags.
Referenced by MsqDebug::FormatPrinter::print().
|
static |
Check a debug flag.
|
static |
Get the output stream to be used for a given debug flag.
|
static |
Get the output stream to be used for a given debug flag.
Definition at line 81 of file Misc/MsqDebug.cpp.
References MsqDebug::streams.
Referenced by MsqDebug::FormatPrinter::print().
|
static |
Set a debug flag.
|
static |
Set a debug flag.
Definition at line 59 of file Misc/MsqDebug.cpp.
References MsqDebug::flags.
Referenced by MsqDebug::disable(), and MsqDebug::enable().
|
static |
Set the output stream to be used for a given debug flag.
Definition at line 89 of file Misc/MsqDebug.cpp.
References i, and MsqDebug::streams.
|
static |
Set the output stream to be used for a given debug flag.
|
staticprivate |
Definition at line 139 of file includeLinks/MsqDebug.hpp.
Referenced by MsqDebug::disable_all(), MsqDebug::get(), and MsqDebug::set().
|
staticprivate |
Definition at line 140 of file includeLinks/MsqDebug.hpp.
|
staticprivate |
Definition at line 138 of file includeLinks/MsqDebug.hpp.
Referenced by MsqDebug::get_stream(), and MsqDebug::set_stream().