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

◆ dseries()

Tdseries datrw::itsoftstream::dseries ( )
virtual

Reimplemented from datrw::idatstream.

Definition at line 121 of file itsoftstream.cc.

References DATRW_assert, Mfile, datrw::tsoft::Trace::Mfree, Mitrace, datrw::tsoft::Trace::Mseries, datrw::tsoft::File::Mtraces, datrw::tsoft::Trace::Mwid2, datrw::idatstream::newtrace(), datrw::idatstream::setlast(), datrw::idatstream::settracefree(), and datrw::idatstream::setwid2().

Referenced by fseries().

122  {
123  this->newtrace();
124  DATRW_assert(Mitrace<=this->Mfile.Mtraces.last(),
125  "reading beyond end of file");
126  if (Mitrace==this->Mfile.Mtraces.last()) { this->setlast(); }
128  this->setwid2(trace.Mwid2);
129  this->settracefree(trace.Mfree);
130  ++Mitrace;
131  return(trace.Mseries);
132  } // Tdseries itsoftstream::dseries()
aff::Tsubscript Mitrace
index of next trace to be passed
Definition: tsoft.h:80
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
datrw::tsoft::File Mfile
container for complete file
Definition: tsoft.h:78
datrw::Tdseries Mseries
samples
contents for one trace of data
void setwid2(const sff::WID2 &wid2)
Definition: datread.cc:113
void settracefree(const sff::FREE &free)
Definition: datread.cc:105
::sff::FREE Mfree
free comment lines
::sff::WID2 Mwid2
header
Ttraceseries Mtraces
all traces in file
Here is the call graph for this function:
Here is the caller graph for this function: