Rev | Line | |
---|
[5743] | 1 | #ifndef OBSPOOL_H
|
---|
| 2 | #define OBSPOOL_H
|
---|
| 3 |
|
---|
| 4 | #include <vector>
|
---|
| 5 | #include <deque>
|
---|
| 6 | #include "satobs.h"
|
---|
[5810] | 7 | #include "pppSatBias.h"
|
---|
[5743] | 8 | #include "bnctime.h"
|
---|
| 9 |
|
---|
[5814] | 10 | namespace BNC_PPP {
|
---|
[5743] | 11 |
|
---|
[5819] | 12 | class t_frqObsPool {
|
---|
[5743] | 13 | public:
|
---|
| 14 |
|
---|
| 15 | class t_epoch {
|
---|
| 16 | public:
|
---|
[5819] | 17 | t_epoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector);
|
---|
[5743] | 18 | ~t_epoch();
|
---|
[5819] | 19 | std::vector<t_pppSatObs*>& obsVector() {return _obsVector;}
|
---|
| 20 | const std::vector<t_pppSatObs*>& obsVector() const {return _obsVector;}
|
---|
[5743] | 21 | const bncTime& epoTime() const {return _epoTime;}
|
---|
| 22 | private:
|
---|
| 23 | bncTime _epoTime;
|
---|
[5819] | 24 | std::vector<t_pppSatObs*> _obsVector;
|
---|
[5743] | 25 | };
|
---|
| 26 |
|
---|
[5819] | 27 | t_frqObsPool();
|
---|
| 28 | ~t_frqObsPool();
|
---|
[5818] | 29 | void putBiases(t_pppSatBias* satBias);
|
---|
[5743] | 30 |
|
---|
[5819] | 31 | void putEpoch(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector);
|
---|
[5743] | 32 |
|
---|
[5818] | 33 | const t_pppSatBias* satBias(const t_prn& prn) const {
|
---|
[5743] | 34 | return _satBiases[prn.toInt()];
|
---|
| 35 | }
|
---|
| 36 | t_epoch* lastEpoch() {
|
---|
| 37 | if (_epochs.size()) {
|
---|
| 38 | return _epochs.back();
|
---|
| 39 | }
|
---|
| 40 | else {
|
---|
| 41 | return 0;
|
---|
| 42 | }
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | private:
|
---|
[5818] | 46 | t_pppSatBias* _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.