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

◆ countdata()

int datrw::pdas::countdata ( std::istream &  is,
const Etype type 
)

function to skip the file data but count the samples

Definition at line 166 of file pdasread.cc.

References readsample().

Referenced by main(), and datrw::ipdasstream::skipseries().

167  {
168  int retval=0;
169  bool hot=true;
170  while(is.good()&&hot)
171  {
172  try { readsample(is, type); }
173  catch (FoundEOF) { hot=false; --retval; }
174  ++retval;
175  }
176  return(retval);
177  }
Tvalue readsample(std::istream &is, const Etype &type)
function to read one sample
Definition: pdasread.cc:182
Here is the call graph for this function:
Here is the caller graph for this function: