OpendTect  7.0
Functions
DBG Namespace Reference

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...
 

Detailed Description

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.

Function Documentation

◆ crashOnNaN()

bool DBG::crashOnNaN ( )

◆ forceCrash()

void DBG::forceCrash ( bool  withdump)

◆ isOn()

bool DBG::isOn ( int  flag = 0xffff)

◆ message() [1/4]

void DBG::message ( const char *  )

default: to stderr

◆ message() [2/4]

void DBG::message ( const char *  ,
const char *  cname,
const char *  fname,
int  linrnr 
)

◆ message() [3/4]

void DBG::message ( int  flag,
const char *  ,
const char *  cname,
const char *  fname,
int  linrnr 
)

◆ message() [4/4]

void DBG::message ( int  flag,
const char *  msg 
)

◆ putProgInfo()

void DBG::putProgInfo ( int  ,
char **   
)

one line; more if isOn()

◆ setCrashOnProgError()

bool DBG::setCrashOnProgError ( bool  yn)

Returns old status.

◆ turnOn()

void DBG::turnOn ( int  flag)

Overrides the envirnonment variable.


Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024