OpendTect  6.3
Namespaces | Macros | Functions
errmsg.h File Reference
Include dependency graph for errmsg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 OD
 OpendTect.
 

Macros

#define pErrMsg(msg)   OD::programmerErrMsg(msg,::className(*this),__FILE__,__LINE__)
 Usual access point for programmer error messages. More...
 
#define pErrMsgOnce(msg)
 
#define pFreeFnErrMsg(msg)   OD::programmerErrMsg( msg, __func__, __FILE__, __LINE__ )
 Usual access point for programmer error messages in free functions. More...
 

Functions

void ErrMsg (const char *, bool progr=false)
 
template<class T >
const char * className (const T &t)
 
void OD::programmerErrMsg (const char *msg, const char *cname, const char *fnm, int linenr)
 

Macro Definition Documentation

#define pErrMsg (   msg)    OD::programmerErrMsg(msg,::className(*this),__FILE__,__LINE__)

Usual access point for programmer error messages.

#define pErrMsgOnce (   msg)
Value:
{ \
mDefineStaticLocalObject( bool, __message_shown__, = false ); \
if ( !__message_shown__ ) \
{ \
__message_shown__ = true; \
pErrMsg(msg); \
} \
}
#define pErrMsg(msg)
Usual access point for programmer error messages.
Definition: errmsg.h:34
#define pFreeFnErrMsg (   msg)    OD::programmerErrMsg( msg, __func__, __FILE__, __LINE__ )

Usual access point for programmer error messages in free functions.

Function Documentation

template<class T >
const char* className ( const T &  t)
inline

< Also works for gcc that returns the size first e.g. 4Clss

void ErrMsg ( const char *  ,
bool  progr = false 
)

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