conv/many suite: convert (m)any seismic data format(s)

◆ operator<<() [3/3]

std::ostream& operator<< ( std::ostream &  os,
const Gap gap 
)

print gaps

Definition at line 82 of file structgapanalysis.cc.

References Gapid::dt, Gap::first, Gap::ID, Gap::isbreak(), and Gap::last.

83 {
84  os << " " << gap.first.timestring();
85  if (gap.isbreak())
86  {
87  os << ": break in contiguous data\n";
88  }
89  else
90  {
91  os << " - " << gap.last.timestring() << "\n";
92  }
93  unsigned int nmissing=(gap.ID.dt+gap.last-gap.first)/gap.ID.dt;
94  os << " "
95  << ": " << nmissing
96  << " sample";
97  if (nmissing!=1) { os << "s are"; } else { os << " is"; }
98  os << " missing";
99  return(os);
100 } // std::ostream& operator<<(std::ostream& os, const Gap& gap)^
libtime::TAbsoluteTime first
libtime::TAbsoluteTime last
libtime::TRelativeTime dt
Gapid ID
bool isbreak() const
Here is the call graph for this function: