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

◆ readflags()

void datrw::ibinarystream::readflags ( )
private

Definition at line 94 of file ibinarystream.cc.

References datrw::binary::checktraceflags(), DATRW_debug, datrw::Exception::dont_report_on_construct(), datrw::idatstream::last(), datrw::idatstream::Mdebug, Mibs, datrw::idatstream::Mis, Mnextflags, datrw::Exception::report_on_construct_flag(), and datrw::idatstream::setlast().

Referenced by dseries(), fseries(), iseries(), and skipseries().

95  {
96  DATRW_debug(Mdebug, "ibinarystream::readflags()",
97  "Mis.good(): " << Mis.good());
100  try {
101  Mibs >> Mnextflags;
102  } catch (datrw::Exception)
103  {
104  this->setlast();
105  }
107  DATRW_debug(Mdebug, "ibinarystream::readflags()",
108  "Mis.good(): " << Mis.good());
109  if (!Mis.good())
110  {
111  this->setlast();
112  }
113  if (!this->last()) { binary::checktraceflags(Mnextflags); }
114  }
void checktraceflags(const char &flags)
abort if trace flags are inconsistent
Definition: binary.cc:66
static bool report_on_construct_flag()
return report on construct flag
Definition: exception.h:93
static void dont_report_on_construct()
Issue NO screen report on construction of exception.
Definition: exception.cc:90
Base class for exceptions.
Definition: exception.h:62
std::istream & Mis
Definition: datread.h:126
bool last() const
Definition: datread.h:94
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
char Mnextflags
flags for next trace
Definition: binary.h:121
binary::ibinstream Mibs
Definition: binary.h:119
Here is the call graph for this function:
Here is the caller graph for this function: