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

◆ fseries()

Tfseries datrw::isustream::fseries ( )
virtual

Reimplemented from datrw::idatstream.

Definition at line 87 of file isustream.cc.

References DATRW_debug, DATRW_Xassert, datrw::idatstream::info(), datrw::idatstream::Mdebug, datrw::su::SUheader::Mheader, datrw::idatstream::Mis, Mnextheader, datrw::su::TraceHeaderStruct::ns, readheader(), and datrw::idatstream::wid2().

Referenced by dseries().

88  {
89  DATRW_debug(Mdebug, "isustream::fseries","entering function");
91  char *ipointer=reinterpret_cast<char *>(series.pointer());
92  DATRW_Xassert(Mis.read(ipointer, series.size()*sizeof(float)),
93  "ERROR (isustream::fseries): reading SU samples",
95  DATRW_debug(Mdebug, "isustream::fseries",
96  "read " << series.size() << " samples"
97  << " which are " << (series.size()*sizeof(float))
98  << " characters");
99  this->readheader();
100  DATRW_debug(Mdebug, "isustream::fseries",
101  this->wid2().line() << "\n" << this->info().line());
102  DATRW_debug(Mdebug, "isustream::fseries","leaving function");
103  return(series);
104  } // Tiseries isustream::fseries()
aff::Series< float > Tfseries
Definition: types.h:46
sff::WID2 wid2() const
Definition: datread.h:111
#define DATRW_Xassert(C, M, E)
Check an assertion and report by throwing an exception.
Definition: error.h:76
std::istream & Mis
Definition: datread.h:126
datrw::su::SUheader Mnextheader
Definition: su.h:91
unsigned short ns
number of samples in this trace
sff::INFO info() const
Definition: datread.h:110
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
TraceHeaderStruct Mheader
the actual data fields are provided for public access
Definition: suheader.h:239
Here is the call graph for this function:
Here is the caller graph for this function: