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

◆ next()

void datrw::mseed::SEED::SteimFrame::next ( )

step to next difference value

Definition at line 172 of file seedstructs.cc.

References Midiff, Miword, Mn, Mvalid, nwords, and setn().

Referenced by datrw::mseed::SEED::dump(), and datrw::mseed::MiniSEEDRecord::read().

173  {
174  ++Midiff;
175  if (Midiff == Mn) { ++Miword; Midiff=0; }
176  if (Miword == Steim1Frame::nwords) { Mvalid=false; }
177  if (Mvalid) { setn(); }
178  } // void SteimFrame::next()
virtual void setn()=0
set Mn for current word (compression type specific)
int Mn
number of differences in this word
Definition: seedstructs.h:530
int Miword
current word in frame
Definition: seedstructs.h:533
bool Mvalid
we are still inside the current frame
Definition: seedstructs.h:537
int Midiff
current difference value in word
Definition: seedstructs.h:535
static const int nwords
numer of words to process
Definition: seedstructs.h:463
Here is the call graph for this function:
Here is the caller graph for this function: