Changeset 3434 in ntrip for trunk/BNC/combination/bnccomb.cpp


Ignore:
Timestamp:
Sep 21, 2011, 6:34:08 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/combination/bnccomb.cpp

    r3433 r3434  
    196196    delete _params[iPar-1];
    197197  }
    198   QVectorIterator<cmbCorr*> itCorr(_corrs);
     198  QVectorIterator<cmbCorr*> itCorr(corrs());
    199199  while (itCorr.hasNext()) {
    200200    delete itCorr.next();
     
    281281  // ---------------------------
    282282  cmbCorr* existingCorr = 0;
    283   QVectorIterator<cmbCorr*> itCorr(_corrs);
     283  QVectorIterator<cmbCorr*> itCorr(corrs());
    284284  while (itCorr.hasNext()) {
    285285    cmbCorr* hlp = itCorr.next();
     
    294294  }
    295295  else {
    296     _corrs.append(newCorr);
     296    corrs().append(newCorr);
    297297  }
    298298}
     
    344344
    345345  int nPar = _params.size();
    346   int nObs = _corrs.size();
     346  int nObs = corrs().size();
    347347
    348348  if (nObs == 0) {
     
    363363    cmbAC* AC = icAC.next();
    364364    AC->numObs = 0;
    365     QVectorIterator<cmbCorr*> itCorr(_corrs);
     365    QVectorIterator<cmbCorr*> itCorr(corrs());
    366366    while (itCorr.hasNext()) {
    367367      cmbCorr* corr = itCorr.next();
     
    395395  QMap<QString, t_corr*> resCorr;
    396396
    397   QVectorIterator<cmbCorr*> itCorr(_corrs);
     397  QVectorIterator<cmbCorr*> itCorr(corrs());
    398398  while (itCorr.hasNext()) {
    399399    cmbCorr* corr = itCorr.next();
     
    457457    out << _resTime.datestr().c_str() << " " << _resTime.timestr().c_str()
    458458        << " Maximum Residuum " << maxRes << ' '
    459         << _corrs[maxResIndex-1]->acName << ' ' << _corrs[maxResIndex-1]->prn;
     459        << corrs()[maxResIndex-1]->acName << ' ' << corrs()[maxResIndex-1]->prn;
    460460
    461461    if (maxRes > _MAXRES) {
     
    463463        cmbParam* pp = _params[iPar-1];
    464464        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) {
    467467          QQ_sav.Row(iPar)    = 0.0;
    468468          QQ_sav.Column(iPar) = 0.0;
     
    511511  // Delete Data
    512512  // -----------
    513   QVectorIterator<cmbCorr*> it(_corrs);
    514   while (it.hasNext()) {
    515     delete it.next();
    516   }
    517   _corrs.clear();
     513  _buffer.remove(_resTime);
    518514}
    519515
Note: See TracChangeset for help on using the changeset viewer.