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

#include <dba_ldb_seismic_polycor.hpp>

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

Public Member Functions

 LdbSeismicPolycor (const std::string &project_str, const std::string &name_str, const AccessMode access_mode=OPEN_MODE, TrMtable *mt=NULL)
 
virtual ~LdbSeismicPolycor ()
 
virtual Seismicclone () 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
 
- Public Member Functions inherited from dba::LdbSeismic
 LdbSeismic (const std::string &project_str, const std::string &name_str, const AccessMode access_mode=OPEN_MODE, TrMtable *mt=NULL)
 
virtual ~LdbSeismic ()
 
void close ()
 
virtual unsigned int getSamplesNum () const
 
virtual Trace::TimeT getTimeStep () const
 
virtual Trace::TimeT getT0 () 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 Types

typedef std::map< std::pair
< int, int >, unsigned int > 
IdsMap
 

Protected Member Functions

bool make_ids_map (TrSet &trset)
 
bool ids_selected_cond (const int attr_id1, const int attr_id2) const
 
bool get_id (IdsMap::const_iterator &it) const
 
- Protected Member Functions inherited from dba::LdbSeismic
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

IdsMap m_nsp_nrp_ids_map
 
IdsMap m_nrp_ndp_ids_map
 
IdsMap m_nrp_l_ids_map
 
bool m_ids_mapped_flag
 
- Protected Attributes inherited from dba::LdbSeismic
TrSetmp_trset
 
std::vector< TsInclRulem_matching_rules_vec
 
std::vector< TsSortRulem_sorting_rules_vec
 
bool m_selection_changed_flag
 

Additional Inherited Members

- Public Types inherited from dba::LdbSeismic
enum  AccessMode { OPEN_MODE = 0, EDIT_MODE, CREATE_MODE }
 

Detailed Description

Data base access interface for operations with LDB seismic traces. Optimized for speed for POLYCOR algorithm.

Member Typedef Documentation

typedef std::map< std::pair<int,int>, unsigned int> dba::LdbSeismicPolycor::IdsMap
protected

Map of indexies. Map of indexies for (NSP,NRP),(NSP,NDP) and (NSP,L) pairs.

Constructor & Destructor Documentation

dba::LdbSeismicPolycor::LdbSeismicPolycor ( 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::LdbSeismicPolycor::~LdbSeismicPolycor ( )
virtual

Destructs object.

Member Function Documentation

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

Clones this object. Result should be deleted by user.

Reimplemented from dba::LdbSeismic.

bool dba::LdbSeismicPolycor::get_id ( IdsMap::const_iterator &  it) const
protected

Get id of index from cache. False if no cache or no indexies for caching.

virtual bool dba::LdbSeismicPolycor::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.

Reimplemented from dba::LdbSeismic.

virtual bool dba::LdbSeismicPolycor::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.

Reimplemented from dba::LdbSeismic.

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

Returns number of traces.

Reimplemented from dba::LdbSeismic.

bool dba::LdbSeismicPolycor::ids_selected_cond ( const int  attr_id1,
const int  attr_id2 
) const
protected

True if provided header words selected.

bool dba::LdbSeismicPolycor::make_ids_map ( TrSet trset)
protected

Make map of indexies for provide trset.

Member Data Documentation

IdsMap dba::LdbSeismicPolycor::m_nrp_l_ids_map
protected

Indexies mapped flag.


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