Specification to enable chunkwise execution of a process.
More...
Inherits SequentialTask.
Inherited by Array1DInterpol, Array2DFilterer< T >, ArrayNDGentleSmoother< T >, Attrib::PosVecOutputGen, Attrib::Processor, BendPointFinder2DGeomSet, DPSMerger, DZT::Importer, EM::Hor2DTo3D, EM::HorizonZTransformer, EM::SurfaceT2DTransformer, EM::ZMapImporter, EM::dgbSurfDataReader, EM::dgbSurfDataWriter, ExecutorGroup, Geometry::BulkFaultBinIDSurfaceIntersector, Hor2DFrom3DCreator, Horizon2DScanner, HorizonScanner, HorizonSorter, IsochronMaker, JobRunner, LASWriter, LinSolverTask< T >, MultiWellReader, MultiWellWriter, ODMad::ProcExec, 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, SeisIOSimple, SeisImpBPSIF, SeisImpCBVSFromOtherSurvey, SeisImporter, SeisInterpol, SeisMerger, SeisPSMerger, SeisRandLineTo2D, SeisScanner, SeisSingleTraceProc, Strat::LayModAttribCalc, Strat::LayerModelGenerator, StratAmpCalc, StratSynth::Exporter, Table::Converter, Tut::HorTool, Tut::SeisTools, UnZipper, VelocityModelScannerNew, VolProc::ChainExecutor, VolProc::ChainOutput, WaveletExtractor, Well::InfoCollector, Well::LogDataExtracter, Well::SimpleTrackSampler, Well::TrackSampler, WellTie::SeismicExtractor, Zipper, lmkEMFault3DReader, lmkEMFault3DWriter, lmkEMStickSetReader, and lmkEMStickSetWriter.
|
| Executor (const char *nm) |
|
virtual | ~Executor () |
|
int | doStep () override |
|
bool | execute () override |
|
bool | go (od_ostream &s, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0) |
|
bool | go (od_ostream *s=0, bool isfirst=true, bool islast=true, int delaybtwnstepsinms=0) |
|
| SequentialTask (const char *nm=nullptr) |
|
virtual | ~SequentialTask () |
|
bool | execute () override |
|
virtual | ~ReportingTask () |
|
void | getProgress (const ReportingTask &) |
|
virtual | ~Task () |
|
virtual void | controlWork (Control) |
|
virtual void | enableWorkControl (bool=true) |
| Must be called before execute() More...
|
|
virtual uiRetVal | errorWithDetails () const |
|
virtual Control | getState () const |
|
virtual std::int64_t | nrDone () const |
|
virtual std::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...
|
|
bool | workControlEnabled () const |
|
| NamedCallBacker (const char *nm=0) |
|
| NamedCallBacker (const NamedCallBacker &) |
|
virtual Notifier< NamedCallBacker > & | objectToBeDeleted () const |
|
bool | operator== (const NamedCallBacker &oth) const |
|
bool | operator== (const NamedObject &oth) const |
|
| CallBacker () |
|
| CallBacker (const CallBacker &) |
|
virtual | ~CallBacker () |
|
bool | attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const |
|
bool | attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const |
|
void | detachAllNotifiers () const |
| Call from the destructor of your inherited object. More...
|
|
void | detachCB (const NotifierAccess &, const CallBack &) const |
|
void | detachCB (const NotifierAccess *notif, const CallBack &cb) const |
|
virtual bool | isCapsule () const |
|
bool | isNotifierAttached (const NotifierAccess *) const |
| Only for debugging purposes, don't use. More...
|
|
void | stopReceivingNotifications () const |
|
virtual CallBacker * | trueCaller () |
|
| NamedObject (const char *nm=nullptr) |
|
| NamedObject (const NamedObject &oth) |
|
virtual | ~NamedObject () |
|
virtual BufferString | getName () const |
|
bool | getNameFromPar (const IOPar &) |
|
const name_type & | name () const override |
|
NamedObject & | operator= (const NamedObject &) |
|
bool | operator== (const NamedObject &oth) const |
|
virtual void | setName (const char *nm) |
|
virtual | ~ObjectWithName () |
|
bool | hasName (const char *nm) const |
|
bool | hasName (const name_type &nm) const |
|
void | putNameInPar (IOPar &) const |
|
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::Executor |
( |
const char * |
nm | ) |
|
|
inline |
◆ ~Executor()
virtual Executor::~Executor |
( |
| ) |
|
|
inlinevirtual |
◆ doStep()
- Return values
-
- Note
- if function returns a value greater than cMoreToDo(), it should be interpreted as cMoreToDo().
Reimplemented from SequentialTask.
◆ execute()
bool Executor::execute |
( |
| ) |
|
|
inlineoverridevirtual |
◆ go() [1/2]
bool Executor::go |
( |
od_ostream & |
s, |
|
|
bool |
isfirst = true , |
|
|
bool |
islast = true , |
|
|
int |
delaybtwnstepsinms = 0 |
|
) |
| |
|
inline |
◆ go() [2/2]
bool Executor::go |
( |
od_ostream * |
s = 0 , |
|
|
bool |
isfirst = true , |
|
|
bool |
islast = true , |
|
|
int |
delaybtwnstepsinms = 0 |
|
) |
| |
|
inline |
◆ goImpl()
virtual bool Executor::goImpl |
( |
od_ostream * |
, |
|
|
bool |
, |
|
|
bool |
, |
|
|
int |
|
|
) |
| |
|
protectedvirtual |
◆ poststep
Only when MoreToDo will be returned.
◆ prestep