OpendTect-6_4  6.4
segythdef.h
Go to the documentation of this file.
1 #ifndef segythdef_h
2 #define segythdef_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: 10-5-1995
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "seismod.h"
16 #include "segyhdrdef.h"
17 #include "bufstring.h"
18 class SeisPacketInfo;
19 
20 namespace SEGY
21 {
22 
31 {
32 public:
33  TrcHeaderDef();
34 
44 
45  inline bool isClashing( unsigned char b ) const
46  {
47  return xcoord_.usesByte( b )
48  || ycoord_.usesByte( b )
49  || inl_.usesByte( b )
50  || crl_.usesByte( b )
51  || trnr_.usesByte( b )
52  || offs_.usesByte( b )
53  || azim_.usesByte( b )
54  || pick_.usesByte( b )
55  || refnr_.usesByte( b );
56  }
57 
58  void usePar(const IOPar&);
59  void fromSettings();
60  void fillPar(IOPar&,const char* key="SEG-Y") const;
61 
62  static const char* sXCoordByte();
63  static const char* sYCoordByte();
64  static const char* sInlByte();
65  static const char* sCrlByte();
66  static const char* sTrNrByte();
67  static const char* sOffsByte();
68  static const char* sAzimByte();
69  static const char* sRefNrByte();
70  static const char* sPickByte();
71 
74 };
75 
76 
77 } // namespace
78 
79 #endif
stores HdrEntry info of the needed fields from the trace header.
Definition: segythdef.h:30
#define mExpClass(module)
Definition: commondefs.h:160
Summary for a Seismic object.
Definition: segydirectdef.h:23
BufferString linename
Definition: segythdef.h:72
HdrEntry ycoord_
Definition: segythdef.h:38
bool isClashing(unsigned char b) const
Definition: segythdef.h:45
Information for a packet of seismics, AKA tape header info.
Definition: seispacketinfo.h:25
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
HdrEntry crl_
Definition: segythdef.h:36
HdrEntry xcoord_
Definition: segythdef.h:37
SeisPacketInfo * pinfo
Definition: segythdef.h:73
HdrEntry azim_
Definition: segythdef.h:41
bool usesByte(BytePos b) const
Definition: segyhdrdef.h:65
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
HdrEntry offs_
Definition: segythdef.h:40
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
describes one tape or trace header field,
Definition: segyhdrdef.h:35
HdrEntry pick_
Definition: segythdef.h:42
HdrEntry inl_
Definition: segythdef.h:35
Keys that should be used with od_process_segyio.cc.
Definition: segybatchio.h:22
HdrEntry refnr_
Definition: segythdef.h:43
HdrEntry trnr_
Definition: segythdef.h:39

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