source: ntrip/trunk/BNC/src/satObs.cpp@ 6179

Last change on this file since 6179 was 6179, checked in by mervart, 10 years ago
File size: 2.0 KB
Line 
1#include <iostream>
2#include <iomanip>
3#include <sstream>
4
5#include "satObs.h"
6
7using namespace std;
8
9//
10////////////////////////////////////////////////////////////////////////////
11t_clkCorr::t_clkCorr() {
12 _iod = 0;
13 _dClk = 0.0;
14 _dotDClk = 0.0;
15 _dotDotDClk = 0.0;
16 _clkPartial = 0.0;
17}
18
19//
20////////////////////////////////////////////////////////////////////////////
21t_clkCorr::t_clkCorr(const string& line) {
22 istringstream in(line);
23}
24
25//
26////////////////////////////////////////////////////////////////////////////
27string t_clkCorr::toLine() const {
28 ostringstream str;
29 str.setf(ios::showpoint | ios::fixed);
30 str << "C " << _time.gpsw() << ' ' << setprecision(2) << _time.gpssec() << ' '
31 << _prn.toString() << ' ' << setw(2) << _iod << ' '
32 << setw(10) << setprecision(4) << _dClk * t_CST::c << ' '
33 << setw(10) << setprecision(4) << _dotDClk * t_CST::c << ' '
34 << setw(10) << setprecision(4) << _dotDotDClk * t_CST::c << endl;
35 return str.str();
36}
37
38//
39////////////////////////////////////////////////////////////////////////////
40t_orbCorr::t_orbCorr() {
41 _xr.ReSize(3); _xr = 0.0;
42 _dotXr.ReSize(3); _dotXr = 0.0;
43 _iod = 0;
44 _system = 'R';
45}
46
47//
48////////////////////////////////////////////////////////////////////////////
49t_orbCorr::t_orbCorr(const string& line) {
50 istringstream in(line);
51}
52
53//
54////////////////////////////////////////////////////////////////////////////
55string t_orbCorr::toLine() const {
56 ostringstream str;
57 str.setf(ios::showpoint | ios::fixed);
58 str << "O " << _time.gpsw() << ' ' << setprecision(2) << _time.gpssec() << ' '
59 << _prn.toString() << ' ' << setw(2) << _iod << ' '
60 << setw(10) << setprecision(4) << _xr[0] << ' '
61 << setw(10) << setprecision(4) << _xr[1] << ' '
62 << setw(10) << setprecision(4) << _xr[2] << " "
63 << setw(10) << setprecision(4) << _dotXr[0] << ' '
64 << setw(10) << setprecision(4) << _dotXr[1] << ' '
65 << setw(10) << setprecision(4) << _dotXr[2] << endl;
66
67 return str.str();
68}
69
Note: See TracBrowser for help on using the repository browser.