Specification to enable chunkwise execution of a process.
More...
Inherits SequentialTask.
Inherited by Array1DInterpol, Array2DFilterer< T >, ArrayNDGentleSmoother< T >, Attrib::PosVecOutputGen, Attrib::Processor, BendPointFinder2DGeomSet, DPSMerger, EM::dgbSurfDataReader, EM::dgbSurfDataWriter, EM::Hor2DTo3D, EM::HorizonZTransformer, ExecutorGroup, Geometry::BulkFaultBinIDSurfaceIntersector, Hor2DFrom3DCreator, Horizon2DScanner, HorizonScanner, HorizonSorter, JobRunner, LinSolverTask< T >, lmkEMFault3DReader, lmkEMFault3DWriter, lmkEMStickSetReader, lmkEMStickSetWriter, PreStack::EventDuplicator, PreStack::EventReader, PreStack::EventWriter, SEGY::FileIndexer, SEGY::ReSorter, SEGY::Scanner, Seis2DCopier, Seis2DFrom3DExtractor, Seis2DLineGetter, Seis2DLineMerger, Seis2DTo3D, Seis2DTo3DInterPol, Seis::SequentialReader, SeisBayesClass, SeisBufReader, SeisCubeCopier, SeisDataPackWriter, SeisEventSnapper, SeisImpBPSIF, SeisImpCBVSFromOtherSurvey, SeisImporter, SeisInterpol, SeisIOSimple, SeisMerger, SeisPSMerger, SeisRandLineTo2D, SeisScanner, SeisSingleTraceProc, Strat::LayerModelGenerator, Strat::LayModAttribCalc, StratSynthExporter, Table::Converter, UnZipper, VolProc::ChainExecutor, VolProc::ChainOutput, WaveletExtractor, Well::InfoCollector, Well::LogDataExtracter, Well::SimpleTrackSampler, Well::TrackSampler, WellTie::SeismicExtractor, and Zipper.
|
| Executor (const char *nm) |
|
virtual | ~Executor () |
|
virtual int | doStep () |
|
bool | go (od_ostream *s=0, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0) |
|
bool | go (od_ostream &s, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0) |
|
virtual bool | execute () |
|
| SequentialTask (const char *nm=0) |
|
virtual | ~SequentialTask () |
|
void | setProgressMeter (ProgressMeter *) |
| Must be called before execute() More...
|
|
ProgressMeter * | progressMeter () |
|
const ProgressMeter * | progressMeter () const |
|
bool | execute () |
|
virtual | ~Task () |
|
virtual int64_t | nrDone () const |
|
virtual int64_t | totalNr () const |
|
virtual uiString | uiMessage () const |
| will be message() again in 7.x More...
|
|
virtual uiString | uiNrDoneText () const |
| will be nrDoneText() in 7.x More...
|
|
virtual void | enableWorkControl (bool=true) |
| Must be called before execute() More...
|
|
bool | workControlEnabled () const |
|
virtual void | controlWork (Control) |
|
virtual Control | getState () const |
|
| 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 &) |
|
| 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...
|
|
Specification to enable chunkwise execution of a process.
Interface enabling separation of the control of execution of any process from what actually is going on. The work is done by calling the doStep() method until either ErrorOccurred or Finished is returned. To enable logging and/or communication with the user, two types of info can be made available (the methods will be called before the step is executed). Firstly, a message. Secondly, info on the progress. It is common that Executors are combined to a new Executor object. This is the most common reason why totalNr() can change.
If doStep returns -1 (Failure) the error message should be in uiMessage().
The execute() utility executes the process while logging uiMessage() etc. to a stream. Useful in batch situations.
Executor::Executor |
( |
const char * |
nm | ) |
|
|
inline |
virtual Executor::~Executor |
( |
| ) |
|
|
inlinevirtual |
virtual int Executor::doStep |
( |
| ) |
|
|
virtual |
- Return values
-
- Note
- if function returns a value greater than cMoreToDo(), it should be interpreted as cMoreToDo().
Reimplemented from SequentialTask.
virtual bool Executor::execute |
( |
| ) |
|
|
inlinevirtual |
bool Executor::go |
( |
od_ostream * |
s = 0 , |
|
|
bool |
isfirst = true , |
|
|
bool |
islast = true , |
|
|
int |
delaybtwnstepsinms = 0 |
|
) |
| |
|
inline |
bool Executor::go |
( |
od_ostream & |
s, |
|
|
bool |
isfirst = true , |
|
|
bool |
islast = true , |
|
|
int |
delaybtwnstepsinms = 0 |
|
) |
| |
|
inline |
virtual bool Executor::goImpl |
( |
od_ostream * |
, |
|
|
bool |
, |
|
|
bool |
, |
|
|
int |
|
|
) |
| |
|
protectedvirtual |
Only when MoreToDo will be returned.