OpendTect-6_4
6.4
|
describes one tape or trace header field, More...
Public Types | |
enum | DataType { SInt, UInt, Float } |
typedef short | BytePos |
Public Member Functions | |
HdrEntry (const char *desc, const char *nm, BytePos bp=udfBP(), bool issmall=false, DataType dt=SInt) | |
HdrEntry (const HdrEntry &he) | |
HdrEntry & | operator= (const HdrEntry &) |
const char * | description () const |
void | setDescription (const char *) |
const char * | name () const |
void | setName (const char *) |
bool | isInternal () const |
int | byteSize () const |
bool | isUdf () const |
void | setUdf () |
bool | usesByte (BytePos b) const |
int | getValue (const void *buf, bool swapped=false) const |
void | putValue (void *buf, int) const |
void | usePar (const IOPar &, const char *ky, const HdrDef *hd=0) |
void | fillPar (IOPar &, const char *ky) const |
void | removeFromPar (IOPar &, const char *ky) const |
Public Attributes | |
BytePos | bytepos_ |
bool | issmall_ |
DataType | type_ |
Static Protected Member Functions | |
static BytePos | udfBP () |
Protected Attributes | |
BufferString | desc_ |
BufferString | name_ |
describes one tape or trace header field,
Note: it is important to know whether your HdrEntry is in 'internal' or in 'user' format. The difference is 1 byte. For example, tracr is at byte 4 of the trace header, but users need to see 5. The reasone we don't always use internal entries is that some things have to be directly stored in user settings.
typedef short SEGY::HdrEntry::BytePos |
|
inline |
|
inline |
|
inline |
const char* SEGY::HdrEntry::description | ( | ) | const |
void SEGY::HdrEntry::fillPar | ( | IOPar & | , |
const char * | ky | ||
) | const |
int SEGY::HdrEntry::getValue | ( | const void * | buf, |
bool | swapped = false |
||
) | const |
|
inline |
|
inline |
const char* SEGY::HdrEntry::name | ( | ) | const |
void SEGY::HdrEntry::putValue | ( | void * | buf, |
int | |||
) | const |
void SEGY::HdrEntry::removeFromPar | ( | IOPar & | , |
const char * | ky | ||
) | const |
void SEGY::HdrEntry::setDescription | ( | const char * | ) |
void SEGY::HdrEntry::setName | ( | const char * | ) |
|
inline |
|
inlinestaticprotected |
|
inline |
BytePos SEGY::HdrEntry::bytepos_ |
|
protected |
bool SEGY::HdrEntry::issmall_ |
|
protected |
DataType SEGY::HdrEntry::type_ |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019