44 , prestep(this), poststep(this) {}
50 bool islast=
true,
int delaybtwnstepsinms=0 )
51 {
return goImpl(s,isfirst,islast,delaybtwnstepsinms); }
53 bool islast=
true,
int delaybtwnstepsinms=0 )
54 {
return goImpl(&s,isfirst,islast,delaybtwnstepsinms); }
64 virtual bool goImpl(
od_ostream*,
bool,
bool,
int);
81 bool ownsexecs=
true );
83 virtual void add( Executor* );
95 { nrdonetext_ = txt; }
100 virtual int nextStep();
101 virtual bool goToNextExecutor();
102 void findNextSumStop();
#define mExpClass(module)
Definition: commondefs.h:160
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:26
Executor consisting of other executors.
Definition: executor.h:77
Notifier< Executor > prestep
Definition: executor.h:56
#define od_int64
Definition: plftypes.h:36
ObjectSet< Executor > & executors_
Definition: executor.h:109
const bool parallel_
Definition: executor.h:106
Notifier< Executor > poststep
Only when MoreToDo will be returned.
Definition: executor.h:57
Definition: uistring.h:89
Executor * getExecutor(int idx)
Definition: executor.h:92
od_ostream & strm_
Definition: executor.h:131
The generalization of something (e.g. a computation) where the steps must be done in sequence...
Definition: task.h:124
int nrExecutors()
Definition: executor.h:91
void setNrDoneText(const uiString &txt)
If set, will use this and the counted nrdone.
Definition: executor.h:94
int sumstop_
Definition: executor.h:105
Class that can execute a task.
Definition: task.h:169
TextTaskRunner(od_ostream &strm)
Definition: executor.h:123
bool go(od_ostream &s, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0)
Definition: executor.h:52
virtual ~Executor()
Definition: executor.h:45
uiString nrdonetext_
Definition: executor.h:108
TaskRunner to show progress of a Task in text format.
Definition: executor.h:120
int currentexec_
Definition: executor.h:107
int sumstart_
Definition: executor.h:104
TypeSet< int > executorres_
Definition: executor.h:110
Generalization of something (e.g. a computation) that needs to be done in multiple steps...
Definition: task.h:28
bool ownsexecs_
Definition: executor.h:111
virtual bool execute()
Definition: executor.h:60
Executor(const char *nm)
Definition: executor.h:42
bool go(od_ostream *s=0, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0)
Definition: executor.h:49
Specification to enable chunkwise execution of a process.
Definition: executor.h:39