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

Last change on this file since 5879 was 5826, checked in by mervart, 10 years ago
File size: 1.0 KB
RevLine 
[5743]1#ifndef OBSPOOL_H
2#define OBSPOOL_H
3
4#include <vector>
5#include <deque>
[5822]6#include "pppSatObs.h"
[5743]7#include "bnctime.h"
8
[5814]9namespace BNC_PPP {
[5743]10
[5826]11class t_pppObsPool {
[5743]12 public:
13
14 class t_epoch {
15 public:
[5819]16 t_epoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector);
[5743]17 ~t_epoch();
[5819]18 std::vector<t_pppSatObs*>& obsVector() {return _obsVector;}
19 const std::vector<t_pppSatObs*>& obsVector() const {return _obsVector;}
[5743]20 const bncTime& epoTime() const {return _epoTime;}
21 private:
22 bncTime _epoTime;
[5819]23 std::vector<t_pppSatObs*> _obsVector;
[5743]24 };
25
[5826]26 t_pppObsPool();
27 ~t_pppObsPool();
28 void putBias(t_satBias* satBias);
[5743]29
[5819]30 void putEpoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector);
[5743]31
[5826]32 const t_satBias* satBias(const t_prn& prn) const {
[5743]33 return _satBiases[prn.toInt()];
34 }
[5826]35
[5743]36 t_epoch* lastEpoch() {
37 if (_epochs.size()) {
38 return _epochs.back();
39 }
40 else {
41 return 0;
42 }
43 }
44
45 private:
[5826]46 t_satBias* _satBiases[t_prn::MAXPRN+1];
[5743]47 std::deque<t_epoch*> _epochs;
48};
49
50}
51
52#endif
Note: See TracBrowser for help on using the repository browser.