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

◆ setsrce()

void datrw::odatstream::setsrce ( const sff::SRCE &  srce)
inherited

Definition at line 154 of file datwrite.cc.

References DATRW_debug, DATRW_report_assert, DATRW_value, datrw::odatstream::handlessrce(), datrw::odatstream::Mdebug, datrw::odatstream::Msrce, datrw::odatstream::Msrceset, and datrw::odatstream::srce().

Referenced by datrw::operator<<().

155  {
156  DATRW_debug(this->Mdebug, "odatstream::setsrce",
157  DATRW_value(srce.line().substr(0,50)));
159  "file format cannot handle SRCE data\n"
160  "SRCE data will be dropped silently");
161  Msrceset=true;
162  Msrce=srce;
163  }
sff::SRCE Msrce
Definition: datwrite.h:210
sff::SRCE srce() const
return SRCE data
Definition: datwrite.h:171
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
bool Mdebug
global debug flag
Definition: datwrite.h:197
bool handlessrce() const
true if SRCE data can be handled
Definition: datwrite.h:125
#define DATRW_value(V)
report value
Definition: debug.h:65
#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: