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

Last change on this file since 10541 was 10265, checked in by stuerze, 13 months ago

minor changes

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>
[10265]12#include <QMap>
[8905]13#include "t_prn.h"
14
15namespace BNC_PPP {
16
17class t_pppRefSat {
18public:
[9507]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() {};
[8905]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;}
32private:
33 t_prn _prn;
34 double _stecValue;
35};
[10034]36
37class 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
[8905]61}
62
63
64#endif /* PPPREFSAT_H_ */
Note: See TracBrowser for help on using the repository browser.