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

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