#include <OptDbg.hpp>
Operate the list of active Debug options These options correspond to various keywords chosen from a close list (see EDbg.hpp). When one of these options is switched ON, some statements are printed each time this particular option is concerned
As example, to produce specific output during all Kriging steps, you should use;
OptCst::define(EDbg::KRIGING)
To cancel this option, it suffices to use:
OptCst::undefine(EDbg::KRIGING)
To know the current status of all these environmental parameters, use the display() function.
A complementary option is to use the Reference: this is an index such that, when the rank of the target matches this number, all the flags are turned ON automatically. This Reference index is provided as a 1-based number.
Static Public Member Functions | |
static void | reset () |
static bool | queryByKey (const String &name) |
static void | defineByKey (const String &name) |
static void | undefineByKey (const String &name) |
static bool | query (const EDbg &option, bool discardForce=false) |
static void | define (const EDbg &option) |
static void | undefine (const EDbg &option) |
static void | defineAll () |
static void | undefineAll () |
static void | display () |
static void | setCurrentIndex (int cur_index) |
static bool | isReferenceDefined () |
static void | setReference (int index) |
static int | getReference () |
static bool | force () |
static int | getCurrentIndex () |
|
static |
Switching ON a option
option | Description of the option (Keyword) |
|
static |
|
static |
Switching ON a option
name | Description of the option (Name) |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
Check if a DEBUG option has been switched ON or NOT
option | Type of the option to be searched for |
discardForce | When TRUE, does not consider the "forcing" option (see remarks) |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |
|
static |
Switching OFF an option
option | Description of the Option (Keyword) |
|
static |
|
static |
Switching OFF a option
name | Description of the option (Name) |