source: ntrip/trunk/BNC/src/PPP/pppObsPool.h@ 6184

Last change on this file since 6184 was 5826, checked in by mervart, 10 years ago
File size: 1.0 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 putBias(t_satBias* satBias);
29
30 void putEpoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector);
31
32 const t_satBias* satBias(const t_prn& prn) const {
33 return _satBiases[prn.toInt()];
34 }
35
36 t_epoch* lastEpoch() {
37 if (_epochs.size()) {
38 return _epochs.back();
39 }
40 else {
41 return 0;
42 }
43 }
44
45 private:
46 t_satBias* _satBiases[t_prn::MAXPRN+1];
47 std::deque<t_epoch*> _epochs;
48};
49
50}
51
52#endif
Note: See TracBrowser for help on using the repository browser.