OpendTect  6.3
segythdef.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: A.H. Bril
8  Date: 10-5-1995
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "segyhdrdef.h"
14 #include "bufstring.h"
15 class SeisPacketInfo;
16 
17 namespace SEGY
18 {
19 
28 {
29 public:
30  TrcHeaderDef();
31 
41 
42  inline bool isClashing( unsigned char b ) const
43  {
44  return xcoord_.usesByte( b )
45  || ycoord_.usesByte( b )
46  || inl_.usesByte( b )
47  || crl_.usesByte( b )
48  || trnr_.usesByte( b )
49  || offs_.usesByte( b )
50  || azim_.usesByte( b )
51  || pick_.usesByte( b )
52  || refnr_.usesByte( b );
53  }
54 
55  void usePar(const IOPar&);
56  void fromSettings();
57  void fillPar(IOPar&,const char* key="SEG-Y") const;
58 
59  static const char* sXCoordByte();
60  static const char* sYCoordByte();
61  static const char* sInlByte();
62  static const char* sCrlByte();
63  static const char* sTrNrByte();
64  static const char* sOffsByte();
65  static const char* sAzimByte();
66  static const char* sRefNrByte();
67  static const char* sPickByte();
68 
71 };
72 
73 
74 } // namespace
stores HdrEntry info of the needed fields from the trace header.
Definition: segythdef.h:27
#define mExpClass(module)
Definition: commondefs.h:157
Seismics.
Definition: segydirectdef.h:20
BufferString linename
Definition: segythdef.h:69
HdrEntry ycoord_
Definition: segythdef.h:35
bool isClashing(unsigned char b) const
Definition: segythdef.h:42
Information for a packet of seismics, AKA tape header info.
Definition: seispacketinfo.h:23
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
HdrEntry crl_
Definition: segythdef.h:33
HdrEntry xcoord_
Definition: segythdef.h:34
SeisPacketInfo * pinfo
Definition: segythdef.h:70
HdrEntry azim_
Definition: segythdef.h:38
bool usesByte(BytePos b) const
Definition: segyhdrdef.h:62
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
HdrEntry offs_
Definition: segythdef.h:37
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
describes one tape or trace header field,
Definition: segyhdrdef.h:32
HdrEntry pick_
Definition: segythdef.h:39
HdrEntry inl_
Definition: segythdef.h:32
Keys that should be used with od_process_segyio.cc.
Definition: segybatchio.h:18
HdrEntry refnr_
Definition: segythdef.h:40
HdrEntry trnr_
Definition: segythdef.h:36

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