OpendTect 8.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SEGY::TxtHeader Class Reference

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

#include <segyhdr.h>

Public Member Functions

 TxtHeader ()
 
 TxtHeader (int rev)
 rev only relevant when writing
 
 ~TxtHeader ()
 
void clear ()
 
void dump (od_ostream &) const
 
RefMan< Coords::CoordSystemgetCoordSystem (const char *filenm=nullptr) const
 
void getText (BufferString &) const
 
bool isAscii () const
 
void setAscii ()
 
void setEbcdic ()
 
void setGeomID (const Pos::GeomID &)
 
void setGeomType (Seis::GeomType tp)
 Used when writing header.
 
int setInfo (const char *datanm, const Coords::CoordSystem *, const TrcHeaderDef &)
 
void setLineStarts ()
 
void setText (const char *)
 
void setUserInfo (int firstlinenr, const char *)
 Optional, should be called last.
 

Static Public Member Functions

static const char * sKeySettingEBCDIC ()
 

Public Attributes

unsigned char txt_ [3200]
 

Private Member Functions

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

Static Private Member Functions

static RefMan< Coords::CoordSystemgetCoordSystemFrom (const char *filenm)
 

Private Attributes

Seis::GeomType geomtype_ = Seis::Vol
 
int revision_ = 1
 

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 ( )

◆ TxtHeader() [2/2]

SEGY::TxtHeader::TxtHeader ( int rev)

rev only relevant when writing

◆ ~TxtHeader()

SEGY::TxtHeader::~TxtHeader ( )

Member Function Documentation

◆ clear()

void SEGY::TxtHeader::clear ( )

◆ clearText()

void SEGY::TxtHeader::clearText ( )
private

◆ dump()

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

◆ getCoordSystem()

RefMan< Coords::CoordSystem > SEGY::TxtHeader::getCoordSystem ( const char * filenm = nullptr) const

◆ getCoordSystemFrom()

static RefMan< Coords::CoordSystem > SEGY::TxtHeader::getCoordSystemFrom ( const char * filenm)
staticprivate

◆ getFrom()

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

◆ getText()

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

◆ isAscii()

bool SEGY::TxtHeader::isAscii ( ) const

◆ putAt()

void SEGY::TxtHeader::putAt ( int row,
int startpos,
int endpos,
const char * txt )
private

◆ setAscii()

void SEGY::TxtHeader::setAscii ( )

◆ setEbcdic()

void SEGY::TxtHeader::setEbcdic ( )

◆ setGeneralInfo()

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

◆ setGeomID()

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

◆ setGeomType()

void SEGY::TxtHeader::setGeomType ( Seis::GeomType tp)
inline

Used when writing header.

◆ setInfo()

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

◆ setLineStarts()

void SEGY::TxtHeader::setLineStarts ( )

◆ setPosInfo()

int SEGY::TxtHeader::setPosInfo ( int firstlinenr,
const TrcHeaderDef &  )
private

◆ setSurveySetupInfo()

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

◆ setText()

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

◆ setUserInfo()

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

Optional, should be called last.

◆ sKeySettingEBCDIC()

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

Member Data Documentation

◆ geomtype_

Seis::GeomType SEGY::TxtHeader::geomtype_ = Seis::Vol
private

◆ revision_

int SEGY::TxtHeader::revision_ = 1
private

◆ txt_

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

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