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

◆ flushcollector()

void datrw::tsoft::Channeldata::flushcollector ( )

function to flush collector to vector of sequences

Definition at line 213 of file tsoftdata.cc.

References datrw::tsoft::Datatrace::date(), datrw::tsoft::Datasequence::date(), datrw::tsoft::Datasequence::initialize(), datrw::tsoft::Datatrace::interval(), datrw::tsoft::Datasequence::interval(), Mcollector, Mtraces, datrw::tsoft::Datasequence::nsamples(), datrw::tsoft::Datatrace::series(), datrw::tsoft::Datasequence::series(), and trace().

Referenced by push_sample().

214  {
215  if (Mcollector.nsamples()>0)
216  {
217  Datatrace trace;
221  Mtraces.push_back(trace);
223  }
224  } // Channeldata::flushcollector()
Tvodt Mtraces
data traces
Definition: tsoftdata.h:359
void series(const Tdseries &s)
set series
Definition: tsoftdata.h:249
int nsamples() const
return number of samples
Definition: tsoftdata.h:288
const Datatrace & trace(const unsigned int &i) const
return data trace
Definition: tsoftdata.h:332
Tdseries series() const
return samples in a series container
Definition: tsoftdata.cc:190
void interval(const libtime::TRelativeTime i)
set sampling interval
Definition: tsoftdata.h:279
void initialize()
initialize data sequence
Definition: tsoftdata.cc:180
void date(const libtime::TAbsoluteTime d)
set time of first sample
Definition: tsoftdata.h:245
Datasequence Mcollector
vector of samples to collect from file
Definition: tsoftdata.h:361
void date(const libtime::TAbsoluteTime d)
set time of first sample
Definition: tsoftdata.h:277
void interval(const libtime::TRelativeTime i)
set sampling interval
Definition: tsoftdata.h:247
Here is the call graph for this function:
Here is the caller graph for this function: