Changeset 3434 in ntrip
- Timestamp:
- Sep 21, 2011, 6:34:08 PM (13 years ago)
- Location:
- trunk/BNC/combination
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/combination/bnccomb.cpp
r3433 r3434 196 196 delete _params[iPar-1]; 197 197 } 198 QVectorIterator<cmbCorr*> itCorr( _corrs);198 QVectorIterator<cmbCorr*> itCorr(corrs()); 199 199 while (itCorr.hasNext()) { 200 200 delete itCorr.next(); … … 281 281 // --------------------------- 282 282 cmbCorr* existingCorr = 0; 283 QVectorIterator<cmbCorr*> itCorr( _corrs);283 QVectorIterator<cmbCorr*> itCorr(corrs()); 284 284 while (itCorr.hasNext()) { 285 285 cmbCorr* hlp = itCorr.next(); … … 294 294 } 295 295 else { 296 _corrs.append(newCorr);296 corrs().append(newCorr); 297 297 } 298 298 } … … 344 344 345 345 int nPar = _params.size(); 346 int nObs = _corrs.size();346 int nObs = corrs().size(); 347 347 348 348 if (nObs == 0) { … … 363 363 cmbAC* AC = icAC.next(); 364 364 AC->numObs = 0; 365 QVectorIterator<cmbCorr*> itCorr( _corrs);365 QVectorIterator<cmbCorr*> itCorr(corrs()); 366 366 while (itCorr.hasNext()) { 367 367 cmbCorr* corr = itCorr.next(); … … 395 395 QMap<QString, t_corr*> resCorr; 396 396 397 QVectorIterator<cmbCorr*> itCorr( _corrs);397 QVectorIterator<cmbCorr*> itCorr(corrs()); 398 398 while (itCorr.hasNext()) { 399 399 cmbCorr* corr = itCorr.next(); … … 457 457 out << _resTime.datestr().c_str() << " " << _resTime.timestr().c_str() 458 458 << " Maximum Residuum " << maxRes << ' ' 459 << _corrs[maxResIndex-1]->acName << ' ' << _corrs[maxResIndex-1]->prn;459 << corrs()[maxResIndex-1]->acName << ' ' << corrs()[maxResIndex-1]->prn; 460 460 461 461 if (maxRes > _MAXRES) { … … 463 463 cmbParam* pp = _params[iPar-1]; 464 464 if (pp->type == cmbParam::offACSat && 465 pp->AC == _corrs[maxResIndex-1]->acName &&466 pp->prn == _corrs[maxResIndex-1]->prn) {465 pp->AC == corrs()[maxResIndex-1]->acName && 466 pp->prn == corrs()[maxResIndex-1]->prn) { 467 467 QQ_sav.Row(iPar) = 0.0; 468 468 QQ_sav.Column(iPar) = 0.0; … … 511 511 // Delete Data 512 512 // ----------- 513 QVectorIterator<cmbCorr*> it(_corrs); 514 while (it.hasNext()) { 515 delete it.next(); 516 } 517 _corrs.clear(); 513 _buffer.remove(_resTime); 518 514 } 519 515 -
trunk/BNC/combination/bnccomb.h
r3433 r3434 48 48 } 49 49 ~cmbAC() {} 50 QString 51 QString 52 double 53 unsigned 50 QString mountPoint; 51 QString name; 52 double weight; 53 unsigned numObs; 54 54 }; 55 55 … … 59 59 }; 60 60 61 class cmbEpoch { 62 public: 63 cmbEpoch() {} 64 ~cmbEpoch() { 65 QVectorIterator<cmbCorr*> it(corrs); 66 while (it.hasNext()) { 67 delete it.next(); 68 } 69 } 70 QVector<cmbCorr*> corrs; 71 }; 72 61 73 void processEpoch(); 62 74 void dumpResults(const QMap<QString, t_corr*>& resCorr); … … 64 76 void switchToLastEph(const t_eph* lastEph, t_corr* corr); 65 77 66 QList<cmbAC*> _ACs; 67 bncTime _resTime; 68 QVector<cmbParam*> _params; 69 QVector<cmbCorr*> _corrs; 70 bncRtnetDecoder* _rtnetDecoder; 71 SymmetricMatrix _QQ; 72 bool _firstReg; 73 QByteArray _log; 74 bncAntex* _antex; 75 double _MAXRES; 78 QVector<cmbCorr*>& corrs() {return _buffer[_resTime].corrs;} 79 80 QList<cmbAC*> _ACs; 81 bncTime _resTime; 82 QVector<cmbParam*> _params; 83 QMap<bncTime, cmbEpoch> _buffer; 84 bncRtnetDecoder* _rtnetDecoder; 85 SymmetricMatrix _QQ; 86 bool _firstReg; 87 QByteArray _log; 88 bncAntex* _antex; 89 double _MAXRES; 76 90 }; 77 91
Note:
See TracChangeset
for help on using the changeset viewer.