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

◆ next_wid2()

sff::WID2 datrw::gse::next_wid2 ( std::istream &  is)

find next WID2 line

Definition at line 49 of file gseread.cc.

References DATRW_assert.

Referenced by datrw::igsestream::readheader().

50  {
51  sff::WID2 retval;
52  std::string theline;
53  bool hot=true;
54  while (hot)
55  {
56  DATRW_assert(is.good(), "input stream is not good");
57  std::getline(is, theline);
58  std::istringstream iss(theline);
59  hot=false;
60  try
61  {
62  retval.read(iss);
63  }
64  catch (...)
65  {
66  hot=true;
67  }
68  }
69  return(retval);
70  } // sff::WID2 next_wid2(std::istream& is)
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
Here is the caller graph for this function: