 |
OpendTect
6.6
|
Go to the documentation of this file.
43 BytePos bp=udfBP(),
bool issmall=
false,
45 : bytepos_(bp), issmall_(issmall), type_(dt)
46 , desc_(desc), name_(nm) {}
61 int byteSize()
const {
return issmall_ ? 2 : 4; }
62 inline bool isUdf()
const {
return bytepos_ < 0; }
63 inline void setUdf() { bytepos_ = udfBP(); }
65 {
return b >= bytepos_ && b < bytepos_ + byteSize(); }
67 int getValue(
const void* buf,
bool swapped=
false)
const;
90 bool isBin()
const {
return isbin_; }
94 unsigned char& offs)
const;
Definition: segyhdrdef.h:85
HdrEntry(const char *desc, const char *nm, BytePos bp=udfBP(), bool issmall=false, DataType dt=SInt)
Definition: segyhdrdef.h:42
void setDescription(const char *)
int indexOf(const char *nm) const
int byteSize() const
Definition: segyhdrdef.h:61
const char * description() const
HdrEntry(const HdrEntry &he)
Definition: segyhdrdef.h:47
Summary for a Seismic object.
Definition: segydirectdef.h:22
short BytePos
Definition: segyhdrdef.h:38
#define mExpClass(module)
Definition: commondefs.h:177
static BytePos udfBP()
Definition: segyhdrdef.h:79
BufferString desc_
Definition: segyhdrdef.h:76
void usePar(const IOPar &, const char *ky, const HdrDef *hd=0)
~HdrDef()
Definition: segyhdrdef.h:87
void setName(const char *)
int idxOfBytePos(HdrEntry::BytePos, unsigned char &offs) const
void setUdf()
Definition: segyhdrdef.h:63
const char * name() const
bool isUdf() const
Definition: segyhdrdef.h:62
DataType type_
Definition: segyhdrdef.h:58
bool usesByte(BytePos b) const
Definition: segyhdrdef.h:64
BytePos bytepos_
Definition: segyhdrdef.h:56
describes one tape or trace header field,
Definition: segyhdrdef.h:35
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
void deepErase(BufferStringSet &)
virtual idx_type indexOf(const T *) const
Definition: objectset.h:420
Keys that should be used with od_process_segyio.cc.
Definition: segybatchio.h:22
bool isBin() const
Definition: segyhdrdef.h:90
void swapValues(unsigned char *) const
Data type.
Definition: datainpspec.h:31
bool isbin_
Definition: segyhdrdef.h:103
bool isInternal() const
Definition: segyhdrdef.h:60
@ UInt
Definition: segyhdrdef.h:39
void removeFromPar(IOPar &, const char *ky) const
int indexOf(const HdrEntry *he) const
Definition: segyhdrdef.h:98
void fillPar(IOPar &, const char *ky) const
bool issmall_
Definition: segyhdrdef.h:57
void putValue(void *buf, int) const
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
int getValue(const void *buf, bool swapped=false) const
BufferString name_
Definition: segyhdrdef.h:77
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021