OpendTect  6.6
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 char * baseFileName () const
 
const BinIDbinID () const
 
int bytesOverheadPerTrace () const
 
void close ()
 
void dumpInfo (od_ostream &, bool include_compinfo) const
 
bool fetch (TraceData &, const bool *comps, const Interval< int > *samps)
 See CBVSReader::fetch comments. More...
 
bool fetch (TraceData &, const bool *comps=nullptr, const StepInterval< int > *samps=nullptr)
 
bool fetch (void **, const bool *comps=0, const Interval< int > *samps=0)
 
bool getAuxInfo (PosAuxInfo &)
 
void getIsRev (bool &inl, bool &crl) const
 
void getPositions (TypeSet< BinID > &) const
 
void getPositions (TypeSet< Coord > &) const
 This may actually reset the position to the first. More...
 
bool goTo (const BinID &)
 
const CBVSInfoinfo () const
 
BinID nextBinID () const
 
int nrComponents () const
 
int nrReaders () const
 
int pruneReaders (const TrcKeyZSampling &)
 returns number of readers left. More...
 
const CBVSReaderreader (int idx) const
 
void setSingleLineMode (bool yn=true)
 
bool toNext ()
 
bool toStart ()
 
const TypeSet< Coord > & trailerCoords () const
 
- Public Member Functions inherited from CBVSIOMgr
 CBVSIOMgr (const char *basefname)
 
virtual ~CBVSIOMgr ()
 
const char * errMsg () const
 
bool failed () 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 (const char *, const TrcKeyZSampling *, bool, bool)
 
bool addReader (od_istream *, const TrcKeyZSampling *, bool, bool)
 
const char * errMsg_ () const
 
int nextRdrNr (int) const
 

Protected Attributes

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

Private Member Functions

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

Detailed Description

Manager for reading CBVS file-packs.

<>

Constructor & Destructor Documentation

◆ CBVSReadMgr()

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::~CBVSReadMgr ( )

Member Function Documentation

◆ addReader() [1/2]

bool CBVSReadMgr::addReader ( const char *  ,
const TrcKeyZSampling ,
bool  ,
bool   
)
protected

◆ addReader() [2/2]

bool CBVSReadMgr::addReader ( od_istream ,
const TrcKeyZSampling ,
bool  ,
bool   
)
protected

◆ baseFileName()

const char* CBVSReadMgr::baseFileName ( ) const
inline

◆ binID()

const BinID& CBVSReadMgr::binID ( ) const
virtual

Implements CBVSIOMgr.

◆ bytesOverheadPerTrace()

int CBVSReadMgr::bytesOverheadPerTrace ( ) const

◆ check()

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

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

◆ close()

void CBVSReadMgr::close ( )
virtual

Implements CBVSIOMgr.

◆ createInfo()

void CBVSReadMgr::createInfo ( )
private

◆ dumpInfo()

void CBVSReadMgr::dumpInfo ( od_ostream ,
bool  include_compinfo 
) const

◆ errMsg_()

const char* CBVSReadMgr::errMsg_ ( ) const
protectedvirtual

Implements CBVSIOMgr.

◆ fetch() [1/3]

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

See CBVSReader::fetch comments.

◆ fetch() [2/3]

bool CBVSReadMgr::fetch ( TraceData ,
const bool *  comps = nullptr,
const StepInterval< int > *  samps = nullptr 
)

◆ fetch() [3/3]

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

◆ getAuxInfo()

bool CBVSReadMgr::getAuxInfo ( PosAuxInfo )

◆ getIsRev()

void CBVSReadMgr::getIsRev ( bool &  inl,
bool &  crl 
) const

◆ getPositions() [1/2]

void CBVSReadMgr::getPositions ( TypeSet< BinID > &  ) const

◆ getPositions() [2/2]

void CBVSReadMgr::getPositions ( TypeSet< Coord > &  ) const

This may actually reset the position to the first.

◆ goTo()

bool CBVSReadMgr::goTo ( const BinID )

◆ handleInfo()

bool CBVSReadMgr::handleInfo ( CBVSReader ,
int   
)
private

◆ info()

const CBVSInfo& CBVSReadMgr::info ( ) const
inline

◆ nextBinID()

BinID CBVSReadMgr::nextBinID ( ) const

◆ nextRdrNr()

int CBVSReadMgr::nextRdrNr ( int  ) const
protected

◆ nrComponents()

int CBVSReadMgr::nrComponents ( ) const
virtual

Implements CBVSIOMgr.

◆ nrReaders()

int CBVSReadMgr::nrReaders ( ) const
inline

◆ pruneReaders()

int CBVSReadMgr::pruneReaders ( const TrcKeyZSampling )

returns number of readers left.

◆ reader()

const CBVSReader& CBVSReadMgr::reader ( int  idx) const
inline

◆ setSingleLineMode()

void CBVSReadMgr::setSingleLineMode ( bool  yn = true)

◆ toNext()

bool CBVSReadMgr::toNext ( )

◆ toStart()

bool CBVSReadMgr::toStart ( )

◆ trailerCoords()

const TypeSet<Coord>& CBVSReadMgr::trailerCoords ( ) const

Member Data Documentation

◆ info_

CBVSInfo& CBVSReadMgr::info_
protected

◆ rdr1firstsampnr_

int CBVSReadMgr::rdr1firstsampnr_
protected

◆ readers_

ObjectSet<CBVSReader> CBVSReadMgr::readers_
protected

◆ vertical_

bool CBVSReadMgr::vertical_
protected

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