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

◆ readany()

template<class C >
C datrw::helper::readany ( std::istream &  is,
const int &  n 
)

Definition at line 62 of file ibonjerstream.cc.

References DATRW_assert.

63  {
64  C retval(n);
65  double inval;
66  for (int i=0; i<n; ++i)
67  {
68  DATRW_assert(is.good(),"ERROR (ibonjerstream::?series): "
69  "bad stream!");
70  is >> inval;
71  retval(i)=typename C::Tvalue(inval);
72  }
73  return(retval);
74  }
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
int Tvalue
Definition: pdasread.h:75