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

◆ readtrailer()

void sff::TraceHeader::readtrailer ( std::istream &  is)

Definition at line 885 of file sffxx.cc.

References sff::DAST::hasfree, sff::DAST::hasinfo, Mdast, Mdebug, Mfree, Minfo, sff::FREE::read(), sff::INFO::read(), and sff::FREE::write().

Referenced by sff::SkipWaveform::read().

886  {
887  if (Mdebug) { std::cerr << "DEBUG: read trace trailer" << std::endl; }
888  if (Mdast.hasfree)
889  {
890  if (Mdebug) { std::cerr << "DEBUG: read FREE block" << std::endl; }
891  Mfree.read(is, Mdebug);
892  if (Mdebug) { Mfree.write(std::cerr); }
893  }
894  if (Mdast.hasinfo)
895  {
896  if (Mdebug) { std::cerr << "DEBUG: read INFO line" << std::endl; }
897  Minfo.read(is);
898  }
899  }
void write(std::ostream &os) const
Definition: sffxx.cc:565
void read(std::istream &is, const bool &debug=false)
Definition: sffxx.cc:576
void read(std::istream &is)
Definition: sffxx.cc:766
bool hasinfo
Definition: sffxx.h:189
bool hasfree
Definition: sffxx.h:188
Here is the call graph for this function:
Here is the caller graph for this function: