Changeset 10034 in ntrip for trunk/BNC/src/PPP/pppRefSat.h


Ignore:
Timestamp:
Apr 21, 2023, 11:48:24 AM (12 months ago)
Author:
stuerze
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppRefSat.h

    r9507 r10034  
    99#define PPPREFSAT_H_
    1010
     11#include <vector>
    1112#include "t_prn.h"
    1213
     
    3233  double   _stecValue;
    3334};
     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
    3460}
    3561
Note: See TracChangeset for help on using the changeset viewer.