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

◆ setn()

void datrw::mseed::SEED::Steim1Frame::setn ( )
virtual

set Mn for current word (compression type specific)

Implements datrw::mseed::SEED::SteimFrame.

Definition at line 185 of file seedstructs.cc.

References datrw::mseed::SEED::SteimFrame::ctrl(), DATRW_abort, datrw::mseed::SEED::SteimFrame::Fbyte, datrw::mseed::SEED::SteimFrame::Ffw, datrw::mseed::SEED::SteimFrame::Fhw, datrw::mseed::SEED::SteimFrame::Fspecial, and datrw::mseed::SEED::SteimFrame::Mn.

186  {
187  switch(this->ctrl()) {
189  Mn=1;
190  break;
191  case SteimFrame::Fbyte:
192  Mn=4;
193  break;
194  case SteimFrame::Fhw:
195  Mn=2;
196  break;
197  case SteimFrame::Ffw:
198  Mn=1;
199  break;
200  default:
201  DATRW_abort("ERROR (Steim1Frame::setn()): illegal code");
202  }
203  } // void Steim1Frame::setn()
SteimFrame::ESteimControl ctrl() const
return control code for current word
Definition: seedstructs.h:508
four 8-bit differences (byte)
Definition: seedstructs.h:470
#define DATRW_abort(M)
Abort and give a message.
Definition: error.h:101
one 32-bit difference (fullword)
Definition: seedstructs.h:472
contains non-data information, like headers
Definition: seedstructs.h:469
int Mn
number of differences in this word
Definition: seedstructs.h:530
two 16-bit differences (halfword)
Definition: seedstructs.h:471
Here is the call graph for this function: