UNIVERS
15.3
UNIVERS base processing software API
|
#include <dba_ldb_seismic.hpp>
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 Seismic * | clone () 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) |
TrSet * | getTrSetPtr () |
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 | |
TrSet * | mp_trset |
std::vector< TsInclRule > | m_matching_rules_vec |
std::vector< TsSortRule > | m_sorting_rules_vec |
bool | m_selection_changed_flag |
Data base access interface for operations with LDB seismic traces.
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.
mt | For create mode only. |
|
virtual |
Destructs object.
|
virtual |
Append new sorting rule.
Implements dba::Seismic.
|
virtual |
Append new matching rule.
Implements dba::Seismic.
|
virtual |
Appends new trace into set of traces (has to be opened for writing).
Implements dba::Seismic.
|
virtual |
Clones this object. Result should be deleted by user.
Reimplemented from dba::Seismic.
Reimplemented in dba::LdbSeismicPolycor.
void dba::LdbSeismic::close | ( | ) |
Close seismic.
|
protected |
Get LDB header of trace for provided id.
|
protected |
Get LDB trace for provided id.
|
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 |
Get indexies for provided header attribute. Return false on error.
Implements dba::Seismic.
|
virtual |
Get number of samples. Assume, all traces has equal number of samples.
Implements dba::Seismic.
|
virtual |
Get zero time. Assume, all traces has equal time step.
Implements dba::Seismic.
|
virtual |
Get timestep. Assume, all traces has equal time step.
Implements dba::Seismic.
|
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 |
TrSet* dba::LdbSeismic::getTrSetPtr | ( | ) |
Access to LDB seismic set of traces.
|
protected |
Converts header attribute value to ldb attribute name.
|
protected |
Convert ldb header to provided trace header.
|
virtual |
Reset all rules appended.
Implements dba::Seismic.
|
protected |
Make selection for current sorting and matching rules.
|
protected |
Set LDB trace for provided id. Does current selection changed.
|
virtual |
Replace trace with provided id to DB.
Not defined header attributes values remain in DB. Return false on error.
Implements dba::Seismic.
Update ldb header from data of provided trace header.
|
mutableprotected |
Vector of sorting rules.
|
protected |
< Set of traces. Vector of matching rules.