OpendTect-6_4  6.4
Functions
DBG Namespace Reference

Defines a generic interface for supplying debug/runtime info. More...

Functions

void turnOn (int flag)
 Overrides the envirnonment variable. More...
 
bool isOn (int flag=0xffff)
 
void message (const char *)
 default: to stderr More...
 
void message (int flag, const char *msg)
 
void putProgInfo (int, char **)
 one line; more if isOn() More...
 
void forceCrash (bool withdump)
 
bool crashOnNaN ()
 

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

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 ( int  flag,
const char *  msg 
)
void DBG::putProgInfo ( int  ,
char **   
)

one line; more if isOn()

void DBG::turnOn ( int  flag)

Overrides the envirnonment variable.


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