OpendTect-6_4
6.4
|
Main object for 'standard' batch programs. More...
Public Member Functions | |
const IOPar & | pars () const |
IOPar & | pars () |
const CommandLineParser & | clParser () |
bool | go (od_ostream &log_stream) |
This method must be defined by user. More... | |
mExp (Batch) IOObj *getIOObjFromPars(const char *keybase | |
mExp (Batch) bool pauseRequested() const | |
pause requested (via socket) by master? More... | |
mExp (Batch) bool errorMsg(const uiString &msg | |
mExp (Batch) bool infoMsg(const char *msg | |
mExp (Batch) static void deleteInstance() | |
Public Member Functions inherited from NamedObject | |
NamedObject (const char *nm=0) | |
NamedObject (const NamedObject *linkedto) | |
NamedObject (const NamedObject &) | |
virtual | ~NamedObject () |
void | setLinkedTo (NamedObject *) |
bool | operator== (const NamedObject &oth) const |
virtual const OD::String & | name () const |
virtual const OD::String & | annotName () const |
virtual void | setName (const char *) |
void | setCleanName (const char *) |
cleans string first More... | |
void | deleteNotify (const CallBack &) |
Public Member Functions inherited from CallBacker | |
CallBacker () | |
CallBacker (const CallBacker &) | |
virtual | ~CallBacker () |
bool | attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false) |
bool | attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) |
void | detachCB (NotifierAccess &, const CallBack &) |
void | detachCB (NotifierAccess *notif, const CallBack &cb) |
bool | isNotifierAttached (NotifierAccess *) const |
Only for debugging purposes, don't use. More... | |
Static Public Member Functions | |
static const char * | sKeyMasterHost () |
static const char * | sKeyMasterPort () |
static const char * | sKeyBG () |
static const char * | sKeyJobID () |
static const char * | sKeyDataDir () |
static const char * | sKeyFinishMsg () |
Public Attributes | |
bool | mknew |
bool const IOObjContext & | ctxt |
bool const IOObjContext bool | msgiffail =true) const |
bool | cc_stderr =false) |
bool | cc_stdout =false) |
Protected Member Functions | |
BatchProgram () | |
~BatchProgram () | |
mExp (Batch) void init() | |
mExp (Batch) bool initOutput() | |
mExp (Batch) void progKilled(CallBacker *) | |
mExp (Batch) void killNotify(bool yn) | |
JobCommunic * | mmComm () |
int | jobId () |
Protected Member Functions inherited from CallBacker | |
void | detachAllNotifiers () |
Call from the destructor of your inherited object. More... | |
Protected Attributes | |
bool | stillok_ |
bool | inbg_ |
StreamData & | sdout_ |
IOPar * | iopar_ |
CommandLineParser * | clparser_ |
BufferStringSet | requests_ |
BufferString | finishmsg_ |
Protected Attributes inherited from NamedObject | |
BufferString * | name_ |
NamedObject * | linkedto_ |
CallBackSet * | delnotify_ |
Static Protected Attributes | |
static BatchProgram * | inst_ |
Private Member Functions | |
mODTextTranslationClass (BatchProgram) | |
Private Attributes | |
JobCommunic * | comm_ |
int | jobid_ |
Friends | |
BatchProgram & | BP () |
int | Execute_batch (int *, char **) |
Main object for 'standard' batch programs.
Most 'interesting' batch programs need a lot of parameters to do the work. Therefore, in OpendTect, BatchPrograms need a 'parameter file', with all the info needed in IOPar format, i.e., keyword/value pairs.
This object takes over the details of reading that file, extracting 'standard' components from the parameters, opening sockets etc.,
To use the object, instead of defining a function 'main', you should define the function 'BatchProgram::go'.
If you need argc and/or argv outside go(), the BP() singleton instance can be accessed.
|
protected |
|
protected |
|
inline |
bool BatchProgram::go | ( | od_ostream & | log_stream | ) |
This method must be defined by user.
|
inlineprotected |
BatchProgram::mExp | ( | Batch | ) | const |
BatchProgram::mExp | ( | Batch | ) | const |
pause requested (via socket) by master?
BatchProgram::mExp | ( | Batch | ) | const |
BatchProgram::mExp | ( | Batch | ) | const |
BatchProgram::mExp | ( | Batch | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineprotected |
|
private |
|
inline |
|
inline |
|
static |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
|
static |
|
friend |
|
friend |
bool BatchProgram::cc_stderr =false) |
bool BatchProgram::cc_stdout =false) |
|
protected |
|
private |
bool const IOObjContext& BatchProgram::ctxt |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
private |
bool BatchProgram::mknew |
bool const IOObjContext bool BatchProgram::msgiffail =true) const |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019