OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
SEGY::BinHeader Class Reference

400 byte SEG-Y binary header More...

Public Member Functions

 BinHeader ()
 
void setInput (const void *, bool needswap=false)
 
void setForWrite ()
 
int bytesPerSample () const
 
int valueAt (int bytenr)
 
void setValueAt (int bytenr, int)
 
int entryVal (int idx) const
 
void setEntryVal (int idx, int val)
 
short format () const
 
int nrSamples () const
 
float sampleRate (bool isdpth) const
 
bool isInFeet () const
 
int revision () const
 
bool isRev0 () const
 
int skipRev1Stanzas (od_istream &)
 returns number skipped More...
 
void setIsSwapped (bool yn)
 
bool isSwapped () const
 
void guessIsSwapped ()
 
void unSwap ()
 
void setFormat (short i)
 
void setNrSamples (int i)
 
void setSampleRate (float, bool isdpth)
 
void setInFeet (bool yn)
 
void dump (od_ostream &) const
 
unsigned char * buf ()
 
const unsigned char * buf () const
 

Static Public Member Functions

static int formatBytes (int frmt)
 
static bool isValidFormat (int f)
 
static DataCharacteristics getDataChar (int frmt, bool dataswapped)
 
static const HdrDefhdrDef ()
 
static int EntryJobID ()
 
static int EntryLino ()
 
static int EntryDt ()
 
static int EntryNs ()
 
static int EntryFmt ()
 
static int EntryTsort ()
 
static int EntryMFeet ()
 
static int EntryRevCode ()
 

Protected Attributes

unsigned char buf_ [400]
 
bool forwrite_
 
bool needswap_
 

Detailed Description

400 byte SEG-Y binary header

Constructor & Destructor Documentation

SEGY::BinHeader::BinHeader ( )

Member Function Documentation

unsigned char* SEGY::BinHeader::buf ( )
inline
const unsigned char* SEGY::BinHeader::buf ( ) const
inline
int SEGY::BinHeader::bytesPerSample ( ) const
inline
void SEGY::BinHeader::dump ( od_ostream ) const
static int SEGY::BinHeader::EntryDt ( )
inlinestatic
static int SEGY::BinHeader::EntryFmt ( )
inlinestatic
static int SEGY::BinHeader::EntryJobID ( )
inlinestatic
static int SEGY::BinHeader::EntryLino ( )
inlinestatic
static int SEGY::BinHeader::EntryMFeet ( )
inlinestatic
static int SEGY::BinHeader::EntryNs ( )
inlinestatic
static int SEGY::BinHeader::EntryRevCode ( )
inlinestatic
static int SEGY::BinHeader::EntryTsort ( )
inlinestatic
int SEGY::BinHeader::entryVal ( int  idx) const
inline
short SEGY::BinHeader::format ( ) const
inline
static int SEGY::BinHeader::formatBytes ( int  frmt)
inlinestatic
static DataCharacteristics SEGY::BinHeader::getDataChar ( int  frmt,
bool  dataswapped 
)
static
void SEGY::BinHeader::guessIsSwapped ( )
static const HdrDef& SEGY::BinHeader::hdrDef ( )
static
bool SEGY::BinHeader::isInFeet ( ) const
inline
bool SEGY::BinHeader::isRev0 ( ) const
inline
bool SEGY::BinHeader::isSwapped ( ) const
inline
static bool SEGY::BinHeader::isValidFormat ( int  f)
inlinestatic
int SEGY::BinHeader::nrSamples ( ) const
inline
int SEGY::BinHeader::revision ( ) const
float SEGY::BinHeader::sampleRate ( bool  isdpth) const
void SEGY::BinHeader::setEntryVal ( int  idx,
int  val 
)
inline
void SEGY::BinHeader::setFormat ( short  i)
inline
void SEGY::BinHeader::setForWrite ( )
void SEGY::BinHeader::setInFeet ( bool  yn)
inline
void SEGY::BinHeader::setInput ( const void *  ,
bool  needswap = false 
)
void SEGY::BinHeader::setIsSwapped ( bool  yn)
inline
void SEGY::BinHeader::setNrSamples ( int  i)
inline
void SEGY::BinHeader::setSampleRate ( float  ,
bool  isdpth 
)
void SEGY::BinHeader::setValueAt ( int  bytenr,
int   
)
int SEGY::BinHeader::skipRev1Stanzas ( od_istream )

returns number skipped

void SEGY::BinHeader::unSwap ( )
int SEGY::BinHeader::valueAt ( int  bytenr)

Member Data Documentation

unsigned char SEGY::BinHeader::buf_[400]
protected
bool SEGY::BinHeader::forwrite_
protected
bool SEGY::BinHeader::needswap_
protected

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