![]() |
OpendTect-6_4
6.4
|
Description of binary data. More...
Public Types | |
enum | ByteCount { N1 =1, N2 =2, N4 =4, N8 =8 } |
Public Member Functions | |
BinDataDesc (bool ii=false, bool is=true, ByteCount b=N4) | |
BinDataDesc (bool ii, bool is, int b) | |
BinDataDesc (unsigned char c1, unsigned char c2) | |
BinDataDesc (const char *s) | |
virtual | ~BinDataDesc () |
bool | isInteger () const |
bool | isSigned () const |
ByteCount | nrBytes () const |
void | set (bool ii, bool is, ByteCount b) |
void | set (bool ii, bool is, int b) |
void | setInteger (bool yn) |
void | setSigned (bool yn) |
void | setNrBytes (ByteCount n) |
void | setNrBytes (int n) |
virtual int | maxStringifiedSize () const |
virtual void | toString (BufferString &) const |
virtual void | set (const char *) |
virtual void | dump (unsigned char &, unsigned char &) const |
virtual void | set (unsigned char, unsigned char) |
BinDataDesc (const signed char *) | |
BinDataDesc (const signed char &) | |
BinDataDesc (const short *) | |
BinDataDesc (const short &) | |
BinDataDesc (const int *) | |
BinDataDesc (const int &) | |
BinDataDesc (const unsigned char *) | |
BinDataDesc (const unsigned char &) | |
BinDataDesc (const unsigned short *) | |
BinDataDesc (const unsigned short &) | |
BinDataDesc (const unsigned int *) | |
BinDataDesc (const unsigned int &) | |
BinDataDesc (const float *) | |
BinDataDesc (const float &) | |
BinDataDesc (const double *) | |
BinDataDesc (const double &) | |
bool | operator== (const BinDataDesc &dc) const |
bool | operator!= (const BinDataDesc &dc) const |
bool | isEqual (const BinDataDesc &dc) const |
int | sizeFor (int n) const |
virtual bool | convertsWellTo (const BinDataDesc &) const |
Static Public Member Functions | |
static ByteCount | nearestByteCount (bool is_int, int s) |
static int | nextSize (bool is_int, int s) |
Protected Member Functions | |
void | setFrom (unsigned char, bool) |
Protected Attributes | |
bool | isint_ |
bool | issigned_ |
ByteCount | nrbytes_ |
Description of binary data.
Binary data in 'blobs' can usually be described by only a few pieces of info. These are:
Is the data of floating point type or integer? Is the data signed or unsigned? Usually, floating point data cannot be unsigned. How big is each number in terms of bytes? This can be 1, 2, 4 or 8 bytes.
The info from this class can be stringified (user readable string) or dumped binary into two unsigned chars.
In normal work one will use the DataCharacteristics subclass, which can also provide a 'run-time' data interpreter class for fast conversion to internal data types.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
|
virtual |
Reimplemented in DataCharacteristics.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in DataCharacteristics.
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Reimplemented in DataCharacteristics.
|
virtual |
Reimplemented in DataCharacteristics.
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Reimplemented in DataCharacteristics.
|
protected |
|
protected |
|
protected |
Generated at 12/02/2019 10:56:34 for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019