OpendTect-6_4  6.4
seisimpbpsif.h
Go to the documentation of this file.
1 #ifndef seisimpbpsif_h
2 #define seisimpbpsif_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Bril
9  Date: Jan 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "seismod.h"
16 #include "strmdata.h"
17 #include "bufstringset.h"
18 #include "multiid.h"
19 #include "executor.h"
20 #include "uistring.h"
21 class SeisTrc;
22 class SeisPSImpDataMgr;
23 
24 
68 public:
69 
70  SeisImpBPSIF(const char* filenm,const MultiID&);
71  virtual ~SeisImpBPSIF();
72  void setMaxInlOffset(int);
73 
74  uiString uiMessage() const;
75  od_int64 nrDone() const { return nrshots_; }
76  uiString uiNrDoneText() const { return tr("Shots handled"); }
77  int nextStep();
78 
79  int nrFiles() const { return fnames_.size(); }
80  // Available after first nextStep():
81  const BufferStringSet& header() const { return hdrlines_; }
82  const BufferStringSet& shotAttrs() const { return shotattrs_; }
83  const BufferStringSet& rcvAttrs() const { return rcvattrs_; }
84  // Available after execution:
85  bool isIrregular() const { return irregular_; }
86  int nrShots() const { return nrshots_; }
87  int nrRcvrs() const { return nrrcvpershot_; }
88  int nrRejected() const { return nrrejected_; }
89 
90 protected:
91 
93  int nrshots_;
96  bool binary_;
97  bool irregular_;
105  mutable uiString errmsg_;
106 
107  bool open(const char*);
108  bool openNext();
109  bool readFileHeader();
110  void addAttr(BufferStringSet&,char*);
111  int readAscii();
112  int readBinary();
113  int addTrcsAscii(const SeisTrc&,char*);
114  bool addTrcsBinary(const SeisTrc&);
115  int fileEnded();
116  int writeData();
117 
118 };
119 
120 
121 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Summary for a Seismic object.
Definition: segydirectdef.h:23
BufferStringSet rcvattrs_
Definition: seisimpbpsif.h:103
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
StreamData cursd_
Definition: seisimpbpsif.h:99
SeisPSImpDataMgr & datamgr_
Definition: seisimpbpsif.h:104
#define od_int64
Definition: plftypes.h:36
od_int64 nrDone() const
Definition: seisimpbpsif.h:75
BufferStringSet hdrlines_
Definition: seisimpbpsif.h:101
int nrRejected() const
Definition: seisimpbpsif.h:88
int curfileidx_
Definition: seisimpbpsif.h:92
int nrrejected_
Definition: seisimpbpsif.h:94
bool irregular_
Definition: seisimpbpsif.h:97
int nrShots() const
Definition: seisimpbpsif.h:86
bool endofinput_
Definition: seisimpbpsif.h:98
void setMaxInlOffset(int i)
Definition: seisimpps.h:52
const BufferStringSet & rcvAttrs() const
Definition: seisimpbpsif.h:83
Definition: uistring.h:89
Set of BufferString objects.
Definition: bufstringset.h:28
uiString uiNrDoneText() const
will be nrDoneText() in 7.x
Definition: seisimpbpsif.h:76
bool isIrregular() const
Definition: seisimpbpsif.h:85
uiString errmsg_
Definition: seisimpbpsif.h:105
reads a BPSIF prestack data exchange file into a PS data store
Definition: seisimpbpsif.h:66
BufferStringSet fnames_
Definition: seisimpbpsif.h:100
Holds data to use and close an iostream.
Definition: strmdata.h:28
int nrrcvpershot_
Definition: seisimpbpsif.h:95
BufferStringSet shotattrs_
Definition: seisimpbpsif.h:102
const BufferStringSet & shotAttrs() const
Definition: seisimpbpsif.h:82
Seismic trace.
Definition: seistrc.h:34
int nrFiles() const
Definition: seisimpbpsif.h:79
int nrRcvrs() const
Definition: seisimpbpsif.h:87
bool binary_
Definition: seisimpbpsif.h:96
int nrshots_
Definition: seisimpbpsif.h:93
Compound key consisting of ints.
Definition: multiid.h:25
Manages import of acquisition-sorted PS data. May take loads of memory.
Definition: seisimpps.h:37
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
const BufferStringSet & header() const
Definition: seisimpbpsif.h:81

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019