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

◆ read() [5/15]

void datrw::binary::ibinstream::read ( double &  v)

Definition at line 100 of file ibinstream.cc.

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

101  {
102  DATRW_assert(Mis.read(reinterpret_cast<char *>(&v), sizeof(double)),
103  "ERROR (ibinstream::read): reading double value");
104  if (Mswap) { v=::datrw::util::swap(v); }
105  } // void ibinstream::read(double& v)
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
std::istream & Mis
Definition: ibinstream.h:80
T swap(const T &value)
How to swap any generic type.
Definition: bytesex.h:118
Here is the call graph for this function: