UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
dba_ldb_seismic_polycor.hpp
1 /* dba_ldb_seismic_polycor.hpp */
2 /* $Id$ */
3 #ifndef __dba_ldb_seismic_polycor_hpp
4 #define __dba_ldb_seismic_polycor_hpp
5 
6 #include <map>
7 #include <s2proc/dba_ldb_seismic.hpp>
8 
10 namespace dba
11 {
15  {
16  public:
17 
19  LdbSeismicPolycor(const std::string &project_str,
20  const std::string &name_str,
21  const AccessMode access_mode = OPEN_MODE,
22  TrMtable *mt = NULL );
23 
25  virtual ~LdbSeismicPolycor();
26 
28  virtual Seismic* clone() const;
29 
30 
32  virtual unsigned int getTracesNum() const;
33 
36  virtual bool getTrace(unsigned int id, Trace &tr) const;
37 
40  virtual bool getHeader(unsigned int id, Trace::Header &hdr) const;
41 
42 
43  protected:
44 
46  typedef std::map< std::pair<int,int>, unsigned int> IdsMap;
47 
49  IdsMap m_nsp_nrp_ids_map, m_nrp_ndp_ids_map, m_nrp_l_ids_map;
50 
52  bool m_ids_mapped_flag;
53 
55  bool make_ids_map(TrSet &trset);
56 
58  bool ids_selected_cond(const int attr_id1,
59  const int attr_id2) const;
60 
62  bool get_id(IdsMap::const_iterator &it) const;
63 
64  };
65 }; // dba
66 
67 #endif /* dba_ldb_seismic_polycor.hpp */
virtual bool getTrace(unsigned int id, Trace &tr) const
bool get_id(IdsMap::const_iterator &it) const
LdbSeismicPolycor(const std::string &project_str, const std::string &name_str, const AccessMode access_mode=OPEN_MODE, TrMtable *mt=NULL)
bool make_ids_map(TrSet &trset)
Definition: dba_ldb_seismic.hpp:22
bool ids_selected_cond(const int attr_id1, const int attr_id2) const
virtual bool getHeader(unsigned int id, Trace::Header &hdr) const
std::map< std::pair< int, int >, unsigned int > IdsMap
Definition: dba_ldb_seismic_polycor.hpp:46
virtual Seismic * clone() const
Definition: trace.hpp:14
IdsMap m_nrp_l_ids_map
Definition: dba_ldb_seismic_polycor.hpp:49
Definition: dba_ldb_seismic.hpp:15
Definition: trace.hpp:29
virtual unsigned int getTracesNum() const
Definition: dba_ldb_seismic_polycor.hpp:14
Definition: dba_seismic.hpp:19
virtual ~LdbSeismicPolycor()
AccessMode
Definition: dba_ldb_seismic.hpp:20
Definition: trset.h:44
Definition: trset.h:96