OpendTect-6_4  6.4
seisimpps.h
Go to the documentation of this file.
1 #ifndef seisimpps_h
2 #define seisimpps_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 SeisTrcWriter;
23 class SeisPSImpLineBuf;
24 
25 
38 { mODTextTranslationClass(SeisPSImpDataMgr);
39 public:
40 
41  SeisPSImpDataMgr(const MultiID& pswrid);
42  virtual ~SeisPSImpDataMgr();
43 
44  void add(SeisTrc*);
45  void endReached();
46  bool needWrite() const { return !towrite_.isEmpty(); }
47  bool writeGather();
49  bool isEmpty() const { return lines_.isEmpty(); }
50 
51  int maxInlOffset() const { return maxinloffs_; }
52  void setMaxInlOffset( int i ) { maxinloffs_ = i; }
53  void setSampleNames( const BufferStringSet& bss )
54  { samplenms_ = bss; }
55 
56  uiString errMsg() const { return errmsg_; }
57  const SeisTrcWriter* trcWriter() const { return wrr_; }
58  bool constGatherSize() const { return gathersize_ > 0; }
59 
60 protected:
61 
68 
70  mutable uiString errmsg_;
71 
72  void updateStatus(int);
73 };
74 
75 
76 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Summary for a Seismic object.
Definition: segydirectdef.h:23
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Definition: seiswrite.h:41
void setSampleNames(const BufferStringSet &bss)
Definition: seisimpps.h:53
void setMaxInlOffset(int i)
Definition: seisimpps.h:52
Definition: uistring.h:89
Set of BufferString objects.
Definition: bufstringset.h:28
SeisTrcWriter * wrr_
Definition: seisimpps.h:64
ObjectSet< SeisPSImpLineBuf > lines_
Definition: seisimpps.h:62
int maxinloffs_
Definition: seisimpps.h:65
int gathersize_
Definition: seisimpps.h:69
uiString errmsg_
Definition: seisimpps.h:70
bool isEmpty() const
Definition: seisimpps.h:49
BufferStringSet samplenms_
Definition: seisimpps.h:67
MultiID wrid_
Definition: seisimpps.h:63
const SeisTrcWriter * trcWriter() const
Definition: seisimpps.h:57
bool needWrite() const
Definition: seisimpps.h:46
Seismic trace.
Definition: seistrc.h:34
BufferString errmsg_
Definition: horizontracker.h:119
TypeSet< int > towrite_
Definition: seisimpps.h:66
int maxInlOffset() const
Definition: seisimpps.h:51
uiString errMsg() const
Definition: seisimpps.h:56
bool constGatherSize() const
Definition: seisimpps.h:58
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

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