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

◆ operator<<()

std::ostream& sff::helper::operator<< ( std::ostream &  os,
const MyFormat format 
)

Definition at line 67 of file sffverbose.cc.

References sff::helper::MyFormat::precision, sff::helper::MyFormat::scientific, sff::helper::MyFormat::showpoint, sff::helper::MyFormat::showpos, and sff::helper::MyFormat::width.

68  {
69  os << std::setw(format.width);
70  os << std::setprecision(format.precision);
71  if (format.scientific) { os << std::scientific; }
72  else { os << std::fixed; }
73  if (format.showpos) { os << std::showpos; }
74  else { os << std::noshowpos; }
75  if (format.showpoint) { os << std::showpoint; }
76  else { os << std::noshowpoint; }
77  return os;
78  } // std::ostream& operator<<(std::ostream& os, const MyFormat& format)