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

◆ verbose() [1/8]

void sff::verbose ( std::ostream &  os,
const WID2 wid2 
)

Definition at line 93 of file sffverbose.cc.

References sff::WID2::auxid, sff::WID2::calib, sff::WID2::calper, sff::WID2::channel, sff::WID2::date, sff::WID2::dt, sff::WID2::hang, sff::WID2::instype, sff::WID2::nsamples, sff::helper::MyFormat::showpos, sff::WID2::station, and sff::WID2::vang.

Referenced by test_extended_functions(), test_verbose_functions(), and verbose().

94  {
95  sff::helper::MyFormat format;
96  sff::helper::MyFormat npformat;
97  npformat.showpos=false;
98  os << "contents of SFF WID2 line:" << std::endl;
99  os << " date and time of first sample: "
100  << wid2.date.timestring() << std::endl;
101  os << " station code: "
102  << wid2.station << std::endl;
103  os << " channel code: "
104  << wid2.channel << std::endl;
105  os << " auxilliary code: "
106  << wid2.auxid << std::endl;
107  os << " instrument code: "
108  << wid2.instype << std::endl;
109  os << " number of samples: "
110  << npformat(11,7,false) << wid2.nsamples << std::endl;
111  os << " sampling interval: "
112  << npformat(11,7,false) << wid2.dt << " s" << std::endl;
113  os << " calibration factor: "
114  << format(10,7,false) << wid2.calib << std::endl;
115  os << " calibration period: "
116  << format(10,7,false) << wid2.calper << std::endl;
117  os << " horizontal orientation clockwise from north (hang): "
118  << format(10,7,false) << wid2.hang << " deg" << std::endl;
119  os << " vertical orientation from vertical (vang): "
120  << format(19,7,false) << wid2.vang << " deg" << std::endl;
121  } // void verbose(std::ostream& os, const WID2& wid2)
Here is the caller graph for this function: