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

◆ checkfileflags()

void datrw::binary::checkfileflags ( const char &  flags)

abort if file flags are inconsistent

Definition at line 58 of file binary.cc.

References DATRW_assert, Finfo, and Fsrce.

Referenced by checktraceflags(), and datrw::ibinarystream::ibinarystream().

59  {
60  DATRW_assert(!((flags & Fsrce) && (flags & Finfo)),
61  "ERROR: flags indicate INFO and SRCE at the same time");
62  }
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
trace has INFO header
Definition: binary.h:81
trace has SRCE header
Definition: binary.h:79
Here is the caller graph for this function: