OpendTect-6_4  6.4
Macros | Functions | Variables
testprog.h File Reference
Include dependency graph for testprog.h:

Go to the source code of this file.

Macros

#define mInitTestProg()
 
#define mExitTestProg(var)
 
#define mInitBatchTestProg()
 
#define mRunStandardTestWithError(test, desc, err)
 
#define mRunStandardTest(test, desc)   mRunStandardTestWithError( test, desc, BufferString().str() )
 

Functions

static mUsedVar od_ostreamtstStream (bool err=false)
 

Variables

static mUsedVar bool quiet = true
 
static mUsedVar PtrMan< CommandLineParsertheparser = 0
 

Macro Definition Documentation

#define mExitTestProg (   var)
#define mInitBatchTestProg ( )
Value:
int argc = GetArgC(); char** argv = GetArgV(); \
mInitTestProg()
int GetArgC(void)
char ** GetArgV(void)
#define mInitTestProg ( )
Value:
od_init_test_program( argc, argv ); \
theparser = new CommandLineParser; \
CommandLineParser& clparser = *theparser; \
quiet = clparser.hasKey( sKey::Quiet() )
Definition: commandlineparser.h:51
static mUsedVar PtrMan< CommandLineParser > theparser
Definition: testprog.h:34
FixedString Quiet()
Definition: keystrs.h:105
void od_init_test_program(int, char **)
#define mRunStandardTest (   test,
  desc 
)    mRunStandardTestWithError( test, desc, BufferString().str() )
#define mRunStandardTestWithError (   test,
  desc,
  err 
)
Value:
if ( !quiet ) \
od_ostream::logStream() << desc; \
if ( (test) ) \
{ \
if ( !quiet ) \
od_ostream::logStream() << " - SUCCESS\n"; \
} \
else \
{ \
if ( quiet ) \
od_ostream::logStream() << " - FAIL"; \
if ( err ) \
od_ostream::logStream() << ": " << err << "\n"; \
\
return false; \
}
if(!noudf_ &&(mIsUdf(inpval)))
Definition: arrayndalgo.h:1662
static od_ostream & logStream()
used by ErrMsg and UsrMsg
static mUsedVar bool quiet
Definition: testprog.h:33

Function Documentation

static mUsedVar od_ostream& tstStream ( bool  err = false)
inlinestatic

Variable Documentation

mUsedVar bool quiet = true
static
mUsedVar PtrMan<CommandLineParser> theparser = 0
static

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