SFF++ library: reading and writing SFF from C++

◆ write()

template<class C >
void sff::SFFostream< C >::write ( )
inlineprivate

Definition at line 138 of file sffostream.h.

Referenced by sff::SFFostream< C >::~SFFostream().

139  {
140  using std::cout;
141  using std::endl;
142  // flush file header (in case we have to write the first trace)
143  this->flushheader();
144  if (Mhasseries)
145  {
146  Mos << OutputWaveform<Tseries>(Mseries,
147  this->traceheader(),
148  this->normmode());
149  Mhasseries=false;
150  if (Mdebug)
151  {
152  cout << "DEBUG (SFFostream::write): trace written:" << endl;
153  cout << " " << this->traceheader().wid2().line().substr(0,70)
154  << endl;
155  cout << " index range: " << Mseries.f() << " - "
156  << Mseries.l() << "; ";
157  cout << "some values: " << Mseries(Mseries.f())
158  << ", " << Mseries(Mseries.f()+1)
159  << ", " << Mseries(Mseries.f()+2)
160  << ", " << Mseries(Mseries.f()+3)
161  << endl;
162  }
163  }
164  if (Mdebug) { cout << "DEBUG (SFFostream::write): finished" << endl; }
165  } // SFFostream<C>::write()
std::string line() const
Definition: sffxx.cc:657
Tcseries Mseries
Definition: sffostream.h:129
TraceHeader traceheader() const
Definition: sffostream.cc:127
const WID2 & wid2() const
Definition: sffxx.h:305
void flushheader()
flush file header to output (if not done yet)
Definition: sffostream.cc:146
const Enormmode & normmode() const
Definition: sffostream.cc:141
Here is the caller graph for this function: