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

◆ isustream()

datrw::isustream::isustream ( std::istream &  is,
const std::string &  modifier = "",
const bool &  debug = false 
)

Definition at line 59 of file isustream.cc.

References DATRW_assert, DATRW_debug, datrw::su::inputmodifiers(), datrw::idatstream::Mdebug, Mheadercontrol, Mnextheader, datrw::su::SUheader::read(), datrw::su::SUheader::set(), datrw::idatstream::setsrce(), and datrw::su::SUheader::srce().

61  :
62  Tbase(is, true, true, false, debug),
64  {
65  DATRW_debug(Mdebug, "isustream::isustream","entering constructor");
66  // evaluate format modifiers
68 
69  // read first (next) trace header
70  DATRW_assert(is.good(),
71  "ERROR (isustream::isustream): input stream is bad");
73  Mnextheader.read(is);
74  this->setsrce(Mnextheader.srce());
75  DATRW_debug(Mdebug, "isustream::isustream", "finished constructor");
76  }
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
datrw::su::options::SUHeaderControl Mheadercontrol
Definition: su.h:90
options::SUHeaderControl inputmodifiers(const std::string &modifier, const bool &debug)
evaluate input stream format modifiers
Definition: suformat.cc:94
void setsrce(const sff::SRCE &srce)
Definition: datread.cc:129
datrw::su::SUheader Mnextheader
Definition: su.h:91
idatstream Tbase
Definition: su.h:78
bool debug()
indicate debug mode
Definition: datread.h:116
void set(const datrw::su::options::SUHeaderControl &hc)
set control parameters
Definition: suheader.h:129
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
::sff::SRCE srce() const
return SRCE line
Definition: suheader.cc:275
void read(std::istream &is)
read struct from file
Definition: suheader.cc:72
Here is the call graph for this function: