UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Protected Attributes | List of all members
S2LDBAccess Class Reference

#include <s2_ldb_access.hpp>

Inheritance diagram for S2LDBAccess:
S2AbstractDBAccess

Public Member Functions

 S2LDBAccess (TrSet &trset)
 
virtual ~S2LDBAccess ()
 
virtual S2AbstractDBAccessclone () const
 
virtual int getSamplesNum () const
 
virtual Trace::TimeT getTimeStep () const
 
virtual int getTracesNum () const
 
virtual bool getTrace (int id, Trace &tr) const
 
virtual bool getWaveField (const Trace::Header::AttrId &attr, int id, WaveField &wf) const
 
virtual bool getWaveField (PointType ptype, int id1, int id2, WaveField &wf) const
 
virtual bool getWaveField (PointType3 ptype, int id1, int id2, int id3, WaveField &wf) const
 
virtual bool getWaveField (int nsl, int nss, int nrl, int nrs, WaveField &wf) const
 
virtual bool getShotsIds (std::set< int > &ids) const
 
virtual bool getRecvsIds (std::set< int > &ids) const
 
virtual bool getCMPsIds (std::set< int > &ids) const
 
virtual bool getLIds (std::set< int > &ids) const
 
virtual bool getCompsIds (std::set< int > &ids) const
 
virtual bool getShotLinesIds (std::set< int > &ids) const
 
virtual bool getShotsOnLineIds (int line_id, std::set< int > &ids) const
 
virtual bool getRecvLinesIds (std::set< int > &ids) const
 
virtual bool getRecvsOnLineIds (int line_id, std::set< int > &ids) const
 
virtual bool getPSCStrides (std::set< int > &strides) const
 
virtual bool getPSCDirs (std::set< int > &dirs) const
 
virtual bool appendTrace (const Trace &tr)
 
- Public Member Functions inherited from S2AbstractDBAccess
 S2AbstractDBAccess ()
 
virtual ~S2AbstractDBAccess ()
 
bool getIds (const Trace::Header::AttrId &attr, std::set< int > &ids) const
 

Protected Attributes

TrSetm_ptrset
 

Additional Inherited Members

- Public Types inherited from S2AbstractDBAccess
enum  PointType {
  PT_NSP_NRP, PT_NSP_NDP, PT_NRP_NDP, PT_NSP_L,
  PT_NRP_L, PT_COMP_NSP, PT_COMP_NRP, PT_COMP_NDP,
  PT_COMP_L, PT_NSP_DIR, PT_NRP_DIR
}
 
enum  PointType3 { PT_NSP_STRIDE_DIR = 0 }
 

Detailed Description

LDB access interface for operations with traces.

Constructor & Destructor Documentation

S2LDBAccess::S2LDBAccess ( TrSet trset)

Default constructor.

virtual S2LDBAccess::~S2LDBAccess ( )
virtual

Destructs object.

Member Function Documentation

virtual bool S2LDBAccess::appendTrace ( const Trace tr)
virtual

Appends new trace into set of traces (should be opened for writing).

Implements S2AbstractDBAccess.

virtual S2AbstractDBAccess* S2LDBAccess::clone ( ) const
inlinevirtual

Clones this object.

Reimplemented from S2AbstractDBAccess.

virtual bool S2LDBAccess::getCMPsIds ( std::set< int > &  ids) const
virtual

Gets set of indexies of CMP. Returns false on error.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getCompsIds ( std::set< int > &  ids) const
virtual

Gets set of indexies of components. Returns false on error.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getLIds ( std::set< int > &  ids) const
virtual

Gets set of indexies of L. Returns false on error.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getPSCDirs ( std::set< int > &  dirs) const
virtual

Gets correlation directions used by POLYCOR algorithm.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getPSCStrides ( std::set< int > &  strides) const
virtual

Gets strides used by POLYCOR algorithm.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getRecvLinesIds ( std::set< int > &  ids) const
virtual

Gets set of indexies of receiver lines. Returns false on error.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getRecvsIds ( std::set< int > &  ids) const
virtual

Gets set of indexies of receivers. Returns false on error.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getRecvsOnLineIds ( int  line_id,
std::set< int > &  ids 
) const
virtual

Gets set of indexies of receivers for provided receiver line. Returns false on error.

Implements S2AbstractDBAccess.

virtual int S2LDBAccess::getSamplesNum ( ) const
virtual

Get current timestep.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getShotLinesIds ( std::set< int > &  ids) const
virtual

Gets set of indexies of shot lines. Returns false on error.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getShotsIds ( std::set< int > &  ids) const
virtual

Gets set of indexies of shots. Returns false on error.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getShotsOnLineIds ( int  line_id,
std::set< int > &  ids 
) const
virtual

Gets set of indexies of shots for provided shot line. Returns false on error.

Implements S2AbstractDBAccess.

virtual Trace::TimeT S2LDBAccess::getTimeStep ( ) const
virtual

Get current timestep.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getTrace ( int  id,
Trace tr 
) const
virtual

Returns trace with provided id from DB. Returns false on error.

Implements S2AbstractDBAccess.

virtual int S2LDBAccess::getTracesNum ( ) const
virtual

Returns number of traces.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getWaveField ( const Trace::Header::AttrId attr,
int  id,
WaveField wf 
) const
virtual

Tries to attach traces with given indexe of provided point type into provided wavefield. Returns false on access error. Empty wavefield if no such traces. Should be reimplemented.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getWaveField ( PointType  ptype,
int  id1,
int  id2,
WaveField wf 
) const
virtual

Tries to attach traces with given indexes of provided point type into provided wavefield. Returns false on access error. Empty wavefield if no such traces.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getWaveField ( PointType3  ptype,
int  id1,
int  id2,
int  id3,
WaveField wf 
) const
virtual

Tries to attach traces with given indexes of provided point type into provided wavefield. Returns false on access error. Empty wavefield if no such traces. Should be reimplemented.

Implements S2AbstractDBAccess.

virtual bool S2LDBAccess::getWaveField ( int  nsl,
int  nss,
int  nrl,
int  nrs,
WaveField wf 
) const
virtual

Tries to attach traces with given shot, receiver and its lines ids into provided wavefield. Returns false on access error. Empty wavefield if no such traces.

Implements S2AbstractDBAccess.

Member Data Documentation

TrSet* S2LDBAccess::m_ptrset
protected

< Set of traces pointer.


The documentation for this class was generated from the following file: