Changeset 10091 in ntrip for trunk/BNC/src/bnccore.cpp


Ignore:
Timestamp:
Jun 16, 2023, 6:51:52 AM (11 months ago)
Author:
stuerze
Message:

same changes for future developments towards station individual navigation files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnccore.cpp

    r10073 r10091  
    226226#endif
    227227  printEphHeader();
     228  //printEphHeader(eph->receptStaID());
    228229  printEph(*eph, (ircPut == success));
    229230  return success;
     
    272273// Print Header of the output File(s)
    273274////////////////////////////////////////////////////////////////////////////
    274 void t_bncCore::printEphHeader() {
     275void t_bncCore::printEphHeader(QString receptStaID) {
    275276
    276277  bncSettings settings;
    277278  QStringList comments;
     279  bool separateFiles = false;// Qt::CheckState(settings.value("ephFilePerStation").toInt());
    278280
    279281  QListIterator<QString> it(settings.value("mountPoints").toStringList());
     
    284286    QUrl url(hlp[0]);
    285287    QString decoder = hlp[1];
    286     comments.append("Source: " + decoder +
    287                     " " + QUrl::toAce(url.host()) +
    288                     "/" + url.path().mid(1).toLatin1());
     288    if (!separateFiles) {
     289      comments.append("Source: " + decoder +
     290                      " " + QUrl::toAce(url.host()) +
     291                      "/" + url.path().mid(1).toLatin1());
     292    }
    289293  }
    290294
     
    311315    QDateTime datTim = currentDateAndTimeGPS();
    312316
    313     QString ephFileNameGPS = _ephPath + "BRDC";
     317    QString ephFileNameGPS = _ephPath; // + "BRDC";
     318
     319    (separateFiles) ?  ephFileNameGPS += receptStaID.left(4) :
     320                       ephFileNameGPS += "BRDC";
    314321
    315322    QString hlpStr = bncRinex::nextEpochStr(datTim,
     
    320327      QString monNum = "0";
    321328      QString recNum = "0";
     329      if (separateFiles && receptStaID.size() >= 9) {
     330        monNum = receptStaID.mid(4,1);
     331        recNum = receptStaID.mid(5,1);
     332        country = receptStaID.mid(6,3);
     333      }
    322334      ephFileNameGPS += QString("%1").arg(monNum, 1, 10) +
    323335                        QString("%1").arg(recNum, 1, 10) +
Note: See TracChangeset for help on using the changeset viewer.