43 , prestep(this), poststep(this) {}
49 bool islast=
true,
int delaybtwnstepsinms=0 )
50 {
return goImpl(s,isfirst,islast,delaybtwnstepsinms); }
52 bool islast=
true,
int delaybtwnstepsinms=0 )
53 {
return goImpl(&s,isfirst,islast,delaybtwnstepsinms); }
63 virtual uiString nrDoneText()
const = 0;
68 virtual bool goImpl(
od_ostream*,
bool,
bool,
int);
85 bool ownsexecs=
true );
87 virtual void add( Executor* );
99 { nrdonetext_ = txt; }
104 virtual int nextStep();
105 virtual bool goToNextExecutor();
106 void findNextSumStop();
#define mExpClass(module)
Definition: commondefs.h:157
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:25
Executor consisting of other executors.
Definition: executor.h:81
Notifier< Executor > prestep
Definition: executor.h:55
#define od_int64
Definition: plftypes.h:34
ObjectSet< Executor > & executors_
Definition: executor.h:113
const bool parallel_
Definition: executor.h:110
Notifier< Executor > poststep
Only when MoreToDo will be returned.
Definition: executor.h:56
Definition: uistring.h:88
Executor * getExecutor(int idx)
Definition: executor.h:96
od_ostream & strm_
Definition: executor.h:135
void message(const char *)
default: to stderr
The generalization of something (e.g. a computation) where the steps must be done in sequence...
Definition: task.h:147
int nrExecutors()
Definition: executor.h:95
void setNrDoneText(const uiString &txt)
If set, will use this and the counted nrdone.
Definition: executor.h:98
int sumstop_
Definition: executor.h:109
Class that can execute a task.
Definition: task.h:193
TextTaskRunner(od_ostream &strm)
Definition: executor.h:127
bool go(od_ostream &s, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0)
Definition: executor.h:51
virtual ~Executor()
Definition: executor.h:44
uiString nrdonetext_
Definition: executor.h:112
TaskRunner to show progress of a Task in text format.
Definition: executor.h:124
int currentexec_
Definition: executor.h:111
int sumstart_
Definition: executor.h:108
TypeSet< int > executorres_
Definition: executor.h:114
Generalization of something (e.g. a computation) that needs to be done in multiple steps...
Definition: task.h:26
bool ownsexecs_
Definition: executor.h:115
virtual bool execute()
Definition: executor.h:59
Executor(const char *nm)
Definition: executor.h:41
bool go(od_ostream *s=0, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0)
Definition: executor.h:48
Specification to enable chunkwise execution of a process.
Definition: executor.h:38