source: ntrip/trunk/BNC/src/PPP/pppRefSat.h@ 10113

Last change on this file since 10113 was 10034, checked in by stuerze, 19 months ago
File size: 1.2 KB
RevLine 
[8905]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
[10034]11#include <vector>
[8905]12#include "t_prn.h"
13
14namespace BNC_PPP {
15
16class t_pppRefSat {
17public:
[9507]18 t_pppRefSat() {
19 _prn = t_prn();
20 _stecValue = 0.0;
21 };
22 t_pppRefSat(t_prn prn, double stecValue) {
23 _prn = prn;
24 _stecValue = stecValue;
25 }
26 ~t_pppRefSat() {};
[8905]27 t_prn prn() {return _prn;}
28 void setPrn(t_prn prn) {_prn = prn;}
29 double stecValue() {return _stecValue;}
30 void setStecValue(double stecValue) {_stecValue = stecValue;}
31private:
32 t_prn _prn;
33 double _stecValue;
34};
[10034]35
36class t_refSatellites {
37 public:
38 t_refSatellites(std::vector<char> systems) {
39 for (unsigned iSys = 0; iSys < systems.size(); iSys++) {
40 char sys = systems[iSys];
41 _refSatMap[sys] = new t_pppRefSat();
42 }
43 }
44 ~t_refSatellites() {
45 QMapIterator<char, t_pppRefSat*> it(_refSatMap);
46 while (it.hasNext()) {
47 it.next();
48 delete it.value();
49 }
50 _refSatMap.clear();
51 }
52 const QMap<char, t_pppRefSat*>& refSatMap() const {return _refSatMap;}
53
54 private:
55 QMap<char, t_pppRefSat*> _refSatMap;
56
57};
58
59
[8905]60}
61
62
63#endif /* PPPREFSAT_H_ */
Note: See TracBrowser for help on using the repository browser.