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

#include <dba_ldb_seismic.hpp>

Inheritance diagram for dba::LdbSeismic:
dba::Seismic dba::LdbSeismicPolycor

Public Types

enum  AccessMode { OPEN_MODE = 0, EDIT_MODE, CREATE_MODE }
 

Public Member Functions

 LdbSeismic (const std::string &project_str, const std::string &name_str, const AccessMode access_mode=OPEN_MODE, TrMtable *mt=NULL)
 
virtual ~LdbSeismic ()
 
virtual Seismicclone () const
 
void close ()
 
virtual unsigned int getSamplesNum () const
 
virtual Trace::TimeT getTimeStep () const
 
virtual Trace::TimeT getT0 () const
 
virtual unsigned int getTracesNum () const
 
virtual bool getTrace (unsigned int id, Trace &tr) const
 
virtual bool getHeader (unsigned int id, Trace::Header &hdr) const
 
virtual bool getIndexies (const Trace::Header::AttrId &hdr_attr, std::set< int > &ids) const
 
virtual void appendRule (const SortingRuleType type, const Trace::Header::AttrId &hdr_attr) const
 
virtual void appendRule (const MatchingRuleType type, const Trace::Header::AttrId &hdr_attr, const int id) const
 
virtual void resetRules () const
 
virtual bool appendTrace (const Trace &tr)
 
virtual bool setTrace (unsigned int id, Trace &tr)
 
TrSetgetTrSetPtr ()
 
- Public Member Functions inherited from dba::Seismic
virtual ~Seismic ()
 
bool getWaveField (const Trace::Header &def_hdr, WaveField &wf) const
 

Protected Member Functions

void ldb2hdr (const TrHeader &ldb_hdr, Trace::Header &hdr) const
 
void update_ldb_header (const Trace &tr, TrHeader &ldb_hdr) const
 
bool hdrAttr2name (const Trace::Header::AttrId &attr_id, TraceAttrId &ldb_attr_id) const
 
bool select () const
 
bool get_ldb_trace (unsigned int id, Trace &tr) const
 
bool get_ldb_header (unsigned int id, Trace::Header &hdr) const
 
bool set_ldb_trace (unsigned int id, Trace &tr)
 

Protected Attributes

TrSetmp_trset
 
std::vector< TsInclRulem_matching_rules_vec
 
std::vector< TsSortRulem_sorting_rules_vec
 
bool m_selection_changed_flag
 

Detailed Description

Data base access interface for operations with LDB seismic traces.

Member Enumeration Documentation

Access mode.

Enumerator
OPEN_MODE 

Access for reading.

EDIT_MODE 

Access for reading and writing.

CREATE_MODE 

Create new modification for reading and writing.

Constructor & Destructor Documentation

dba::LdbSeismic::LdbSeismic ( const std::string &  project_str,
const std::string &  name_str,
const AccessMode  access_mode = OPEN_MODE,
TrMtable mt = NULL 
)

Constructor with LDB Project and seismic name provided.

Parameters
mtFor create mode only.
virtual dba::LdbSeismic::~LdbSeismic ( )
virtual

Destructs object.

Member Function Documentation

virtual void dba::LdbSeismic::appendRule ( const SortingRuleType  type,
const Trace::Header::AttrId hdr_attr 
) const
virtual

Append new sorting rule.

Implements dba::Seismic.

virtual void dba::LdbSeismic::appendRule ( const MatchingRuleType  type,
const Trace::Header::AttrId hdr_attr,
const int  id 
) const
virtual

Append new matching rule.

Implements dba::Seismic.

virtual bool dba::LdbSeismic::appendTrace ( const Trace tr)
virtual

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

Implements dba::Seismic.

virtual Seismic* dba::LdbSeismic::clone ( ) const
virtual

Clones this object. Result should be deleted by user.

Reimplemented from dba::Seismic.

Reimplemented in dba::LdbSeismicPolycor.

void dba::LdbSeismic::close ( )

Close seismic.

bool dba::LdbSeismic::get_ldb_header ( unsigned int  id,
Trace::Header hdr 
) const
protected

Get LDB header of trace for provided id.

bool dba::LdbSeismic::get_ldb_trace ( unsigned int  id,
Trace tr 
) const
protected

Get LDB trace for provided id.

virtual bool dba::LdbSeismic::getHeader ( unsigned int  id,
Trace::Header hdr 
) const
virtual
Get header of trace with provided id from DB. 

All header attributes had been set will be filled. Returns false on error.

Implements dba::Seismic.

Reimplemented in dba::LdbSeismicPolycor.

virtual bool dba::LdbSeismic::getIndexies ( const Trace::Header::AttrId hdr_attr,
std::set< int > &  ids 
) const
virtual

Get indexies for provided header attribute. Return false on error.

Implements dba::Seismic.

virtual unsigned int dba::LdbSeismic::getSamplesNum ( ) const
virtual

Get number of samples. Assume, all traces has equal number of samples.

Implements dba::Seismic.

virtual Trace::TimeT dba::LdbSeismic::getT0 ( ) const
virtual

Get zero time. Assume, all traces has equal time step.

Implements dba::Seismic.

virtual Trace::TimeT dba::LdbSeismic::getTimeStep ( ) const
virtual

Get timestep. Assume, all traces has equal time step.

Implements dba::Seismic.

virtual bool dba::LdbSeismic::getTrace ( unsigned int  id,
Trace tr 
) const
virtual
Get trace with provided id from DB. 

All header attributes had been set will be filled. Returns false on error.

Implements dba::Seismic.

Reimplemented in dba::LdbSeismicPolycor.

virtual unsigned int dba::LdbSeismic::getTracesNum ( ) const
virtual

Returns number of traces.

Implements dba::Seismic.

Reimplemented in dba::LdbSeismicPolycor.

TrSet* dba::LdbSeismic::getTrSetPtr ( )

Access to LDB seismic set of traces.

bool dba::LdbSeismic::hdrAttr2name ( const Trace::Header::AttrId attr_id,
TraceAttrId &  ldb_attr_id 
) const
protected

Converts header attribute value to ldb attribute name.

void dba::LdbSeismic::ldb2hdr ( const TrHeader ldb_hdr,
Trace::Header hdr 
) const
protected

Convert ldb header to provided trace header.

virtual void dba::LdbSeismic::resetRules ( ) const
virtual

Reset all rules appended.

Implements dba::Seismic.

bool dba::LdbSeismic::select ( ) const
protected

Make selection for current sorting and matching rules.

bool dba::LdbSeismic::set_ldb_trace ( unsigned int  id,
Trace tr 
)
protected

Set LDB trace for provided id. Does current selection changed.

virtual bool dba::LdbSeismic::setTrace ( unsigned int  id,
Trace tr 
)
virtual
Replace trace with provided id to DB. 

Not defined header attributes values remain in DB. Return false on error.

Implements dba::Seismic.

void dba::LdbSeismic::update_ldb_header ( const Trace tr,
TrHeader ldb_hdr 
) const
protected

Update ldb header from data of provided trace header.

Member Data Documentation

std::vector<TsInclRule> dba::LdbSeismic::m_matching_rules_vec
mutableprotected

Vector of sorting rules.

TrSet* dba::LdbSeismic::mp_trset
protected

< Set of traces. Vector of matching rules.


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