return value
Definition at line 317 of file seedstructs.cc.
References DATRW_abort, DATRW_assert, dnib(), extract(), Fbyte, Fdnib00, Fdnib01, Fdnib1, Fdnib10, Fdnib11, Fdnib2, Fspecial, Mctrl, Mword, and nval().
Referenced by datrw::mseed::SEED::Steim2Frame::diff(), datrw::mseed::SEED::dump(), and extract().
321 "ERROR (Steim2Word::value): " 322 "illegal value index");
336 switch (this->
dnib()) {
341 retval=this->
extract(15,nval-i);
344 retval=this->
extract(10,nval-i);
348 "illegal decode nibble");
352 switch (this->
dnib()) {
354 retval=this->
extract(6,nval-i);
357 retval=this->
extract(5,nval-i);
360 retval=this->
extract(4,nval-i);
364 "illegal decode nibble");
368 DATRW_abort(
"ERROR (Steim2Word::value): illegal ctrl code");
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
int nval() const
return number of values in this word
int dnib() const
return dnib
four 8-bit differences (byte)
#define DATRW_abort(M)
Abort and give a message.
int extract(const int &b, const int &p) const
contains non-data information, like headers