OpendTect-6_4  6.4
Public Types | Public Member Functions | Public Attributes | List of all members
DataCharacteristics Class Reference

byte-level data characteristics of stored data. More...

Inheritance diagram for DataCharacteristics:
[legend]

Public Types

enum  Format { Ieee, Ibm }
 
enum  UserType {
  Auto =0, SI8, UI8, SI16,
  UI16, SI32, UI32, F32,
  F64, SI64
}
 
- Public Types inherited from BinDataDesc
enum  ByteCount { N1 =1, N2 =2, N4 =4, N8 =8 }
 

Public Member Functions

 DataCharacteristics (bool ii=false, bool is=true, ByteCount n=N4, Format f=Ieee, bool l=__islittle__)
 
 DataCharacteristics (const BinDataDesc &bd)
 
bool isIeee () const
 
 DataCharacteristics (unsigned char c1, unsigned char c2)
 
 DataCharacteristics (const char *s)
 
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)
 
 DataCharacteristics (const signed char *)
 
 DataCharacteristics (const signed char &)
 
 DataCharacteristics (const short *)
 
 DataCharacteristics (const short &)
 
 DataCharacteristics (const int *)
 
 DataCharacteristics (const int &)
 
 DataCharacteristics (const unsigned char *)
 
 DataCharacteristics (const unsigned char &)
 
 DataCharacteristics (const unsigned short *)
 
 DataCharacteristics (const unsigned short &)
 
 DataCharacteristics (const unsigned int *)
 
 DataCharacteristics (const unsigned int &)
 
 DataCharacteristics (const float *)
 
 DataCharacteristics (const float &)
 
 DataCharacteristics (const double *)
 
 DataCharacteristics (const double &)
 
 DataCharacteristics (const od_int64 *)
 
 DataCharacteristics (const od_int64 &)
 
bool operator== (const DataCharacteristics &dc) const
 
bool operator!= (const DataCharacteristics &dc) const
 
DataCharacteristicsoperator= (const BinDataDesc &bd)
 
bool needSwap () const
 
 mDeclareEnumUtils (UserType) DataCharacteristics(UserType)
 
UserType userType () const
 will return 'nearest' More...
 
double getLimitValue (bool max) const
 
- Public Member Functions inherited from BinDataDesc
 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)
 
 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
 

Public Attributes

Format fmt_
 
bool littleendian_
 

Additional Inherited Members

- Static Public Member Functions inherited from BinDataDesc
static ByteCount nearestByteCount (bool is_int, int s)
 
static int nextSize (bool is_int, int s)
 
- Protected Member Functions inherited from BinDataDesc
void setFrom (unsigned char, bool)
 
- Protected Attributes inherited from BinDataDesc
bool isint_
 
bool issigned_
 
ByteCount nrbytes_
 

Detailed Description

byte-level data characteristics of stored data.

Used for the interpretation (read or write) of data in buffers that are read directly from disk into buffer. In that case cross-platform issues arise: byte-ordering and int/float layout. The IBM Format is only supported for the types that are used in SEG-Y sample data handling. SGI is a future option.

Member Enumeration Documentation

Enumerator
Ieee 
Ibm 
Enumerator
Auto 
SI8 
UI8 
SI16 
UI16 
SI32 
UI32 
F32 
F64 
SI64 

Constructor & Destructor Documentation

DataCharacteristics::DataCharacteristics ( bool  ii = false,
bool  is = true,
ByteCount  n = N4,
Format  f = Ieee,
bool  l = __islittle__ 
)
inline
DataCharacteristics::DataCharacteristics ( const BinDataDesc bd)
inline
DataCharacteristics::DataCharacteristics ( unsigned char  c1,
unsigned char  c2 
)
inline
DataCharacteristics::DataCharacteristics ( const char *  s)
inline
DataCharacteristics::DataCharacteristics ( const signed char *  )
inline
DataCharacteristics::DataCharacteristics ( const signed char &  )
inline
DataCharacteristics::DataCharacteristics ( const short *  )
inline
DataCharacteristics::DataCharacteristics ( const short &  )
inline
DataCharacteristics::DataCharacteristics ( const int *  )
inline
DataCharacteristics::DataCharacteristics ( const int &  )
inline
DataCharacteristics::DataCharacteristics ( const unsigned char *  )
inline
DataCharacteristics::DataCharacteristics ( const unsigned char &  )
inline
DataCharacteristics::DataCharacteristics ( const unsigned short *  )
inline
DataCharacteristics::DataCharacteristics ( const unsigned short &  )
inline
DataCharacteristics::DataCharacteristics ( const unsigned int *  )
inline
DataCharacteristics::DataCharacteristics ( const unsigned int &  )
inline
DataCharacteristics::DataCharacteristics ( const float *  )
inline
DataCharacteristics::DataCharacteristics ( const float &  )
inline
DataCharacteristics::DataCharacteristics ( const double *  )
inline
DataCharacteristics::DataCharacteristics ( const double &  )
inline
DataCharacteristics::DataCharacteristics ( const od_int64 )
inline
DataCharacteristics::DataCharacteristics ( const od_int64 )
inline

Member Function Documentation

virtual void DataCharacteristics::dump ( unsigned char &  ,
unsigned char &   
) const
virtual

Reimplemented from BinDataDesc.

double DataCharacteristics::getLimitValue ( bool  max) const
bool DataCharacteristics::isIeee ( ) const
inline
virtual int DataCharacteristics::maxStringifiedSize ( ) const
inlinevirtual

Reimplemented from BinDataDesc.

DataCharacteristics::mDeclareEnumUtils ( UserType  )
bool DataCharacteristics::needSwap ( ) const
inline
bool DataCharacteristics::operator!= ( const DataCharacteristics dc) const
inline
DataCharacteristics& DataCharacteristics::operator= ( const BinDataDesc bd)
inline
bool DataCharacteristics::operator== ( const DataCharacteristics dc) const
inline
virtual void DataCharacteristics::set ( const char *  )
virtual

Reimplemented from BinDataDesc.

virtual void DataCharacteristics::set ( unsigned  char,
unsigned  char 
)
virtual

Reimplemented from BinDataDesc.

virtual void DataCharacteristics::toString ( BufferString ) const
virtual

Reimplemented from BinDataDesc.

UserType DataCharacteristics::userType ( ) const

will return 'nearest'

Member Data Documentation

Format DataCharacteristics::fmt_
bool DataCharacteristics::littleendian_

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