Line | |
---|
1 | #ifndef OBSPOOL_H
|
---|
2 | #define OBSPOOL_H
|
---|
3 |
|
---|
4 | #include <vector>
|
---|
5 | #include <deque>
|
---|
6 | #include "satobs.h"
|
---|
7 | #include "satbias.h"
|
---|
8 | #include "bnctime.h"
|
---|
9 |
|
---|
10 | namespace BNC {
|
---|
11 |
|
---|
12 | class t_obsPool {
|
---|
13 | public:
|
---|
14 |
|
---|
15 | class t_epoch {
|
---|
16 | public:
|
---|
17 | t_epoch(const bncTime& epoTime, std::vector<t_satObs*>& obsVector);
|
---|
18 | ~t_epoch();
|
---|
19 | std::vector<t_satObs*>& obsVector() {return _obsVector;}
|
---|
20 | const std::vector<t_satObs*>& obsVector() const {return _obsVector;}
|
---|
21 | const bncTime& epoTime() const {return _epoTime;}
|
---|
22 | private:
|
---|
23 | bncTime _epoTime;
|
---|
24 | std::vector<t_satObs*> _obsVector;
|
---|
25 | };
|
---|
26 |
|
---|
27 | t_obsPool();
|
---|
28 | ~t_obsPool();
|
---|
29 | void putBiases(t_satBias* satBias);
|
---|
30 |
|
---|
31 | void putEpoch(const bncTime& epoTime, std::vector<t_satObs*>& obsVector);
|
---|
32 |
|
---|
33 | const t_satBias* satBias(const t_prn& prn) const {
|
---|
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:
|
---|
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.