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

◆ ibinstream()

datrw::binary::ibinstream::ibinstream ( std::istream &  is,
const char *const  magic,
const bool &  debug = false 
)

Definition at line 49 of file ibinstream.cc.

References DATRW_assert, datrw::util::file_magic_test(), datrw::binary::magic, datrw::util::magic_nomatch, datrw::util::magic_swap, Mis, and Mswap.

51  :
52  Mis(is), Mdebug(debug)
53  {
57  "magic number in file does not match!");
59  } // ibinstream::ibinstream(std::ifstream& is
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
const char *const magic
magic number to identify file type and bytesex
Definition: binary.cc:53
Emagic_type file_magic_test(std::istream &is, const char *const cmagic, const bool &fortranmode)
check magic number in file
Definition: bytesex.cc:105
The magic number does match the file.
Definition: bytesex.h:104
std::istream & Mis
Definition: ibinstream.h:80
The bytesex of the file must be swapped to match this machine.
Definition: bytesex.h:102
Emagic_type
Define bytesex indicator for magic number test.
Definition: bytesex.h:98
Here is the call graph for this function: