OpendTect  6.6
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
SEGY::TxtHeader Class Reference

3200 byte SEG-Y text header. More...

Public Member Functions

 TxtHeader ()
 
 TxtHeader (int rev)
 rev only relevant when writing More...
 
void clear ()
 
void dump (od_ostream &) const
 
void getText (BufferString &) const
 
bool isAscii () const
 
void setAscii ()
 
void setEbcdic ()
 
void setGeomID (const Pos::GeomID &)
 
int setInfo (const char *datanm, const Coords::CoordSystem *, const TrcHeaderDef &)
 
void setLineStarts ()
 
void setPosInfo (const TrcHeaderDef &)
 
void setStartPos (float)
 
void setSurveySetupInfo (const Coords::CoordSystem *)
 
void setText (const char *)
 
void setUserInfo (const char *)
 
void setUserInfo (int firstlinenr, const char *)
 Optional, should be called last. More...
 

Static Public Member Functions

static bool & info2D ()
 
static bool & isPS ()
 
static const char * sKeySettingEBCDIC ()
 

Public Attributes

unsigned char txt_ [3200]
 

Protected Member Functions

void clearText ()
 
void getFrom (int, int, int, char *) const
 
void putAt (int, int, int, const char *)
 
int setGeneralInfo (const char *datanm)
 
int setPosInfo (int firstlinenr, const TrcHeaderDef &)
 
int setSurveySetupInfo (int firstlinenr, const Coords::CoordSystem *)
 

Protected Attributes

int revision_
 

Detailed Description

3200 byte SEG-Y text header.

On construction, the 'txt' buffer is filled with data for writing the header. If used for reading, fill the buffer yourself and use getFrom.

<>

Constructor & Destructor Documentation

◆ TxtHeader() [1/2]

SEGY::TxtHeader::TxtHeader ( )
inline

◆ TxtHeader() [2/2]

SEGY::TxtHeader::TxtHeader ( int  rev)

rev only relevant when writing

Member Function Documentation

◆ clear()

void SEGY::TxtHeader::clear ( )
inline

◆ clearText()

void SEGY::TxtHeader::clearText ( )
protected

◆ dump()

void SEGY::TxtHeader::dump ( od_ostream ) const

◆ getFrom()

void SEGY::TxtHeader::getFrom ( int  ,
int  ,
int  ,
char *   
) const
protected

◆ getText()

void SEGY::TxtHeader::getText ( BufferString ) const

◆ info2D()

static bool& SEGY::TxtHeader::info2D ( )
static

◆ isAscii()

bool SEGY::TxtHeader::isAscii ( ) const

◆ isPS()

static bool& SEGY::TxtHeader::isPS ( )
static

◆ putAt()

void SEGY::TxtHeader::putAt ( int  ,
int  ,
int  ,
const char *   
)
protected

◆ setAscii()

void SEGY::TxtHeader::setAscii ( )

◆ setEbcdic()

void SEGY::TxtHeader::setEbcdic ( )

◆ setGeneralInfo()

int SEGY::TxtHeader::setGeneralInfo ( const char *  datanm)
protected

◆ setGeomID()

void SEGY::TxtHeader::setGeomID ( const Pos::GeomID )

◆ setInfo()

int SEGY::TxtHeader::setInfo ( const char *  datanm,
const Coords::CoordSystem ,
const TrcHeaderDef  
)

◆ setLineStarts()

void SEGY::TxtHeader::setLineStarts ( )

◆ setPosInfo() [1/2]

void SEGY::TxtHeader::setPosInfo ( const TrcHeaderDef )

◆ setPosInfo() [2/2]

int SEGY::TxtHeader::setPosInfo ( int  firstlinenr,
const TrcHeaderDef  
)
protected

◆ setStartPos()

void SEGY::TxtHeader::setStartPos ( float  )

◆ setSurveySetupInfo() [1/2]

void SEGY::TxtHeader::setSurveySetupInfo ( const Coords::CoordSystem )

◆ setSurveySetupInfo() [2/2]

int SEGY::TxtHeader::setSurveySetupInfo ( int  firstlinenr,
const Coords::CoordSystem  
)
protected

◆ setText()

void SEGY::TxtHeader::setText ( const char *  )

◆ setUserInfo() [1/2]

void SEGY::TxtHeader::setUserInfo ( const char *  )

◆ setUserInfo() [2/2]

void SEGY::TxtHeader::setUserInfo ( int  firstlinenr,
const char *   
)

Optional, should be called last.

◆ sKeySettingEBCDIC()

static const char* SEGY::TxtHeader::sKeySettingEBCDIC ( )
inlinestatic

Member Data Documentation

◆ revision_

int SEGY::TxtHeader::revision_
protected

◆ txt_

unsigned char SEGY::TxtHeader::txt_[3200]

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