Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

SEGY::Scanner Class Reference

Scans SEG-Y file(s). For reports, you'd want to set rich info. More...

Inheritance diagram for SEGY::Scanner:
Executor SequentialTask Task NamedObject CallBacker

List of all members.

Public Member Functions

 Scanner (const IOPar &, Seis::GeomType)
 Scanner (const FileSpec &, Seis::GeomType, const IOPar &)
 ~Scanner ()
Seis::GeomType geomType () const
const IOParpars () const
void setMaxNrtraces (int n)
void setForceRev0 (bool yn)
void setRichInfo (bool yn)
void collectInfoPerTrace (bool yn)
int nextStep ()
const char * message () const
od_int64 nrDone () const
od_int64 totalNr () const
const char * nrDoneText () const
const FileDataSetfileDataSet () const
FileDataSetfileDataSet ()
void getReport (IOPar &) const
StepInterval< float > zRange () const
const PosInfo::DetectorposInfoDetector () const
const BufferStringSetwarnings () const
const SEGYSeisTrcTranslatortranslator () const

Public Attributes

BufferStringSet fnms_
 Actually used, possibly with errs.
BufferStringSet failedfnms_
 Failed to open or read.
BufferStringSet failerrmsgs_
 Err Msgs for failed.
BufferStringSet scanerrfnms_
 Error during scan (but in fnms_).
BufferStringSet scanerrmsgs_
 Err Msgs for 'Error during scan'.

Protected Member Functions

int openNext ()
int readNext ()
void closeTr ()
void init (const FileSpec &)
int finish (bool)
void addFailed (const char *)
void initFileData ()
void addErrReport (IOPar &) const

Protected Attributes

Seis::GeomType geom_
const IOParpars_
FileDataSetfds_
SEGYSeisTrcTranslatortr_
DataClipSamplerclipsmplr_
int nrtrcs_
bool forcerev0_
bool richinfo_
SeisTrctrc_
int curfidx_
BufferString msg_
od_int64 nrdone_
od_int64 totnr_
PosInfo::Detectordtctor_
BufferStringSet trwarns_
bool notrcinfo_

Detailed Description

Scans SEG-Y file(s). For reports, you'd want to set rich info.


Constructor & Destructor Documentation

SEGY::Scanner::Scanner ( const IOPar ,
Seis::GeomType   
)
SEGY::Scanner::Scanner ( const FileSpec ,
Seis::GeomType  ,
const IOPar  
)
SEGY::Scanner::~Scanner (  ) 

Member Function Documentation

void SEGY::Scanner::addErrReport ( IOPar  )  const [protected]
void SEGY::Scanner::addFailed ( const char *   )  [protected]
void SEGY::Scanner::closeTr (  )  [protected]
void SEGY::Scanner::collectInfoPerTrace ( bool  yn  )  [inline]
FileDataSet& SEGY::Scanner::fileDataSet (  )  [inline]
const FileDataSet& SEGY::Scanner::fileDataSet (  )  const [inline]
int SEGY::Scanner::finish ( bool   )  [protected]
Seis::GeomType SEGY::Scanner::geomType (  )  const [inline]
void SEGY::Scanner::getReport ( IOPar  )  const
void SEGY::Scanner::init ( const FileSpec  )  [protected]
void SEGY::Scanner::initFileData (  )  [protected]
const char* SEGY::Scanner::message (  )  const [inline, virtual]

Reimplemented from Task.

int SEGY::Scanner::nextStep (  )  [virtual]

Implements SequentialTask.

od_int64 SEGY::Scanner::nrDone (  )  const [inline, virtual]

Reimplemented from Task.

const char* SEGY::Scanner::nrDoneText (  )  const [inline, virtual]

Reimplemented from Task.

int SEGY::Scanner::openNext (  )  [protected]
const IOPar& SEGY::Scanner::pars (  )  const [inline]
const PosInfo::Detector& SEGY::Scanner::posInfoDetector (  )  const [inline]
int SEGY::Scanner::readNext (  )  [protected]
void SEGY::Scanner::setForceRev0 ( bool  yn  )  [inline]
void SEGY::Scanner::setMaxNrtraces ( int  n  )  [inline]
void SEGY::Scanner::setRichInfo ( bool  yn  )  [inline]
od_int64 SEGY::Scanner::totalNr (  )  const [virtual]

Reimplemented from Task.

const SEGYSeisTrcTranslator* SEGY::Scanner::translator (  )  const [inline]
const BufferStringSet& SEGY::Scanner::warnings (  )  const [inline]
StepInterval<float> SEGY::Scanner::zRange (  )  const

Member Data Documentation

int SEGY::Scanner::curfidx_ [protected]

Actually used, possibly with errs.

bool SEGY::Scanner::forcerev0_ [protected]
bool SEGY::Scanner::notrcinfo_ [protected]
od_int64 SEGY::Scanner::nrdone_ [protected]
int SEGY::Scanner::nrtrcs_ [protected]
const IOPar& SEGY::Scanner::pars_ [protected]
bool SEGY::Scanner::richinfo_ [protected]

Error during scan (but in fnms_).

Err Msgs for 'Error during scan'.

od_int64 SEGY::Scanner::totnr_ [mutable, protected]