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

◆ quality()

std::string datrw::hpmo::quality ( const int &  flag)

return meaning of quality flag

Definition at line 109 of file readhpmo.cc.

Referenced by datrw::hpmo::Header::dump(), dump(), and qualityreports().

110  {
111  std::string retval("unknown flag!");
112  if (flag == 0) { retval=std::string("OK"); }
113  if (flag == 1) { retval=std::string("bad DCF reception"); }
114  if (flag == 2) { retval=std::string("dummy block (2.999999 V)"); }
115  if (flag == 3) { retval=std::string("bad DCF reception and ")
116  +std::string("dummy block (2.999999 V)"); }
117  if (flag == 4) { retval=std::string("RS-232 error"); }
118  if (flag == 8) { retval=std::string("possibly error in PC clock"); }
119  if (flag == 16) { retval=std::string("invalid header"); }
120  return(retval);
121  } // std::string quality(const int& flag)
Here is the caller graph for this function: