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

◆ readdata()

void datrw::pdas::readdata ( std::istream &  is,
Tdata data,
const Etype type 
)

function to read the file data passes vector by reference to avoid deep copy

Definition at line 150 of file pdasread.cc.

References datrw::mseed::key::data, and readsample().

Referenced by datrw::ipdasstream::dseries(), datrw::ipdasstream::fseries(), datrw::ipdasstream::iseries(), and main().

151  {
152  data.clear();
153  bool hot=true;
154  while(is.good()&&hot)
155  {
156  Tvalue sample;
157  try { sample=readsample(is, type); }
158  catch (FoundEOF) { hot=false; }
159  if (hot) data.push_back(sample);
160  }
161  }
const char *const data
keywords for consistency checks
Tvalue readsample(std::istream &is, const Etype &type)
function to read one sample
Definition: pdasread.cc:182
int Tvalue
Definition: pdasread.h:75
Here is the call graph for this function:
Here is the caller graph for this function: