Changeset 6455 in ntrip for trunk/BNC/src/satObs.cpp
- Timestamp:
- Dec 27, 2014, 3:58:55 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/satObs.cpp
r6453 r6455 6 6 7 7 using namespace std; 8 9 //10 ////////////////////////////////////////////////////////////////////////////11 t_clkCorr::t_clkCorr(const string& line) {12 reset();13 istringstream in(line);14 char ch; in >> ch; if (ch != 'C') return;15 int gpsw;16 double gpssec;17 in >> gpsw >> gpssec >> _prn >> _iod >> _dClk >> _dotDClk >> _dotDotDClk;18 _time.set(gpsw, gpssec);19 _dClk /= t_CST::c;20 _dotDClk /= t_CST::c;21 _dotDotDClk /= t_CST::c;22 }23 8 24 9 // … … 36 21 // 37 22 //////////////////////////////////////////////////////////////////////////// 38 string t_clkCorr::toLine() const { 39 ostringstream str; 40 str.setf(ios::showpoint | ios::fixed); 41 str << "C " << _time.gpsw() << ' ' << setprecision(2) << _time.gpssec() << ' ' 42 << _prn.toString() << ' ' << setw(3) << _iod << ' ' 43 << setw(10) << setprecision(4) << _dClk * t_CST::c << ' ' 44 << setw(10) << setprecision(4) << _dotDClk * t_CST::c << ' ' 45 << setw(10) << setprecision(4) << _dotDotDClk * t_CST::c << endl; 46 return str.str(); 23 void t_clkCorr::writeEpoch(std::ostream* out, const QList<t_clkCorr>& corrList) { 24 *out << "CLOCK CORRECTIONS: " << corrList.size() << endl; 47 25 } 48 26 49 27 // 50 28 //////////////////////////////////////////////////////////////////////////// 51 t_orbCorr::t_orbCorr(const string& line) { 52 reset(); 53 istringstream in(line); 54 char ch; in >> ch; if (ch != 'O') return; 55 int gpsw; 56 double gpssec; 57 in >> gpsw >> gpssec >> _prn >> _iod 58 >> _xr[0] >> _xr[1] >> _xr[2] 59 >> _dotXr[0] >> _dotXr[1] >> _dotXr[2]; 60 _time.set(gpsw, gpssec); 29 void t_clkCorr::readEpoch(std::istream* in, QList<t_clkCorr>& corrList) { 61 30 } 62 31 … … 74 43 // 75 44 //////////////////////////////////////////////////////////////////////////// 76 string t_orbCorr::toLine() const { 77 ostringstream str; 78 str.setf(ios::showpoint | ios::fixed); 79 str << "O " << _time.gpsw() << ' ' << setprecision(2) << _time.gpssec() << ' ' 80 << _prn.toString() << ' ' << setw(3) << _iod << ' ' 81 << setw(10) << setprecision(4) << _xr[0] << ' ' 82 << setw(10) << setprecision(4) << _xr[1] << ' ' 83 << setw(10) << setprecision(4) << _xr[2] << " " 84 << setw(10) << setprecision(4) << _dotXr[0] << ' ' 85 << setw(10) << setprecision(4) << _dotXr[1] << ' ' 86 << setw(10) << setprecision(4) << _dotXr[2] << endl; 87 return str.str(); 45 void t_orbCorr::writeEpoch(std::ostream* out, const QList<t_orbCorr>& corrList) { 46 *out << "ORB CORRECTIONS: " << corrList.size() << endl; 88 47 } 89 48 49 // 50 //////////////////////////////////////////////////////////////////////////// 51 void t_orbCorr::readEpoch(std::istream* in, QList<t_orbCorr>& corrList) { 52 }
Note:
See TracChangeset
for help on using the changeset viewer.