OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
CBVSReadMgr Class Reference

Manager for reading CBVS file-packs. More...

Inheritance diagram for CBVSReadMgr:
[legend]

Public Member Functions

 CBVSReadMgr (const char *, const TrcKeyZSampling *cs=0, bool single_file=false, bool glob_info_only=false, bool forceusecbvsinfo=false)
 
 ~CBVSReadMgr ()
 
const CBVSInfoinfo () const
 
int bytesOverheadPerTrace () const
 
void close ()
 
BinID nextBinID () const
 
bool goTo (const BinID &)
 
bool toNext ()
 
bool toStart ()
 
bool getAuxInfo (PosAuxInfo &)
 
bool fetch (void **, const bool *comps=0, const Interval< int > *samps=0)
 
bool fetch (TraceData &, const bool *comps=0, const Interval< int > *samps=0)
 See CBVSReader::fetch comments. More...
 
int nrComponents () const
 
const BinIDbinID () const
 
void getIsRev (bool &inl, bool &crl) const
 
const char * baseFileName () const
 
int nrReaders () const
 
const CBVSReaderreader (int idx) const
 
int pruneReaders (const TrcKeyZSampling &)
 returns number of readers left. More...
 
void dumpInfo (od_ostream &, bool include_compinfo) const
 
const TypeSet< Coord > & trailerCoords () const
 
void getPositions (TypeSet< BinID > &) const
 
void getPositions (TypeSet< Coord > &) const
 This may actually reset the position to the first. More...
 
- Public Member Functions inherited from CBVSIOMgr
 CBVSIOMgr (const char *basefname)
 
virtual ~CBVSIOMgr ()
 
bool failed () const
 
const char * errMsg () const
 
BufferString getFileName (int nr) const
 

Static Public Member Functions

static const char * check (const char *)
 
- Static Public Member Functions inherited from CBVSIOMgr
static BufferString baseFileName (const char *)
 
static BufferString getFileName (const char *, int)
 returns aux file name for negative nr More...
 
static int getFileNr (const char *)
 returns 0 or number behind '^' More...
 

Protected Member Functions

bool addReader (od_istream *, const TrcKeyZSampling *, bool, bool)
 
bool addReader (const char *, const TrcKeyZSampling *, bool, bool)
 
int nextRdrNr (int) const
 
const char * errMsg_ () const
 

Protected Attributes

ObjectSet< CBVSReaderreaders_
 
CBVSInfoinfo_
 
bool vertical_
 
int rdr1firstsampnr_
 
- Protected Attributes inherited from CBVSIOMgr
BufferString basefname_
 
BufferString errmsg_
 
BufferStringSet fnames_
 
int curnr_
 

Private Member Functions

void createInfo ()
 
bool handleInfo (CBVSReader *, int)
 

Detailed Description

Manager for reading CBVS file-packs.

Constructor & Destructor Documentation

CBVSReadMgr::CBVSReadMgr ( const char *  ,
const TrcKeyZSampling cs = 0,
bool  single_file = false,
bool  glob_info_only = false,
bool  forceusecbvsinfo = false 
)

glob_info_only: I am useless except for inspecting global info. See also CBVSReader.

CBVSReadMgr::~CBVSReadMgr ( )

Member Function Documentation

bool CBVSReadMgr::addReader ( od_istream ,
const TrcKeyZSampling ,
bool  ,
bool   
)
protected
bool CBVSReadMgr::addReader ( const char *  ,
const TrcKeyZSampling ,
bool  ,
bool   
)
protected
const char* CBVSReadMgr::baseFileName ( ) const
inline
const BinID& CBVSReadMgr::binID ( ) const
virtual

Implements CBVSIOMgr.

int CBVSReadMgr::bytesOverheadPerTrace ( ) const
static const char* CBVSReadMgr::check ( const char *  )
static

Determines whether this is a CBVS file pack. returns an error message, or null if OK.

void CBVSReadMgr::close ( )
virtual

Implements CBVSIOMgr.

void CBVSReadMgr::createInfo ( )
private
void CBVSReadMgr::dumpInfo ( od_ostream ,
bool  include_compinfo 
) const
const char* CBVSReadMgr::errMsg_ ( ) const
protectedvirtual

Implements CBVSIOMgr.

bool CBVSReadMgr::fetch ( void **  ,
const bool *  comps = 0,
const Interval< int > *  samps = 0 
)
bool CBVSReadMgr::fetch ( TraceData ,
const bool *  comps = 0,
const Interval< int > *  samps = 0 
)

See CBVSReader::fetch comments.

bool CBVSReadMgr::getAuxInfo ( PosAuxInfo )
void CBVSReadMgr::getIsRev ( bool &  inl,
bool &  crl 
) const
void CBVSReadMgr::getPositions ( TypeSet< BinID > &  ) const
void CBVSReadMgr::getPositions ( TypeSet< Coord > &  ) const

This may actually reset the position to the first.

bool CBVSReadMgr::goTo ( const BinID )
bool CBVSReadMgr::handleInfo ( CBVSReader ,
int   
)
private
const CBVSInfo& CBVSReadMgr::info ( ) const
inline
BinID CBVSReadMgr::nextBinID ( ) const
int CBVSReadMgr::nextRdrNr ( int  ) const
protected
int CBVSReadMgr::nrComponents ( ) const
virtual

Implements CBVSIOMgr.

int CBVSReadMgr::nrReaders ( ) const
inline
int CBVSReadMgr::pruneReaders ( const TrcKeyZSampling )

returns number of readers left.

const CBVSReader& CBVSReadMgr::reader ( int  idx) const
inline
bool CBVSReadMgr::toNext ( )
bool CBVSReadMgr::toStart ( )
const TypeSet<Coord>& CBVSReadMgr::trailerCoords ( ) const

Member Data Documentation

CBVSInfo& CBVSReadMgr::info_
protected
int CBVSReadMgr::rdr1firstsampnr_
protected
ObjectSet<CBVSReader> CBVSReadMgr::readers_
protected
bool CBVSReadMgr::vertical_
protected

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