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

◆ skipseries()

void datrw::iasciistream::skipseries ( )
virtual

Reimplemented from datrw::idatstream.

Definition at line 507 of file iasciistream.cc.

References Mcurrentline, Mcurrentwid2, datrw::idatstream::Mis, readheader(), datrw::idatstream::setlast(), and settraceheader().

508  {
509  if (this->Mcurrentwid2.nsamples==0)
510  {
511  while ((!(this->Mcurrentline.substr(0,1)=="#")) && Mis.good())
512  {
513  ++this->Mcurrentwid2.nsamples;
514  std::getline(Mis, this->Mcurrentline);
515  }
516  }
517  else
518  {
519  int i=0;
520  while ((!(this->Mcurrentline.substr(0,1)=="#")) && Mis.good()
521  && (i<this->Mcurrentwid2.nsamples))
522  {
523  std::getline(Mis, this->Mcurrentline);
524  ++i;
525  }
526  }
527  this->settraceheader();
528  this->readheader();
529  if (!this->Mis.good()) { this->setlast(); }
530  } // void iasciistream::skipseries()
std::string Mcurrentline
Definition: ascii.h:84
std::istream & Mis
Definition: datread.h:126
::sff::WID2 Mcurrentwid2
Definition: ascii.h:88
Here is the call graph for this function: