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

◆ writetrace() [2/3]

void datrw::oasciistream::writetrace ( const Tfseries::Tcoc &  series)
protectedvirtual

write single precision float data

Reimplemented from datrw::odatstream.

Definition at line 142 of file oasciistream.cc.

References DATRW_debug, DATRW_value, datrw::ascii::keyfloat, datrw::odatstream::Mdebug, datrw::odatstream::Mos, Mprecision, and writetraceheader().

143  {
144  DATRW_debug(Mdebug, "oasciistream::writetrace (float)",
145  DATRW_value(series.f()) << ", "
146  DATRW_value(series.l()) << ", "
148  this->writetraceheader(series.size(),ascii::keyfloat);
149  for (int i=series.first(); i<=series.last(); ++i)
150  {
151  Mos.precision(Mprecision);
152  Mos << series(i) << "\n";
153  }
154  Mos.flush();
155  } // void oasciistream::writetrace(const Tfseries::Tcoc& series)
unsigned int Mprecision
floating point format precision
Definition: ascii.h:121
std::ostream & Mos
output stream to be used by this class
Definition: datwrite.h:194
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
bool Mdebug
global debug flag
Definition: datwrite.h:197
void writetraceheader(const unsigned int &n, const char *type)
const char *const keyfloat
key for DATA type header field
Definition: ascii.cc:72
#define DATRW_value(V)
report value
Definition: debug.h:65
Here is the call graph for this function: