Line | |
---|
1 | /*
|
---|
2 | * pppRefSat.h
|
---|
3 | *
|
---|
4 | * Created on: Feb 27, 2020
|
---|
5 | * Author: stuerze
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef PPPREFSAT_H_
|
---|
9 | #define PPPREFSAT_H_
|
---|
10 |
|
---|
11 | #include <vector>
|
---|
12 | #include <QMap>
|
---|
13 | #include "t_prn.h"
|
---|
14 |
|
---|
15 | namespace BNC_PPP {
|
---|
16 |
|
---|
17 | class t_pppRefSat {
|
---|
18 | public:
|
---|
19 | t_pppRefSat() {
|
---|
20 | _prn = t_prn();
|
---|
21 | _stecValue = 0.0;
|
---|
22 | };
|
---|
23 | t_pppRefSat(t_prn prn, double stecValue) {
|
---|
24 | _prn = prn;
|
---|
25 | _stecValue = stecValue;
|
---|
26 | }
|
---|
27 | ~t_pppRefSat() {};
|
---|
28 | t_prn prn() {return _prn;}
|
---|
29 | void setPrn(t_prn prn) {_prn = prn;}
|
---|
30 | double stecValue() {return _stecValue;}
|
---|
31 | void setStecValue(double stecValue) {_stecValue = stecValue;}
|
---|
32 | private:
|
---|
33 | t_prn _prn;
|
---|
34 | double _stecValue;
|
---|
35 | };
|
---|
36 |
|
---|
37 | class t_refSatellites {
|
---|
38 | public:
|
---|
39 | t_refSatellites(std::vector<char> systems) {
|
---|
40 | for (unsigned iSys = 0; iSys < systems.size(); iSys++) {
|
---|
41 | char sys = systems[iSys];
|
---|
42 | _refSatMap[sys] = new t_pppRefSat();
|
---|
43 | }
|
---|
44 | }
|
---|
45 | ~t_refSatellites() {
|
---|
46 | QMapIterator<char, t_pppRefSat*> it(_refSatMap);
|
---|
47 | while (it.hasNext()) {
|
---|
48 | it.next();
|
---|
49 | delete it.value();
|
---|
50 | }
|
---|
51 | _refSatMap.clear();
|
---|
52 | }
|
---|
53 | const QMap<char, t_pppRefSat*>& refSatMap() const {return _refSatMap;}
|
---|
54 |
|
---|
55 | private:
|
---|
56 | QMap<char, t_pppRefSat*> _refSatMap;
|
---|
57 |
|
---|
58 | };
|
---|
59 |
|
---|
60 |
|
---|
61 | }
|
---|
62 |
|
---|
63 |
|
---|
64 | #endif /* PPPREFSAT_H_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.