OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "seismod.h"
15 #include "segyhdrdef.h"
16 #include "bufstring.h"
17 class SeisPacketInfo;
18 
19 namespace SEGY
20 {
21 
30 {
31 public:
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 } // namespace SEGY
SEGY::TrcHeaderDef::TrcHeaderDef
TrcHeaderDef()
SEGY::TrcHeaderDef::xcoord_
HdrEntry xcoord_
Definition: segythdef.h:37
SEGY::TrcHeaderDef::ycoord_
HdrEntry ycoord_
Definition: segythdef.h:38
segyhdrdef.h
SEGY::TrcHeaderDef::~TrcHeaderDef
~TrcHeaderDef()
SEGY::TrcHeaderDef::sRefNrByte
static const char * sRefNrByte()
SEGY::TrcHeaderDef::sCrlByte
static const char * sCrlByte()
SEGY::TrcHeaderDef::sOffsByte
static const char * sOffsByte()
Seis
Summary for a Seismic object.
Definition: segydirectdef.h:22
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
SEGY::TrcHeaderDef::isClashing
bool isClashing(unsigned char b) const
Definition: segythdef.h:45
SEGY::TrcHeaderDef::sAzimByte
static const char * sAzimByte()
SeisPacketInfo
Information for a packet of seismics, AKA tape header info.
Definition: seispacketinfo.h:25
SEGY::TrcHeaderDef::refnr_
HdrEntry refnr_
Definition: segythdef.h:43
bufstring.h
SEGY::TrcHeaderDef::crl_
HdrEntry crl_
Definition: segythdef.h:36
SEGY::TrcHeaderDef::linename
BufferString linename
Definition: segythdef.h:72
SEGY::TrcHeaderDef::fillPar
void fillPar(IOPar &, const char *key="SEG-Y") const
SEGY::TrcHeaderDef::pinfo
SeisPacketInfo * pinfo
Definition: segythdef.h:73
SEGY::TrcHeaderDef::usePar
void usePar(const IOPar &)
SEGY::TrcHeaderDef::azim_
HdrEntry azim_
Definition: segythdef.h:41
SEGY::TrcHeaderDef
stores HdrEntry info of the needed fields from the trace header.
Definition: segythdef.h:30
SEGY::HdrEntry::usesByte
bool usesByte(BytePos b) const
Definition: segyhdrdef.h:64
SEGY::TrcHeaderDef::pick_
HdrEntry pick_
Definition: segythdef.h:42
SEGY::HdrEntry
describes one tape or trace header field,
Definition: segyhdrdef.h:35
SEGY::TrcHeaderDef::offs_
HdrEntry offs_
Definition: segythdef.h:40
SEGY::TrcHeaderDef::sYCoordByte
static const char * sYCoordByte()
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
SEGY::TrcHeaderDef::fromSettings
void fromSettings()
SEGY::TrcHeaderDef::sXCoordByte
static const char * sXCoordByte()
SEGY::TrcHeaderDef::sPickByte
static const char * sPickByte()
SEGY::TrcHeaderDef::sTrNrByte
static const char * sTrNrByte()
SEGY
Keys that should be used with od_process_segyio.cc.
Definition: segybatchio.h:22
SEGY::TrcHeaderDef::trnr_
HdrEntry trnr_
Definition: segythdef.h:39
SEGY::TrcHeaderDef::inl_
HdrEntry inl_
Definition: segythdef.h:35
SEGY::TrcHeaderDef::sInlByte
static const char * sInlByte()
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55

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