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

◆ free()

sff::FREE datrw::idatstream::free ( ) const
inherited

return FREE block

if no WID2 ist set (prior to reading first trace) the file FREE block is returned

after reading the first trace, the trace FREE block is returned.

This mechanism is required to provide easy to use input operators, that cannot distinguish between file FREE blocks and trace FREE blocks from just looking at their arguments.

Definition at line 79 of file datread.cc.

References DATRW_debug, DATRW_value, datrw::idatstream::Mdebug, datrw::idatstream::Mfilefree, datrw::idatstream::Mtracefree, and datrw::idatstream::Mwid2set.

Referenced by datrw::ibinarystream::ibinarystream(), main(), datrw::operator>>(), datrw::isacstream::readheader(), datrw::ibinarystream::readheader(), datrw::idatstream::setfilefree(), datrw::idatstream::settracefree(), and datrw::iseifestream::settraceheader().

80  {
81  if (Mwid2set)
82  {
83  DATRW_debug(this->Mdebug, "idatstream::free",
84  DATRW_value(Mtracefree.lines.size()));
85  return(Mtracefree);
86  }
87  else
88  {
89  DATRW_debug(this->Mdebug, "idatstream::free",
90  DATRW_value(Mfilefree.lines.size()));
91  return(Mfilefree);
92  }
93  }
sff::FREE Mfilefree
Definition: datread.h:141
sff::FREE Mtracefree
Definition: datread.h:140
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
#define DATRW_value(V)
report value
Definition: debug.h:65
Here is the caller graph for this function: