OpendTect-6_4  6.4
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SEGY::FileDataSet Class Reference

Classes

struct  StoredData
 
struct  TrcIdx
 

Public Member Functions

 FileDataSet (const IOPar &iop, ascistream &)
 Reads old version of file into memory. More...
 
 FileDataSet (const IOPar &iop)
 
 ~FileDataSet ()
 
 FileDataSet (const IOPar &, const char *filename, od_stream_Pos start, const DataCharacteristics &int32)
 
 FileDataSet (const FileDataSet &fd)
 Not implemented, just to make linker complain. More...
 
void save2DCoords (bool yn)
 
bool setOutputStream (od_ostream &)
 
void setAuxData (const Seis::GeomType &, const SEGYSeisTrcTranslator &)
 
void addFile (const char *fnm)
 
bool addTrace (int fileidx, const Seis::PosKey &, const Coord &, bool usable)
 
const SamplingData< float > & getSampling () const
 
int getTrcSz () const
 
int nrFiles () const
 
FixedString fileName (int) const
 
bool isEmpty () const
 
od_int64 size () const
 
bool isRev0 () const
 
Seis::GeomType geomType () const
 
const IOParsegyPars () const
 
bool getDetails (od_int64, Seis::PosKey &, bool &usable) const
 
Coord get2DCoord (int trcnr) const
 
TrcIdx getFileIndex (od_int64) const
 
void setIndexer (Seis::PosIndexer *n)
 
void getReport (IOPar &) const
 
void dump (od_ostream &) const
 
bool usePar (const IOPar &iop)
 Read auxdata from storage. More...
 
void fillPar (IOPar &iop) const
 Write auxdata. More...
 

Protected Member Functions

bool readVersion1 (ascistream &)
 
bool readVersion1File (ascistream &)
 

Protected Attributes

IOPar segypars_
 
Seis::GeomType geom_
 
bool isrev0_
 
SamplingData< float > sampling_
 
int trcsz_
 
int nrstanzas_
 
BufferStringSet filenames_
 
TypeSet< od_int64cumsizes_
 
od_int64 totalsz_
 
int nrusable_
 
TypeSet< Seis::PosKeykeys_
 
BoolTypeSet usable_
 
StoredDatastoreddata_
 
SortedTable< int, Coord > * coords_
 
Seis::PosIndexerindexer_
 

Detailed Description

<Stores scanned data from SEGY-files.

Constructor & Destructor Documentation

SEGY::FileDataSet::FileDataSet ( const IOPar iop,
ascistream  
)

Reads old version of file into memory.

SEGY::FileDataSet::FileDataSet ( const IOPar iop)

Creates empty set, can later be filled from scanning.

SEGY::FileDataSet::~FileDataSet ( )
SEGY::FileDataSet::FileDataSet ( const IOPar ,
const char *  filename,
od_stream_Pos  start,
const DataCharacteristics int32 
)

Reads new version of file, only auxdata is read in, the bulk of the data remains on disk.

SEGY::FileDataSet::FileDataSet ( const FileDataSet fd)

Not implemented, just to make linker complain.

Member Function Documentation

void SEGY::FileDataSet::addFile ( const char *  fnm)
bool SEGY::FileDataSet::addTrace ( int  fileidx,
const Seis::PosKey ,
const Coord ,
bool  usable 
)
void SEGY::FileDataSet::dump ( od_ostream ) const
FixedString SEGY::FileDataSet::fileName ( int  ) const
void SEGY::FileDataSet::fillPar ( IOPar iop) const

Write auxdata.

Seis::GeomType SEGY::FileDataSet::geomType ( ) const
inline
Coord SEGY::FileDataSet::get2DCoord ( int  trcnr) const
bool SEGY::FileDataSet::getDetails ( od_int64  ,
Seis::PosKey ,
bool &  usable 
) const
TrcIdx SEGY::FileDataSet::getFileIndex ( od_int64  ) const
void SEGY::FileDataSet::getReport ( IOPar ) const
const SamplingData<float>& SEGY::FileDataSet::getSampling ( ) const
inline
int SEGY::FileDataSet::getTrcSz ( ) const
inline
bool SEGY::FileDataSet::isEmpty ( ) const
inline
bool SEGY::FileDataSet::isRev0 ( ) const
inline
int SEGY::FileDataSet::nrFiles ( ) const
bool SEGY::FileDataSet::readVersion1 ( ascistream )
protected
bool SEGY::FileDataSet::readVersion1File ( ascistream )
protected
void SEGY::FileDataSet::save2DCoords ( bool  yn)
const IOPar& SEGY::FileDataSet::segyPars ( ) const
inline
void SEGY::FileDataSet::setAuxData ( const Seis::GeomType ,
const SEGYSeisTrcTranslator  
)
void SEGY::FileDataSet::setIndexer ( Seis::PosIndexer n)

addTrace will send the trace info to the indexer. Indexer must be kept alive outside object.

bool SEGY::FileDataSet::setOutputStream ( od_ostream )

Will store all information to the stream, rather than in memory.

od_int64 SEGY::FileDataSet::size ( ) const
inline
bool SEGY::FileDataSet::usePar ( const IOPar iop)

Read auxdata from storage.

Member Data Documentation

SortedTable<int,Coord>* SEGY::FileDataSet::coords_
protected
TypeSet<od_int64> SEGY::FileDataSet::cumsizes_
protected
BufferStringSet SEGY::FileDataSet::filenames_
protected
Seis::GeomType SEGY::FileDataSet::geom_
protected
Seis::PosIndexer* SEGY::FileDataSet::indexer_
protected
bool SEGY::FileDataSet::isrev0_
protected
TypeSet<Seis::PosKey> SEGY::FileDataSet::keys_
protected
int SEGY::FileDataSet::nrstanzas_
protected
int SEGY::FileDataSet::nrusable_
protected
SamplingData<float> SEGY::FileDataSet::sampling_
protected
IOPar SEGY::FileDataSet::segypars_
protected
StoredData* SEGY::FileDataSet::storeddata_
protected
od_int64 SEGY::FileDataSet::totalsz_
protected
int SEGY::FileDataSet::trcsz_
protected
BoolTypeSet SEGY::FileDataSet::usable_
protected

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