Rev | Line | |
---|
[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] | 9 | namespace BNC_PPP {
|
---|
[5743] | 10 |
|
---|
[5826] | 11 | class 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();
|
---|
[6463] | 28 | void putCodeBias(t_satCodeBias* satCodeBias);
|
---|
[5743] | 29 |
|
---|
[5819] | 30 | void putEpoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector);
|
---|
[5743] | 31 |
|
---|
[6463] | 32 | const t_satCodeBias* satCodeBias(const t_prn& prn) const {
|
---|
| 33 | return _satCodeBiases[prn.toInt()];
|
---|
[5743] | 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:
|
---|
[6463] | 46 | t_satCodeBias* _satCodeBiases[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.