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

◆ MiniSEEDblock()

datrw::mseed::MiniSEEDblock::MiniSEEDblock ( const unsigned int &  blocksize = standard_block_size)

contructor of MiniSEEDblock allocates memory of requested block size. In case this fails, an exception is thrown.

Definition at line 154 of file mseedread.cc.

References blocksize(), DATRW_abort, and Mblock.

154  :
156  {
157  try { Mblock=Theap(blocksize); }
158  catch (std::bad_alloc) {
159  DATRW_abort("MiniSEEDblock: could not allocate memory!");
160  }
161  } // MiniSEEDblock::MiniSEEDblock
aff::Series< Tvalue > Theap
use aff shared heap to store and copy block
Definition: mseedread.h:82
unsigned int blocksize() const
Definition: mseedread.h:88
#define DATRW_abort(M)
Abort and give a message.
Definition: error.h:101
Here is the call graph for this function: