source: ntrip/branches/BNC_2.12/src/PPP/pppObsPool.h@ 7905

Last change on this file since 7905 was 7288, checked in by stuerze, 9 years ago

phase biases added

  • Property svn:keywords set to Author Date Id Rev URL;svn:eol-style=native
  • Property svn:mime-type set to text/plain
File size: 1.4 KB
Line 
1#ifndef OBSPOOL_H
2#define OBSPOOL_H
3
4#include <vector>
5#include <deque>
6#include "pppSatObs.h"
7#include "bnctime.h"
8
9namespace BNC_PPP {
10
11class t_pppObsPool {
12 public:
13
14 class t_epoch {
15 public:
16 t_epoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector);
17 ~t_epoch();
18 std::vector<t_pppSatObs*>& obsVector() {return _obsVector;}
19 const std::vector<t_pppSatObs*>& obsVector() const {return _obsVector;}
20 const bncTime& epoTime() const {return _epoTime;}
21 private:
22 bncTime _epoTime;
23 std::vector<t_pppSatObs*> _obsVector;
24 };
25
26 t_pppObsPool();
27 ~t_pppObsPool();
28 void putCodeBias(t_satCodeBias* satCodeBias);
29 void putPhaseBias(t_satPhaseBias* satPhaseBias);
30 void putTec(t_vTec* _vTec);
31
32 void putEpoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector);
33
34 const t_satCodeBias* satCodeBias(const t_prn& prn) const {
35 return _satCodeBiases[prn.toInt()];
36 }
37 const t_satPhaseBias* satPhaseBias(const t_prn& prn) const {
38 return _satPhaseBiases[prn.toInt()];
39 }
40 const t_vTec* vTec() const {return _vTec;}
41
42 t_epoch* lastEpoch() {
43 if (_epochs.size()) {
44 return _epochs.back();
45 }
46 else {
47 return 0;
48 }
49 }
50
51 private:
52 t_satCodeBias* _satCodeBiases[t_prn::MAXPRN+1];
53 t_satPhaseBias* _satPhaseBiases[t_prn::MAXPRN+1];
54 t_vTec* _vTec;
55 std::deque<t_epoch*> _epochs;
56};
57
58}
59
60#endif
Note: See TracBrowser for help on using the repository browser.