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

◆ read() [14/15]

void datrw::binary::ibinstream::read ( Tfseries v)

Definition at line 231 of file ibinstream.cc.

References DATRW_assert, Mis, Mswap, read(), and datrw::util::swap().

232  {
233  int first, last;
234  this->read(first);
235  this->read(last);
236  v=Tfseries(first,last);
237  DATRW_assert(Mis.read(reinterpret_cast<char *>(v.pointer()),
238  v.size()*sizeof(Tfseries::Tvalue)),
239  "ERROR (ibinstream::read): reading float series");
240  if (Mswap)
241  {
242  aff::Iterator<Tfseries> I(v);
243  while (I.valid())
244  {
245  *I=::datrw::util::swap(*I);
246  ++I;
247  }
248  }
249  } // void ibinstream::read(Tfseries& v)
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
aff::Series< float > Tfseries
Definition: types.h:46
std::istream & Mis
Definition: ibinstream.h:80
T swap(const T &value)
How to swap any generic type.
Definition: bytesex.h:118
int Tvalue
Definition: pdasread.h:75
Here is the call graph for this function: