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

◆ idatstream()

datrw::idatstream::idatstream ( std::istream &  is,
const bool &  providesd = false,
const bool &  providesf = false,
const bool &  providesi = false,
const bool &  debug = false 
)
protected

constructor (must be called by derived class

Parameters
isC++ input stream
providesdtrue, if stream provides double type series
providesftrue, if stream provides float type series
providesitrue, if stream provides int type series
debugtrue, to select debug mode on a base class level

Definition at line 55 of file datread.cc.

References DATRW_assert, DATRW_debug, and Mdebug.

60  : Mis(is), Mdebug(debug), Mwid2set(false), Msrceset(false), Minfoset(false),
61  Mtracefreeset(false), Mfilefreeset(false), Mlast(false),
63  {
64  DATRW_debug(this->Mdebug,
65  "idatstream::idatstream",
66  "create new input stream");
67  DATRW_assert(is.good(), "input stream is not good!");
68  } // idatstream::idatstream
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
bool Mtracefreeset
Definition: datread.h:142
std::istream & Mis
Definition: datread.h:126
bool debug()
indicate debug mode
Definition: datread.h:116
bool providesi() const
Definition: datread.h:93
bool providesd() const
Definition: datread.h:91
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
bool providesf() const
Definition: datread.h:92