The Debug
class defines a number of debug levels and a static public member giving the current debug level in a run.
More...
#include <Debug.h>
Public Types | |
enum | Levels { noDebug = 0 , printSomeEvents = 1 , printEveryEvent = 5 , full = 9 } |
The different debug levels. More... | |
Static Public Member Functions | |
static void | debugItem (int item, bool on) |
Switch on or off a given debug item. | |
static void | setDebug (int ilev) |
Set the debug level. | |
static bool | debugItem (int item) |
Check if a given item should be debugged. | |
Functions for manipulating floating point (FPU) signals | |
(requires the existence of | |
static void | unmaskFpuErrors () |
Switch on signalling all FPU exceptions. | |
static void | unmaskFpuOverflow () |
Switch on signalling overflow FPU exceptions. | |
static void | unmaskFpuUnderflow () |
Switch on signalling underflow FPU exceptions. | |
static void | unmaskFpuDivZero () |
Switch on signalling division by zero FPU exceptions. | |
static void | unmaskFpuDenorm () |
Switch on signalling denormalized argument FPU exceptions. | |
static void | unmaskFpuInvalid () |
Switch on signalling invalid operation FPU exceptions. | |
static void | maskFpuErrors () |
Switch off signalling all FPU exceptions. | |
static void | maskFpuOverflow () |
Switch off signalling overflow FPU exceptions. | |
static void | maskFpuUnderflow () |
Switch off signalling underflow FPU exceptions. | |
static void | maskFpuDivZero () |
Switch off signalling division by zero FPU exceptions. | |
static void | maskFpuDenorm () |
Switch off signalling denormalized argument FPU exceptions. | |
static void | maskFpuInvalid () |
Switch off signalling invalid operation FPU exceptions. | |
Static Public Attributes | |
static int | level |
The current level. | |
static bool | isset |
If true, the debug level has been set from the outside from the calling program. | |
static std::vector< bool > | debugItems |
A vector of switches indicating whether a given debug item is switched on or not. | |
The Debug
class defines a number of debug levels and a static public member giving the current debug level in a run.
|
inlinestatic |
|
static |
Switch on or off a given debug item.
If no such item exists, one will be created.
|
static |
A vector of switches indicating whether a given debug item is switched on or not.
The index of a debug item has no special meaning. An implementor may assume that a given number corresponds to a certain request for debug output, but cannot be sure that someone else uses that number for some other purpose.
Definition at line 54 of file Debug.h.
Referenced by debugItem().
|
static |
|
static |