OpendTect  6.3
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
SeisImporter Class Reference

Helps import or export of seismic data. More...

Inheritance diagram for SeisImporter:
[legend]

Public Member Functions

 struct (Seis) Reader
 provides traces from the import storage More...
 
 SeisImporter (Reader *, SeisTrcWriter &, Seis::GeomType)
 Reader becomes mine. Has to be non-null. More...
 
virtual ~SeisImporter ()
 
uiString message () const
 
od_int64 nrDone () const
 
uiString nrDoneText () const
 
od_int64 totalNr () const
 
int nextStep ()
 
int nrSkipped () const
 
Reader & reader ()
 
SeisTrcWriterwriter ()
 
- 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 ()
 
void setProgressMeter (ProgressMeter *)
 Must be called before execute() More...
 
ProgressMeterprogressMeter ()
 
const ProgressMeterprogressMeter () const
 
bool execute ()
 
- Public Member Functions inherited from Task
virtual ~Task ()
 
virtual uiRetVal errorWithDetails () const
 
virtual void enableWorkControl (bool=true)
 Must be called before execute() More...
 
bool workControlEnabled () const
 
virtual void controlWork (Control)
 
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 Types

enum  State { ReadBuf, WriteBuf, ReadWrite }
 

Protected Member Functions

bool sortingOk (const SeisTrc &)
 
int doWrite (SeisTrc &)
 
int readIntoBuf ()
 
void reportWrite (const uiString &)
 
- 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

Reader * rdr_
 
SeisTrcWriterwrr_
 
int queueid_
 
int maxqueuesize_
 
Threads::ConditionVarlock_
 
SeisTrcBufbuf_
 
SeisTrctrc_
 
BinIDprevbid_
 
int sort2ddir_
 
BinIDSortingsorting_
 
BinIDSortingAnalysersortanal_
 
Seis::GeomType geomtype_
 
State state_
 
int nrread_
 
int nrwritten_
 
int nrskipped_
 
uiString errmsg_
 
uiString hndlmsg_
 
- 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 (SeisImporter)
 

Friends

class SeisImporterWriterTask
 

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

Helps import or export of seismic data.

Member Enumeration Documentation

enum SeisImporter::State
protected
Enumerator
ReadBuf 
WriteBuf 
ReadWrite 

Constructor & Destructor Documentation

SeisImporter::SeisImporter ( Reader *  ,
SeisTrcWriter ,
Seis::GeomType   
)

Reader becomes mine. Has to be non-null.

virtual SeisImporter::~SeisImporter ( )
virtual

Member Function Documentation

int SeisImporter::doWrite ( SeisTrc )
protected
uiString SeisImporter::message ( ) const
virtual

Implements Executor.

SeisImporter::mODTextTranslationClass ( SeisImporter  )
private
int SeisImporter::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.

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

Implements Executor.

uiString SeisImporter::nrDoneText ( ) const
virtual

Implements Executor.

int SeisImporter::nrSkipped ( ) const
inline
Reader& SeisImporter::reader ( )
inline
int SeisImporter::readIntoBuf ( )
protected
void SeisImporter::reportWrite ( const uiString )
protected
bool SeisImporter::sortingOk ( const SeisTrc )
protected
SeisImporter::struct ( Seis  )
inline

provides traces from the import storage

<fetch() must return false at end or when an error occurs. On error, the errmsg_ must be filled.

A SeisStdImporterReader based on SeisTrcReader is available.

od_int64 SeisImporter::totalNr ( ) const
virtual

Reimplemented from Task.

SeisTrcWriter& SeisImporter::writer ( )
inline

Friends And Related Function Documentation

friend class SeisImporterWriterTask
friend

Member Data Documentation

SeisTrcBuf& SeisImporter::buf_
protected
uiString SeisImporter::errmsg_
mutableprotected
Seis::GeomType SeisImporter::geomtype_
protected
uiString SeisImporter::hndlmsg_
mutableprotected
Threads::ConditionVar& SeisImporter::lock_
protected
int SeisImporter::maxqueuesize_
protected
int SeisImporter::nrread_
protected
int SeisImporter::nrskipped_
protected
int SeisImporter::nrwritten_
protected
BinID& SeisImporter::prevbid_
protected
int SeisImporter::queueid_
protected
Reader* SeisImporter::rdr_
protected
int SeisImporter::sort2ddir_
protected
BinIDSortingAnalyser* SeisImporter::sortanal_
protected
BinIDSorting* SeisImporter::sorting_
protected
State SeisImporter::state_
protected
SeisTrc& SeisImporter::trc_
protected
SeisTrcWriter& SeisImporter::wrr_
protected

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