Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

SEGY::TxtHeader Class Reference

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

List of all members.

Public Member Functions

 TxtHeader ()
 TxtHeader (bool rev1)
 rev1 only relevant when writing
void clear ()
void setUserInfo (const char *)
void setPosInfo (const TrcHeaderDef &)
void setStartPos (float)
void getText (BufferString &) const
void setText (const char *)
void setAscii ()
void setEbcdic ()
void setLineStarts ()
void dump (std::ostream &) const

Static Public Member Functions

static bool & info2D ()

Public Attributes

unsigned char txt_ [3200]

Protected Member Functions

void putAt (int, int, int, const char *)
void getFrom (int, int, int, char *) const
void clearText ()

Protected Attributes

bool rev1_

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

SEGY::TxtHeader::TxtHeader (  )  [inline]
SEGY::TxtHeader::TxtHeader ( bool  rev1  ) 

rev1 only relevant when writing


Member Function Documentation

void SEGY::TxtHeader::clear (  )  [inline]
void SEGY::TxtHeader::clearText (  )  [protected]
void SEGY::TxtHeader::dump ( std::ostream &   )  const
void SEGY::TxtHeader::getFrom ( int  ,
int  ,
int  ,
char *   
) const [protected]
void SEGY::TxtHeader::getText ( BufferString  )  const
static bool& SEGY::TxtHeader::info2D (  )  [static]
void SEGY::TxtHeader::putAt ( int  ,
int  ,
int  ,
const char *   
) [protected]
void SEGY::TxtHeader::setAscii (  ) 
void SEGY::TxtHeader::setEbcdic (  ) 
void SEGY::TxtHeader::setLineStarts (  ) 
void SEGY::TxtHeader::setPosInfo ( const TrcHeaderDef  ) 
void SEGY::TxtHeader::setStartPos ( float   ) 
void SEGY::TxtHeader::setText ( const char *   ) 
void SEGY::TxtHeader::setUserInfo ( const char *   ) 

Member Data Documentation

bool SEGY::TxtHeader::rev1_ [protected]
unsigned char SEGY::TxtHeader::txt_[3200]