Changeset 183 in ntrip for trunk/BNC/bncrinex.cpp


Ignore:
Timestamp:
Sep 24, 2006, 3:54:56 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncrinex.cpp

    r160 r183  
    161161  _nextCloseEpoch = QDateTime(nextDate, nextTime);
    162162
    163   path += _statID.left(4) +
     163  QString ID4 = _statID.left(4);
     164
     165  // Check name conflict
     166  // -------------------
     167  QString distStr;
     168  int num = 0;
     169  QListIterator<QString> it(settings.value("mountPoints").toStringList());
     170  while (it.hasNext()) {
     171    QString mp = it.next();
     172    if (mp.indexOf(ID4) != -1) {
     173      ++num;
     174    }
     175  }
     176  if (num > 1) {
     177    distStr = "_" + _statID.mid(4);
     178  }
     179
     180  path += ID4 +
    164181          QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) +
    165           hlpStr +
     182          hlpStr + distStr +
    166183          datTim.toString(".yyO");
    167184
Note: See TracChangeset for help on using the changeset viewer.