Changeset 8000 in ntrip for branches/BNC_2.12/src/bnccore.cpp


Ignore:
Timestamp:
Aug 8, 2016, 5:11:40 PM (8 years ago)
Author:
stuerze
Message:

some informations about the data source of RINEX navigation files is added into the RINEX header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bnccore.cpp

    r7856 r8000  
    259259
    260260  bncSettings settings;
     261    QStringList comments;
     262
     263  QListIterator<QString> it(settings.value("mountPoints").toStringList());
     264  while (it.hasNext()) {
     265    QStringList hlp = it.next().split(" ");
     266    if (hlp.size() < 7)
     267      continue;
     268    QUrl url(hlp[0]);
     269    QString decoder = hlp[1];
     270    comments.append("Source: " + decoder +
     271                    " " + url.encodedHost() +
     272                    "/" + url.path().mid(1).toAscii());
     273  }
    261274
    262275  // Initialization
     
    384397                       << "PGM / RUN BY / DATE" << endl;
    385398
     399        QStringListIterator it(comments);
     400        while (it.hasNext()) {
     401          *_ephStreamGPS << it.next().trimmed().left(60).leftJustified(60) << "COMMENT\n";
     402        }
     403       
    386404        line.sprintf("%60sEND OF HEADER\n", "");
    387405        *_ephStreamGPS << line;
     
    406424                       << "PGM / RUN BY / DATE" << endl;
    407425
     426        QStringListIterator it(comments);
     427        while (it.hasNext()) {
     428          *_ephStreamGPS << it.next().trimmed().left(60).leftJustified(60) << "COMMENT\n";
     429        }
     430       
    408431        line.sprintf("%60sEND OF HEADER\n", "");
    409432        *_ephStreamGPS << line;
     
    422445                           << hlp.toAscii().data()
    423446                           << "PGM / RUN BY / DATE" << endl;
     447
     448        QStringListIterator it(comments);
     449        while (it.hasNext()) {
     450          *_ephStreamGlonass << it.next().trimmed().left(60).leftJustified(60) << "COMMENT\n";
     451        }
    424452
    425453        line.sprintf("%60sEND OF HEADER\n", "");
Note: See TracChangeset for help on using the changeset viewer.