UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
S2AbstractDBAccess Class Referenceabstract

#include <s2_abstract_db_access.hpp>

Inheritance diagram for S2AbstractDBAccess:
S2LDBAccess

Public Types

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 }
 

Public Member Functions

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

Detailed Description

Data base access interface for operations with traces.

Member Enumeration Documentation

Type of two indexies point for traces obtaining.

Enumerator
PT_NSP_NRP 

Two indexes: NSP and NRP

PT_NSP_NDP 

Two indexes: NSP and NDP

PT_NRP_NDP 

Two indexes: NRP and NRP

PT_NSP_L 

Two indexes: NSP and L

PT_NRP_L 

Two indexes: NRP and L

PT_COMP_NSP 

Two indexes: Component id and NSP (traces sorted by L)

PT_COMP_NRP 

Two indexes: Component id and NRP (traces sorted by L)

PT_COMP_NDP 

Two indexes: Component id and NDP (traces sorted by L)

PT_COMP_L 

Two indexes: Component id and L (traces sorted by NSP)

PT_NSP_DIR 

Two indexes: Shot point and POLYCOR algorithm corr direction.

PT_NRP_DIR 

Two indexes: Receiver point and POLYCOR algorithm corr direction.

Type of three indexies point for traces obtaining.

Enumerator
PT_NSP_STRIDE_DIR 

Three indexies: Shot point id, stride and corr direction. Sorted by NRP.

Constructor & Destructor Documentation

S2AbstractDBAccess::S2AbstractDBAccess ( )

Default constructor.

virtual S2AbstractDBAccess::~S2AbstractDBAccess ( )
virtual

Destructs object.

Member Function Documentation

virtual bool S2AbstractDBAccess::appendTrace ( const Trace tr)
pure virtual

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

Implemented in S2LDBAccess.

virtual S2AbstractDBAccess* S2AbstractDBAccess::clone ( ) const
inlinevirtual

Clones this object.

Reimplemented in S2LDBAccess.

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

Gets set of indexies of CMP. Returns false on error. Should be reimplemented.

Implemented in S2LDBAccess.

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

Gets set of indexies of components. Returns false on error. Should be reimplemented.

Implemented in S2LDBAccess.

bool S2AbstractDBAccess::getIds ( const Trace::Header::AttrId attr,
std::set< int > &  ids 
) const

Gets indexies for provided header attribute. Returns false on error.

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

Gets set of indexies of L. Returns false on error. Should be reimplemented.

Implemented in S2LDBAccess.

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

Gets correlation directions used by POLYCOR algorithm.

Implemented in S2LDBAccess.

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

Gets strides used by POLYCOR algorithm.

Implemented in S2LDBAccess.

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

Gets set of indexies of receiver lines. Returns false on error. Should be reimplemented.

Implemented in S2LDBAccess.

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

Gets set of indexies of receivers. Returns false on error. Should be reimplemented.

Implemented in S2LDBAccess.

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

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

Implemented in S2LDBAccess.

virtual int S2AbstractDBAccess::getSamplesNum ( ) const
pure virtual

Get current timestep.

Implemented in S2LDBAccess.

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

Gets set of indexies of shot lines. Returns false on error. Should be reimplemented.

Implemented in S2LDBAccess.

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

Gets set of indexies of shots. Returns false on error. Should be reimplemented.

Implemented in S2LDBAccess.

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

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

Implemented in S2LDBAccess.

virtual Trace::TimeT S2AbstractDBAccess::getTimeStep ( ) const
pure virtual

Get current timestep.

Implemented in S2LDBAccess.

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

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

Implemented in S2LDBAccess.

virtual int S2AbstractDBAccess::getTracesNum ( ) const
pure virtual

Returns number of traces.

Implemented in S2LDBAccess.

virtual bool S2AbstractDBAccess::getWaveField ( const Trace::Header::AttrId attr,
int  id,
WaveField wf 
) const
pure 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.

Implemented in S2LDBAccess.

virtual bool S2AbstractDBAccess::getWaveField ( PointType  ptype,
int  id1,
int  id2,
WaveField wf 
) const
pure 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.

Implemented in S2LDBAccess.

virtual bool S2AbstractDBAccess::getWaveField ( PointType3  ptype,
int  id1,
int  id2,
int  id3,
WaveField wf 
) const
pure 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.

Implemented in S2LDBAccess.

virtual bool S2AbstractDBAccess::getWaveField ( int  nsl,
int  nss,
int  nrl,
int  nrs,
WaveField wf 
) const
pure 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. Should be reimplemented.

Implemented in S2LDBAccess.


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