OpendTect  7.0
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static 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...
 
 ~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. More...
 
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. More...
 

Static Public Member Functions

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 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 Protected Member Functions

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

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

◆ 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)
staticprotected

◆ getFrom()

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

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

◆ 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  
)
protected

◆ setSurveySetupInfo()

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

◆ 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
protected

◆ revision_

int SEGY::TxtHeader::revision_ = 1
protected

◆ txt_

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

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