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

◆ writetrailer()

void sff::TraceHeader::writetrailer ( std::ostream &  os) const

Definition at line 859 of file sffxx.cc.

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

Referenced by sff::operator<<().

860  {
861  if (Mdast.hasfree)
862  {
863  if (Mdebug) { std::cerr << "DEBUG: write FREE block" << std::endl; }
864  Mfree.write(os);
865  }
866  if (Mdast.hasinfo)
867  {
868  if (Mdebug) { std::cerr << "DEBUG: write INFO line" << std::endl; }
869  os << Minfo.line();
870  }
871  }
void write(std::ostream &os) const
Definition: sffxx.cc:565
std::string line() const
Definition: sffxx.cc:754
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: