source: ntrip/trunk/BNC/src/satObs.h@ 6157

Last change on this file since 6157 was 6157, checked in by mervart, 8 years ago
File size: 2.9 KB
Line 
1#ifndef SATOBS_H
2#define SATOBS_H
3
4#include <string>
5#include <vector>
6#include <newmat.h>
7
8#include "bncconst.h"
9#include "bnctime.h"
10#include "t_prn.h"
11
12class t_frqObs {
13 public:
14 t_frqObs() {
15 _code = 0.0;
16 _codeValid = false;
17 _phase = 0.0;
18 _phaseValid = false;
19 _doppler = 0.0;
20 _dopplerValid = false;
21 _snr = 0.0;
22 _snrValid = false;
23 _slip = false;
24 _slipCounter = 0;
25 _biasJumpCounter = 0;
26 }
27 std::string _rnxType2ch;
28 double _code;
29 bool _codeValid;
30 double _phase;
31 bool _phaseValid;
32 double _doppler;
33 bool _dopplerValid;
34 double _snr;
35 bool _snrValid;
36 bool _slip;
37 int _slipCounter;
38 int _biasJumpCounter;
39};
40
41class t_satObs {
42 public:
43 t_satObs() {}
44 t_satObs(const t_satObs& old) { // copy constructor (deep copy)
45 _staID = old._staID;
46 _prn = old._prn;
47 _time = old._time;
48 for (unsigned ii = 0; ii < old._obs.size(); ii++) {
49 _obs.push_back(new t_frqObs(*old._obs[ii]));
50 }
51 }
52 ~t_satObs() {for (unsigned ii = 0; ii < _obs.size(); ii++) delete _obs[ii];}
53 std::string _staID;
54 t_prn _prn;
55 bncTime _time;
56 std::vector<t_frqObs*> _obs;
57};
58
59class t_orbCorr {
60 public:
61 t_orbCorr() {
62 _xr.ReSize(3); _xr = 0.0;
63 _dotXr.ReSize(3); _dotXr = 0.0;
64 }
65 t_orbCorr(const std::string& str);
66 t_prn prn() const {return _prn;}
67 unsigned short IOD() const {return _iod;}
68 std::string toString() const;
69 std::string _staID;
70 t_prn _prn;
71 unsigned short _iod;
72 bncTime _time;
73 char _system;
74 ColumnVector _xr;
75 ColumnVector _dotXr;
76};
77
78class t_clkCorr {
79 public:
80 t_clkCorr();
81 t_clkCorr(const std::string& str);
82 t_prn prn() const {return _prn;}
83 unsigned short IOD() const {return _iod;}
84 std::string toString() const;
85 std::string _staID;
86 t_prn _prn;
87 unsigned short _iod;
88 bncTime _time;
89 double _dClk;
90 double _dotDClk;
91 double _dotDotDClk;
92 double _clkPartial;
93};
94
95class t_frqBias {
96 public:
97 t_frqBias() {
98 _code = 0.0;
99 _codeValid = false;
100 _phase = 0.0;
101 _phaseValid = false;
102 }
103 std::string _rnxType2ch;
104 double _code;
105 bool _codeValid;
106 double _phase;
107 bool _phaseValid;
108};
109
110class t_satBias {
111 public:
112 std::string _staID;
113 t_prn _prn;
114 bncTime _time;
115 int _nx;
116 int _jumpCount;
117 std::vector<t_frqBias> _bias;
118};
119
120#endif
Note: See TracBrowser for help on using the repository browser.