UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
psc_accumulator.hpp
1 /* psc_accumulator.hpp */
2 /* $Id$ */
3 #ifndef __psc_accumulator_hpp
4 #define __psc_accumulator_hpp
5 
6 #include <s2proc/wave_field.hpp>
7 #include <s2proc/dba_seismic.hpp>
8 #include <s2proc/psc_service.hpp>
9 
10 //------------------------------------------------------------------------------------------
11 
13 namespace psc
14 {
17  {
18  public:
19 
21  struct Parameters
22  {
24  Parameters(const Trace::Header::AttrId i_uniq_attr,
25  const unsigned int i_dir,
26  const unsigned int i_max_used_stride);
27 
29  unsigned int dir;
30  unsigned int max_used_stride;
32  };
33 
36  Accumulator(const dba::Seismic &db, const Parameters &params);
37 
39  virtual ~Accumulator();
40 
41 
43  void setParameters(const Parameters &params);
44 
46  const Parameters& getParameters() const;
47 
48 
50  void setDb(const dba::Seismic &db);
51 
53  const dba::Seismic& getDb() const;
54 
55  protected:
56 
58  virtual void progress(const int current, const int all) const;
59 
60  private:
61 
63  const dba::Seismic *mp_db;
64 
66  Parameters m_params;
67  };
68 }; // namespace psc
69 
70 #endif /* psc_accumulator.hpp */
Trace::Header::AttrId uniq_attr
Definition: psc_accumulator.hpp:28
Parameters(const Trace::Header::AttrId i_uniq_attr, const unsigned int i_dir, const unsigned int i_max_used_stride)
const Parameters & getParameters() const
void setParameters(const Parameters &params)
virtual ~Accumulator()
unsigned int dir
Definition: psc_accumulator.hpp:29
Definition: psc_accumulator.hpp:16
virtual void progress(const int current, const int all) const
Accumulator(const dba::Seismic &db, const Parameters &params)
const dba::Seismic & getDb() const
Definition: psc_accumulator.hpp:21
Definition: dba_seismic.hpp:19
unsigned int max_used_stride
Definition: psc_accumulator.hpp:30
AttrId
Definition: trace.hpp:34
void setDb(const dba::Seismic &db)