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

◆ writesfftrace()

void datrw::sff::writesfftrace ( std::ostream &  os,
const ::sff::TraceHeader &  traceheader,
const datrw::util::seriesreservoir series,
const ::sff::Enormmode &  normmode 
)

function to write an SFF trace from a series reservoir

Definition at line 45 of file sffwriters.cc.

References DATRW_abort, datrw::util::seriesreservoir::dseries(), datrw::binary::Fdouble, datrw::binary::Ffloat, datrw::util::Finteger, datrw::util::seriesreservoir::fseries(), datrw::util::seriesreservoir::iseries(), and datrw::util::seriesreservoir::valuetype().

Referenced by datrw::osffstream::flushwaitingtrace().

49  {
50  switch(series.valuetype()) {
52  os << ::sff::OutputWaveform<Tdseries>(series.dseries(),
53  traceheader,
54  normmode);
55  break;
57  os << ::sff::OutputWaveform<Tfseries>(series.fseries(),
58  traceheader,
59  normmode);
60  break;
62  os << ::sff::OutputWaveform<Tiseries>(series.iseries(),
63  traceheader,
64  normmode);
65  break;
66  default: DATRW_abort("empty reservoir!");
67  }
68  } // void writesfftrace
trace has float data
Definition: binary.h:83
Evaluetype valuetype() const
Definition: reservoir.h:76
trace has double data
Definition: binary.h:82
single precision floating point
Definition: reservoir.h:55
#define DATRW_abort(M)
Abort and give a message.
Definition: error.h:101
Tdseries::Tcoc dseries() const
Definition: reservoir.cc:67
Tiseries::Tcoc iseries() const
Definition: reservoir.cc:79
Tfseries::Tcoc fseries() const
Definition: reservoir.cc:73
Here is the call graph for this function:
Here is the caller graph for this function: