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

SEGY::FileDataSet Class Reference

List of all members.

Classes

struct  StoredData
struct  TrcIdx

Public Member Functions

 FileDataSet (const IOPar &iop, ascistream &)
 Reads old version of file into memory.
 FileDataSet (const IOPar &iop)
 ~FileDataSet ()
 FileDataSet (const IOPar &, const char *filename, od_int64 start, const DataCharacteristics &int32)
 FileDataSet (const FileDataSet &fd)
 Not implemented, just to make linker complain.
void save2DCoords (bool yn)
bool setOutputStream (std::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 isRev1 () 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
bool usePar (const IOPar &iop)
 Read auxdata from storage.
void fillPar (IOPar &iop) const
 Write auxdata.

Protected Member Functions

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

Protected Attributes

IOPar segypars_
Seis::GeomType geom_
bool isrev1_
SamplingData< float > sampling_
int trcsz_
int nrstanzas_
BufferStringSet filenames_
TypeSet< od_int64 > cumsizes_
int 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_int64  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 
)
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::isRev1 (  )  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 ( std::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

TypeSet<od_int64> SEGY::FileDataSet::cumsizes_ [protected]
bool SEGY::FileDataSet::isrev1_ [protected]
int SEGY::FileDataSet::totalsz_ [protected]
int SEGY::FileDataSet::trcsz_ [protected]
BoolTypeSet SEGY::FileDataSet::usable_ [protected]