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

◆ writetrace() [3/3]

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

write integer data

Reimplemented from datrw::odatstream.

Definition at line 159 of file oasciistream.cc.

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

160  {
161  DATRW_debug(Mdebug, "oasciistream::writetrace (int)",
162  DATRW_value(series.f()) << ", "
163  DATRW_value(series.l()));
164  this->writetraceheader(series.size(),ascii::keyint);
165  for (int i=series.first(); i<=series.last(); ++i)
166  {
167  Mos << series(i) << "\n";
168  }
169  Mos.flush();
170  } // void oasciistream::writetrace(const Tiseries::Tcoc& series)
std::ostream & Mos
output stream to be used by this class
Definition: datwrite.h:194
const char *const keyint
key for DATA type header field
Definition: ascii.cc:71
#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)
#define DATRW_value(V)
report value
Definition: debug.h:65
Here is the call graph for this function: