Changeset 4116 in ntrip for trunk/BNC


Ignore:
Timestamp:
May 5, 2012, 8:06:37 AM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/rnxobsfile.cpp

    r4114 r4116  
    649649  bncApp* app = (bncApp*) qApp;
    650650
    651   QString runBy = app->userName();
     651  QString     runBy = app->userName();
     652  QStringList comments;
     653
    652654  QMapIterator<QString, QString> it(txtMap);
    653655  while (it.hasNext()) {
    654656    it.next();
    655     if (it.key() == "RUN BY") {
     657    if      (it.key() == "RUN BY") {
    656658      runBy = it.value();
     659    }
     660    else if (it.key() == "COMMENT") {
     661      comments = it.value().split(QChar('\n'), QString::SkipEmptyParts);
    657662    }
    658663  }
     
    669674    .leftJustified(60)
    670675           << "PGM / RUN BY / DATE\n";
     676
     677  QStringListIterator itCmnt(comments);
     678  while (itCmnt.hasNext()) {
     679    *_stream << itCmnt.next().leftJustified(60) << "COMMENT\n";
     680  }
    671681
    672682  *_stream << QString("%1")
Note: See TracChangeset for help on using the changeset viewer.