64 bool msgiffail=true) const;
70 mExp(
Batch)
bool infoMsg( const
char* msg,
bool cc_stdout=false);
75 static const
char* sKeyDataDir() {
return "datadir"; }
76 static const char*
sKeyFinishMsg() {
return "Finished batch processing."; }
119 #define mRetJobErr(s) \ 121 if ( comm_ ) comm_->setState( JobCommunic::JobError ); \ 126 #define mRetError(s) \ 127 { errorMsg(toUiString(s)); mDestroyWorkers; return false; } 129 #define mRetHostErr(s) \ 131 if ( comm_ ) comm_->setState( JobCommunic::HostError ); \ 132 mRetError(toUiString(s)) \ 135 #define mStrmWithProcID(s) \ 136 strm << "\n[" << process_id << "]: " << s << "." << od_newline 138 #define mMessage(s) \ 139 strm << s << '.' << od_newline 141 #define mSetCommState(State) \ 144 comm_->setState( JobCommunic::State ); \ 145 if ( !comm_->updateState() ) \ 146 mRetHostErr( comm_->errMsg() ) \ 153 #define mMainIsDefined 154 int main(
int argc,
char** argv )
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:25
StreamData & sdout_
Definition: batchprog.h:95
int jobid_
Definition: batchprog.h:111
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
#define mGlobal(module)
Definition: commondefs.h:160
const CommandLineParser & clParser()
Definition: batchprog.h:57
void SetProgramArgs(int argc, char **argv, bool require_valid_dataroot=true)
bool inbg_
Definition: batchprog.h:94
Definition: uistring.h:88
IOPar * iopar_
Definition: batchprog.h:96
#define mExp(module)
Definition: commondefs.h:156
Set of BufferString objects.
Definition: bufstringset.h:25
static const char * sKeyFinishMsg()
Definition: batchprog.h:76
const IOPar & pars() const
Definition: batchprog.h:54
Definition: commandlineparser.h:49
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
static BatchProgram * inst_
Definition: batchprog.h:90
Holds data to use and close an iostream.
Definition: strmdata.h:29
Main object for 'standard' batch programs.
Definition: batchprog.h:48
JobCommunic * comm_
Definition: batchprog.h:110
Definition: batchjobdispatch.h:19
int main(int argc, char **argv)
Definition: testprog.h:34
int Execute_batch(int *, char **)
Definition: _execbatch.h:97
BufferStringSet requests_
Definition: batchprog.h:99
IOPar & pars()
Definition: batchprog.h:55
bool stillok_
Definition: batchprog.h:93
#define mClass(module)
Definition: commondefs.h:161
CommandLineParser * clparser_
Definition: batchprog.h:97
Multi-machine socket communicator Handles the communication between a client and the master...
Definition: jobcommunic.h:49
CallBacker object with a name. Use if you want your object to be able to send and receive CallBack's...
Definition: namedobj.h:50
int jobId()
Definition: batchprog.h:106
Holds the context for selecting and/or creating IOObjs.
Definition: ioobjctxt.h:59