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

◆ setfree()

void datrw::odatstream::setfree ( const sff::FREE &  free)
inherited

Definition at line 110 of file datwrite.cc.

References DATRW_debug, DATRW_report_assert, DATRW_value, datrw::odatstream::free(), datrw::odatstream::handlesfilefree(), datrw::odatstream::handlestracefree(), datrw::odatstream::Mdebug, datrw::odatstream::Mfree, datrw::odatstream::Mfreeset, and datrw::odatstream::Mheaderflushed.

Referenced by datrw::operator<<().

111  {
112  DATRW_debug(this->Mdebug, "odatstream::setfree",
113  DATRW_value(free.lines.size()));
114  if (Mheaderflushed)
115  {
117  "file format cannot handle trace FREE data\n" <<
118  "FREE data will be dropped silently");
119  } else {
121  "file format cannot handle file FREE data\n" <<
122  "FREE data will be dropped silently");
123  }
124  Mfreeset=true;
125  Mfree=free;
126  }
bool handlesfilefree() const
true if file FREE block can be handled
Definition: datwrite.h:123
sff::FREE free() const
return FREE data
Definition: datwrite.h:175
sff::FREE Mfree
Definition: datwrite.h:212
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
bool Mdebug
global debug flag
Definition: datwrite.h:197
#define DATRW_value(V)
report value
Definition: debug.h:65
bool handlestracefree() const
true if trace FREE block can be handled
Definition: datwrite.h:127
#define DATRW_report_assert(C, M)
Check an assertion and report only.
Definition: error.h:120
Here is the call graph for this function:
Here is the caller graph for this function: