24 #include "cheetah/exporters/detail/SpCclFileStreamerTraits.h" 31 template<
typename NumericalRep>
32 SpCclFileStreamerTraits<NumericalRep>::SpCclFileStreamerTraits()
36 template<
typename NumericalRep>
37 SpCclFileStreamerTraits<NumericalRep>::~SpCclFileStreamerTraits()
41 template<
typename NumericalRep>
42 void SpCclFileStreamerTraits<NumericalRep>::write(std::ostream& os, data::SpCcl<NumericalRep>
const& candidate_list)
44 if(candidate_list.tf_blocks().empty())
return;
46 for(
auto it = candidate_list.begin(); it != candidate_list.end(); ++it)
48 auto const& candidate = *it;
49 auto start_mjd = candidate_list.start_time(candidate);
50 auto dmjd = start_mjd.time_since_epoch();
52 os << std::left << std::setw(_column_width) << std::setprecision(15) << dmjd.count()
53 << std::left << std::setw(_column_width) <<
"\t" << std::setprecision(6) << candidate.dm().value()
54 << std::left << std::setw(_column_width) <<
"\t" << std::setprecision(6) << candidate.width().value()
55 << std::left << std::setw(_column_width) <<
"\t" << std::setprecision(6) << candidate.sigma() <<
"\n";
Some limits and constants for FLDO.