OpendTect
7.0
|
Byte-level data interpreter. More...
Public Member Functions | |
DataInterpreter (const DataCharacteristics &, bool ignoreendianness=false) | |
DataInterpreter (const DataCharacteristics &dc, bool ignend) | |
DataInterpreter (const DataInterpreter &di) | |
DataInterpreter (const DataInterpreter< T > &) | |
DataCharacteristics | dataChar () const |
DataCharacteristics | dataChar () const |
T | get (const void *buf, od_int64 nr) const |
T | get (od_istream &) const |
bool | isSUCompat () const |
bool | needSwap () const |
bool | needSwap () const |
int | nrBytes () const |
int | nrBytes () const |
bool | operator!= (const DataInterpreter &di) const |
DataInterpreter< T > & | operator= (const DataCharacteristics &dc) |
DataInterpreter< mTheType > & | operator= (const DataInterpreter< mTheType > &di) |
DataInterpreter< T > & | operator= (const DataInterpreter< T > &) |
bool | operator== (const DataInterpreter &di) const |
void | put (void *buf, od_int64 nr, T t) const |
void | set (const DataCharacteristics &, bool ignoreendianness=false) |
use ignoreendianness when you pre-byteswap the data More... | |
void | set (const DataCharacteristics &dc, bool ignend) |
void | swap (void *buf, od_int64 bufsz_in_elements) const |
Static Public Member Functions | |
static DataInterpreter< T > | create () |
static DataInterpreter< T > * | create (const char *, bool alsoifequal) |
static DataInterpreter< T > * | create (const DataCharacteristics &, bool alsoifequal) |
static DataInterpreter< T > * | create (const IOPar &par, const char *key, bool alsoifequal) |
static T | get (const DataInterpreter< T > *, od_istream &) |
static bool | get (const DataInterpreter< T > *, od_istream &, T &) |
Protected Types | |
typedef T(DataInterpreter< T >::* | GetFn) (const void *, od_int64) const |
typedef void(DataInterpreter< T >::* | PutFn) (void *, od_int64, T) const |
typedef void(DataInterpreter< T >::* | SwapFn) (void *, od_int64) const |
Protected Member Functions | |
T | get0 (const void *, od_int64) const |
T | getD (const void *, od_int64) const |
T | getDswp (const void *, od_int64) const |
T | getF (const void *, od_int64) const |
T | getFIbm (const void *, od_int64) const |
T | getFIbmswp (const void *, od_int64) const |
T | getFswp (const void *, od_int64) const |
T | getS1 (const void *, od_int64) const |
T | getS2 (const void *, od_int64) const |
T | getS2Ibm (const void *, od_int64) const |
T | getS2Ibmswp (const void *, od_int64) const |
T | getS2swp (const void *, od_int64) const |
T | getS4 (const void *, od_int64) const |
T | getS4Ibm (const void *, od_int64) const |
T | getS4Ibmswp (const void *, od_int64) const |
T | getS4swp (const void *, od_int64) const |
T | getS8 (const void *, od_int64) const |
T | getS8swp (const void *, od_int64) const |
T | getU1 (const void *, od_int64) const |
T | getU2 (const void *, od_int64) const |
T | getU2swp (const void *, od_int64) const |
T | getU4 (const void *, od_int64) const |
T | getU4swp (const void *, od_int64) const |
void | put0 (void *, od_int64, T) const |
void | putD (void *, od_int64, T) const |
void | putDswp (void *, od_int64, T) const |
void | putF (void *, od_int64, T) const |
void | putFIbm (void *, od_int64, T) const |
void | putFIbmswp (void *, od_int64, T) const |
void | putFswp (void *, od_int64, T) const |
void | putS1 (void *, od_int64, T) const |
void | putS2 (void *, od_int64, T) const |
void | putS2Ibm (void *, od_int64, T) const |
void | putS2Ibmswp (void *, od_int64, T) const |
void | putS2swp (void *, od_int64, T) const |
void | putS4 (void *, od_int64, T) const |
void | putS4Ibm (void *, od_int64, T) const |
void | putS4Ibmswp (void *, od_int64, T) const |
void | putS4swp (void *, od_int64, T) const |
void | putS8 (void *, od_int64, T) const |
void | putS8swp (void *, od_int64, T) const |
void | putU1 (void *, od_int64, T) const |
void | putU2 (void *, od_int64, T) const |
void | putU2swp (void *, od_int64, T) const |
void | putU4 (void *, od_int64, T) const |
void | putU4swp (void *, od_int64, T) const |
void | swap0 (void *, od_int64) const |
void | swap2 (void *, od_int64) const |
void | swap4 (void *, od_int64) const |
void | swap8 (void *, od_int64) const |
void | swpSwap () |
void | swpSwap () |
Protected Attributes | |
GetFn | getfn |
PutFn | putfn |
SwapFn | swpfn |
Byte-level data interpreter.
Efficient (one function call overhead) get and set of data, usually in a data buffer. Facility to swap bytes in advance. The interpretation is into/from the template parameter. At present, float, double, int and long long are supported and instantiated.
|
protected |
|
protected |
|
protected |
DataInterpreter< T >::DataInterpreter | ( | const DataCharacteristics & | , |
bool | ignoreendianness = false |
||
) |
DataInterpreter< T >::DataInterpreter | ( | const DataInterpreter< T > & | ) |
DataInterpreter< mTheType >::DataInterpreter | ( | const DataCharacteristics & | dc, |
bool | ignend | ||
) |
DataInterpreter< mTheType >::DataInterpreter | ( | const DataInterpreter< T > & | di | ) |
|
static |
|
static |
alsoifequal | determines whether an interpreter should be created if the format in DataChar is identical to the current machine's. |
|
static |
alsoifequal | determines whether an interpreter should be created if the format in DataChar is identical to the current machine's. |
|
static |
par | |
key | |
alsoifequal | determines whether an interpreter should be created if the format in DataChar is identical to the current machine's. |
DataCharacteristics DataInterpreter< T >::dataChar | ( | ) | const |
DataCharacteristics DataInterpreter< mTheType >::dataChar | ( | ) | const |
|
static |
|
static |
|
inline |
T DataInterpreter< T >::get | ( | od_istream & | ) | const |
|
inlineprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
bool DataInterpreter< T >::needSwap | ( | ) | const |
bool DataInterpreter< mTheType >::needSwap | ( | ) | const |
int DataInterpreter< T >::nrBytes | ( | ) | const |
int DataInterpreter< mTheType >::nrBytes | ( | ) | const |
|
inline |
|
inline |
DataInterpreter< mTheType > & DataInterpreter< mTheType >::operator= | ( | const DataInterpreter< mTheType > & | di | ) |
DataInterpreter<T>& DataInterpreter< T >::operator= | ( | const DataInterpreter< T > & | ) |
|
inline |
|
inline |
|
inlineprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void DataInterpreter< T >::set | ( | const DataCharacteristics & | , |
bool | ignoreendianness = false |
||
) |
use ignoreendianness when you pre-byteswap the data
void DataInterpreter< mTheType >::set | ( | const DataCharacteristics & | dc, |
bool | ignend | ||
) |
|
inline |
|
inlineprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024