![]() |
OpendTect
6.6
|
Defines a generic interface for supplying debug/runtime info. More...
Functions | |
| bool | crashOnNaN () |
| void | forceCrash (bool withdump) |
| bool | isOn (int flag=0xffff) |
| void | message (const char *) |
| default: to stderr More... | |
| void | message (const char *, const char *cname, const char *fname, int linrnr) |
| void | message (int flag, const char *, const char *cname, const char *fname, int linrnr) |
| void | message (int flag, const char *msg) |
| void | putProgInfo (int, char **) |
| one line; more if isOn() More... | |
| bool | setCrashOnProgError (bool yn) |
| Returns old status. More... | |
| void | turnOn (int flag) |
| Overrides the envirnonment variable. More... | |
Defines a generic interface for supplying debug/runtime info.
The isOn() is controlled by the environment variable DTECT_DEBUG. If DTECT_DEBUG starts with a "Y" or "y" then the mask is set to 0xffff. isOn returns the bitwise "and" of the passed flag and the internal environment mask, converted to a boolean.
The reserved/defined masks are defined below. if you want the output in a file, set the full path in DTECT_DEBUG_LOGFILE.
| bool DBG::crashOnNaN | ( | ) |
| void DBG::forceCrash | ( | bool | withdump | ) |
| bool DBG::isOn | ( | int | flag = 0xffff | ) |
| void DBG::message | ( | const char * | ) |
default: to stderr
| void DBG::message | ( | const char * | , |
| const char * | cname, | ||
| const char * | fname, | ||
| int | linrnr | ||
| ) |
| void DBG::message | ( | int | flag, |
| const char * | , | ||
| const char * | cname, | ||
| const char * | fname, | ||
| int | linrnr | ||
| ) |
| void DBG::message | ( | int | flag, |
| const char * | msg | ||
| ) |
| void DBG::putProgInfo | ( | int | , |
| char ** | |||
| ) |
one line; more if isOn()
| bool DBG::setCrashOnProgError | ( | bool | yn | ) |
Returns old status.
| void DBG::turnOn | ( | int | flag | ) |
Overrides the envirnonment variable.
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022