OpendTect  6.3
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
VolProc::ChainOutput Class Reference

Manages output creation for a VolProc::Chain. More...

Inheritance diagram for VolProc::ChainOutput:
[legend]

Public Member Functions

 ChainOutput ()
 
 ~ChainOutput ()
 
void setChainID (const DBKey &)
 
void setOutputID (const DBKey &)
 
void setTrcKeyZSampling (const TrcKeyZSampling &)
 
bool setCalculationScope (const TrcKeySampling &, const StepInterval< int > &)
 
void usePar (const IOPar &)
 
virtual od_int64 nrDone () const
 
virtual od_int64 totalNr () const
 
virtual uiString message () const
 
virtual uiString nrDoneText () const
 
virtual int nextStep ()
 
virtual void setProgressMeter (ProgressMeter *)
 Must be called before execute() More...
 
virtual void controlWork (Control)
 
virtual void enableWorkControl (bool yn=true)
 Must be called before execute() More...
 
void setJobCommunicator (JobCommunic *)
 
- Public Member Functions inherited from Executor
 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 ()
 
- Public Member Functions inherited from SequentialTask
 SequentialTask (const char *nm=0)
 
virtual ~SequentialTask ()
 
ProgressMeterprogressMeter ()
 
const ProgressMeterprogressMeter () const
 
bool execute ()
 
- Public Member Functions inherited from Task
virtual ~Task ()
 
virtual uiRetVal errorWithDetails () const
 
bool workControlEnabled () const
 
virtual Control getState () const
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=0)
 
 NamedCallBacker (const NamedCallBacker &)
 
bool operator== (const NamedCallBacker &oth) const
 
bool operator== (const NamedObject &oth) const
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
- Public Member Functions inherited from CallBacker
 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 detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
virtual bool isCapsule () const
 
void stopReceivingNotifications () const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
virtual BufferString getName () const
 
virtual void setName (const char *nm)
 
bool getNameFromPar (const IOPar &)
 
void putNameInPar (IOPar &) const
 

Protected Member Functions

int getChain ()
 
int setupChunking ()
 
int setNextChunk ()
 
bool openOutput ()
 
void createNewChainExec ()
 
int retError (const uiString &)
 
void startWriteChunk ()
 
void manageStorers ()
 
void reportFinished (ChainOutputStorer &)
 
- Protected Member Functions inherited from Executor
virtual bool goImpl (od_ostream *, bool, bool, int)
 
- Protected Member Functions inherited from Task
 Task (const char *nm=0)
 
virtual bool shouldContinue ()
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 

Protected Attributes

DBKey chainid_
 
DBKey outid_
 
TrcKeyZSampling tkzs_
 
IOParchainpar_
 
Chainchain_
 
ChainExecutorchainexec_
 
SeisDataPackWriterwrr_
 
bool neednextchunk_
 
int nrexecs_
 
int curexecnr_
 
StepInterval< int > outputzrg_
 
ProgressRecorderprogresskeeper_
 
Threads::Lock storerlock_
 
ObjectSet< ChainOutputStorerstorers_
 
ObjectSet< ChainOutputStorertoremstorers_
 
bool storererr_
 
JobCommunicjobcomm_
 
- Protected Attributes inherited from SequentialTask
ProgressMeterprogressmeter_
 
int lastupdate_
 
- Protected Attributes inherited from Task
Control control_
 
Threads::ConditionVarworkcontrolcondvar_
 
- Protected Attributes inherited from NamedCallBacker
Notifier< NamedCallBackerdelnotif_
 
Threads::Atomic< bool > delalreadytriggered_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Private Member Functions

 mODTextTranslationClass (ChainOutput)
 

Friends

class ChainOutputStorer
 

Additional Inherited Members

- Public Types inherited from Task
enum  Control { Run, Pause, Stop }
 
- Static Public Member Functions inherited from SequentialTask
static int ErrorOccurred ()
 
static int Finished ()
 
static int MoreToDo ()
 
static int WarningAvailable ()
 
- Static Public Member Functions inherited from Task
static uiString stdMessage ()
 
static uiString stdNrDoneText ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Public Attributes inherited from Executor
Notifier< Executorprestep
 
Notifier< Executorpoststep
 Only when MoreToDo will be returned. More...
 

Detailed Description

Manages output creation for a VolProc::Chain.

Constructor & Destructor Documentation

VolProc::ChainOutput::ChainOutput ( )
VolProc::ChainOutput::~ChainOutput ( )

Member Function Documentation

virtual void VolProc::ChainOutput::controlWork ( Control  )
virtual

Reimplemented from Task.

void VolProc::ChainOutput::createNewChainExec ( )
protected
virtual void VolProc::ChainOutput::enableWorkControl ( bool  = true)
virtual

Must be called before execute()

Reimplemented from Task.

int VolProc::ChainOutput::getChain ( )
protected
void VolProc::ChainOutput::manageStorers ( )
protected
virtual uiString VolProc::ChainOutput::message ( ) const
virtual

Implements Executor.

VolProc::ChainOutput::mODTextTranslationClass ( ChainOutput  )
private
virtual int VolProc::ChainOutput::nextStep ( )
virtual
Return values
MoreToDo()Not finished. Call me again.
Finished()Nothing more to do.
ErrorOccurred()Something went wrong.
Note
if function returns a value greater than cMoreToDo(),it should be interpreted as cMoreToDo().

Implements SequentialTask.

virtual od_int64 VolProc::ChainOutput::nrDone ( ) const
virtual
Note
only used for displaying progress.

Implements Executor.

virtual uiString VolProc::ChainOutput::nrDoneText ( ) const
virtual

Implements Executor.

bool VolProc::ChainOutput::openOutput ( )
protected
void VolProc::ChainOutput::reportFinished ( ChainOutputStorer )
protected
int VolProc::ChainOutput::retError ( const uiString )
protected
bool VolProc::ChainOutput::setCalculationScope ( const TrcKeySampling ,
const StepInterval< int > &   
)
void VolProc::ChainOutput::setChainID ( const DBKey )
void VolProc::ChainOutput::setJobCommunicator ( JobCommunic )
int VolProc::ChainOutput::setNextChunk ( )
protected
void VolProc::ChainOutput::setOutputID ( const DBKey )
virtual void VolProc::ChainOutput::setProgressMeter ( ProgressMeter )
virtual

Must be called before execute()

Reimplemented from SequentialTask.

void VolProc::ChainOutput::setTrcKeyZSampling ( const TrcKeyZSampling )
int VolProc::ChainOutput::setupChunking ( )
protected
void VolProc::ChainOutput::startWriteChunk ( )
protected
virtual od_int64 VolProc::ChainOutput::totalNr ( ) const
virtual

Reimplemented from Task.

void VolProc::ChainOutput::usePar ( const IOPar )

Friends And Related Function Documentation

friend class ChainOutputStorer
friend

Member Data Documentation

Chain* VolProc::ChainOutput::chain_
protected
ChainExecutor* VolProc::ChainOutput::chainexec_
protected
DBKey VolProc::ChainOutput::chainid_
protected
IOPar* VolProc::ChainOutput::chainpar_
protected
int VolProc::ChainOutput::curexecnr_
protected
JobCommunic* VolProc::ChainOutput::jobcomm_
protected
bool VolProc::ChainOutput::neednextchunk_
protected
int VolProc::ChainOutput::nrexecs_
protected
DBKey VolProc::ChainOutput::outid_
protected
StepInterval<int> VolProc::ChainOutput::outputzrg_
protected
ProgressRecorder& VolProc::ChainOutput::progresskeeper_
protected
bool VolProc::ChainOutput::storererr_
protected
Threads::Lock VolProc::ChainOutput::storerlock_
mutableprotected
ObjectSet<ChainOutputStorer> VolProc::ChainOutput::storers_
protected
TrcKeyZSampling VolProc::ChainOutput::tkzs_
protected
ObjectSet<ChainOutputStorer> VolProc::ChainOutput::toremstorers_
protected
SeisDataPackWriter* VolProc::ChainOutput::wrr_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017