DATRW++ library: seismic data I/O with multiple formats

◆ set_traceheader()

void datrw::itfasciistream::set_traceheader ( )
private

set the trace header data

Definition at line 115 of file itfasciistream.cc.

References get_verbose(), datrw::tfascii::TraceHeader::hasinfo, datrw::tfascii::TraceHeader::hastracefree, datrw::tfascii::TraceHeader::info, datrw::idatstream::Mis, datrw::idatstream::newtrace(), datrw::tfascii::readtraceheader(), datrw::idatstream::setinfo(), datrw::idatstream::setlast(), datrw::idatstream::settracefree(), datrw::idatstream::setwid2(), datrw::tfascii::TraceHeader::tracefree, and datrw::tfascii::TraceHeader::wid2.

Referenced by dseries(), fseries(), iseries(), and skipseries().

116  {
117  tfascii::TraceHeader traceheader = tfascii::readtraceheader(Mis,
118  get_verbose());
119  this->newtrace();
120  this->setwid2(traceheader.wid2);
121  if(traceheader.hastracefree)
122  {
123  this->settracefree(traceheader.tracefree);
124  }
125  if (traceheader.hasinfo)
126  {
127  this->setinfo(traceheader.info);
128  }
129  this->setlast();
130  } // function itfasciistream::set_traceheader
void setinfo(const sff::INFO &info)
Definition: datread.cc:121
TraceHeader readtraceheader(std::istream &is, const bool &verbose)
read the complete traceheader
Definition: readtfascii.cc:165
std::istream & Mis
Definition: datread.h:126
void setwid2(const sff::WID2 &wid2)
Definition: datread.cc:113
bool get_verbose() const
member function
void settracefree(const sff::FREE &free)
Definition: datread.cc:105
Here is the call graph for this function:
Here is the caller graph for this function: