Changeset 6269 in ntrip
- Timestamp:
- Oct 31, 2014, 11:08:55 AM (10 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/availplot.cpp
r6261 r6269 72 72 ////////////////////////////////////////////////////////////////////////////// 73 73 t_availPlot::t_availPlot(QWidget* parent, 74 QMap< QString, t_availData>* availDataMap)74 QMap<t_prn, t_availData>* availDataMap) 75 75 : QwtPlot(parent) { 76 76 … … 116 116 // ------ 117 117 int iC = 0; 118 QMapIterator< QString, t_availData > it(*availDataMap);118 QMapIterator<t_prn, t_availData > it(*availDataMap); 119 119 while (it.hasNext()) { 120 120 it.next(); 121 121 ++iC; 122 const QString& prn = it.key();123 const t_availData& 122 QString prn = QString(it.key().toString().c_str()); 123 const t_availData& availData = it.value(); 124 124 125 125 scaleDrawPrn->_yLabels[iC] = prn; -
trunk/BNC/src/rinex/availplot.h
r4669 r6269 6 6 #include <qwt_symbol.h> 7 7 #include <qwt_plot_curve.h> 8 #include "t_prn.h" 8 9 9 10 class t_availData; … … 13 14 14 15 public: 15 t_availPlot(QWidget* parent, QMap< QString, t_availData>* availDataMap);16 t_availPlot(QWidget* parent, QMap<t_prn, t_availData>* availDataMap); 16 17 17 18 private: -
trunk/BNC/src/rinex/eleplot.cpp
r6261 r6269 61 61 // Constructor 62 62 ////////////////////////////////////////////////////////////////////////////// 63 t_elePlot::t_elePlot(QWidget* parent, QMap< QString, t_availData>* availDataMap)63 t_elePlot::t_elePlot(QWidget* parent, QMap<t_prn, t_availData>* availDataMap) 64 64 : QwtPlot(parent) { 65 65 … … 84 84 if (numCurves > 0) { 85 85 int iC = 0; 86 QMapIterator< QString, t_availData > it(*availDataMap);86 QMapIterator<t_prn, t_availData > it(*availDataMap); 87 87 while (it.hasNext()) { 88 88 it.next(); 89 89 ++iC; 90 const QString& prn = it.key();90 QString prn = QString(it.key().toString().c_str()); 91 91 const t_availData& availData = it.value(); 92 92 -
trunk/BNC/src/rinex/eleplot.h
r4662 r6269 6 6 #include <qwt_symbol.h> 7 7 #include <qwt_plot_curve.h> 8 #include "t_prn.h" 8 9 9 10 class t_availData; … … 13 14 14 15 public: 15 t_elePlot(QWidget* parent, QMap< QString, t_availData>* availDataMap);16 t_elePlot(QWidget* parent, QMap<t_prn, t_availData>* availDataMap); 16 17 17 18 private: -
trunk/BNC/src/rinex/reqcanalyze.cpp
r6267 r6269 240 240 t_rnxObsFile::setObsFromRnx(obsFile, _currEpo, rnxSat, obs); 241 241 242 QString prn(obs._prn.toString().c_str());242 const t_prn& prn = obs._prn; 243 243 244 244 t_ephGlo* ephGlo = 0; 245 245 int slotNum = 0; 246 if ( obs._prn.system() == 'R') {246 if (prn.system() == 'R') { 247 247 for (int ie = 0; ie < _ephs.size(); ie++) { 248 if ( QString(_ephs[ie]->prn().toString().c_str()) == prn) {248 if (_ephs[ie]->prn() == prn) { 249 249 ephGlo = dynamic_cast<t_ephGlo*>(_ephs[ie]); 250 250 break; … … 295 295 QVector<t_polarPoint*>* dataSNR2 = new QVector<t_polarPoint*>; 296 296 297 QMutableMapIterator< QString, t_allObs> it(_allObsMap);297 QMutableMapIterator<t_prn, t_allObs> it(_allObsMap); 298 298 while (it.hasNext()) { 299 299 it.next(); 300 QString prn= it.key();300 const t_prn& prn = it.key(); 301 301 preparePlotData(prn, xyzSta, obsFile->interval(), 302 302 dataMP1, dataMP2, dataSNR1, dataSNR2); … … 455 455 // 456 456 //////////////////////////////////////////////////////////////////////////// 457 void t_reqcAnalyze::preparePlotData(const QString& prn,457 void t_reqcAnalyze::preparePlotData(const t_prn& prn, 458 458 const ColumnVector& xyzSta, 459 459 double obsInterval, … … 539 539 t_eph* eph = 0; 540 540 for (int ie = 0; ie < _ephs.size(); ie++) { 541 if ( QString(_ephs[ie]->prn().toString().c_str()) == prn) {541 if (_ephs[ie]->prn() == prn) { 542 542 eph = _ephs[ie]; 543 543 break; … … 609 609 // Compute the Multipath 610 610 // --------------------- 611 if ( (prn [0]== 'G' && plotGPS ) ||612 (prn [0]== 'R' && plotGlo && slotSet) ||613 (prn [0]== 'E' && plotGal ) ) {611 if ( (prn.system() == 'G' && plotGPS ) || 612 (prn.system() == 'R' && plotGlo && slotSet) || 613 (prn.system() == 'E' && plotGal ) ) { 614 614 bool slipMP = false; 615 615 meanMP1 /= numEpo; … … 680 680 // Signal-to-Noise Ratio Plot Data 681 681 // ------------------------------- 682 if ( (prn [0]== 'G' && plotGPS) ||683 (prn [0]== 'R' && plotGlo) ||684 (prn [0]== 'E' && plotGal) ) {682 if ( (prn.system() == 'G' && plotGPS) || 683 (prn.system() == 'R' && plotGlo) || 684 (prn.system() == 'E' && plotGal) ) { 685 685 (*dataSNR1) << (new t_polarPoint(aziDeg, zenDeg, minSNR1)); 686 686 (*dataSNR2) << (new t_polarPoint(aziDeg, zenDeg, minSNR2)); … … 802 802 int numSlipsFlagged = 0; 803 803 int numSlipsFound = 0; 804 QMapIterator< QString, t_prnStat> it(_obsStat._prnStat);804 QMapIterator<t_prn, t_prnStat> it(_obsStat._prnStat); 805 805 while (it.hasNext()) { 806 806 it.next(); -
trunk/BNC/src/rinex/reqcanalyze.h
r6137 r6269 77 77 QString _receiverType; 78 78 double _interval; 79 QMap< QString, t_prnStat> _prnStat;79 QMap<t_prn, t_prnStat> _prnStat; 80 80 }; 81 81 … … 155 155 156 156 void analyzeFile(t_rnxObsFile* obsFile); 157 void preparePlotData(const QString& prn, const ColumnVector& xyzSta,157 void preparePlotData(const t_prn& prn, const ColumnVector& xyzSta, 158 158 double obsInterval, 159 159 QVector<t_polarPoint*>* dataMP1, … … 169 169 QVector<t_polarPoint*>* dataSNR2); 170 170 171 QString 172 QFile* 173 QTextStream* 174 QStringList 175 QVector<t_rnxObsFile*> 176 QStringList 177 QVector<t_eph*> 178 t_rnxObsFile::t_rnxEpo* 179 QMap< QString, t_allObs> _allObsMap;180 QMap< QString, t_availData> _availDataMap;181 t_obsStat 182 QMutex 171 QString _logFileName; 172 QFile* _logFile; 173 QTextStream* _log; 174 QStringList _obsFileNames; 175 QVector<t_rnxObsFile*> _rnxObsFiles; 176 QStringList _navFileNames; 177 QVector<t_eph*> _ephs; 178 t_rnxObsFile::t_rnxEpo* _currEpo; 179 QMap<t_prn, t_allObs> _allObsMap; 180 QMap<t_prn, t_availData> _availDataMap; 181 t_obsStat _obsStat; 182 QMutex _mutex; 183 183 }; 184 184
Note:
See TracChangeset
for help on using the changeset viewer.