Changeset 4495 in ntrip for trunk/BNC/src/bncrinex.cpp


Ignore:
Timestamp:
Aug 4, 2012, 9:43:21 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4489 r4495  
    380380  // --------------------
    381381  readSkeleton();
     382  if (_header._markerName.isEmpty()) {
     383    _header._markerName = _statID;
     384  }
     385
     386  // A few additional comments
     387  // -------------------------
     388  QMap<QString, QString> txtMap;
     389  QStringList addComments;
     390
     391  addComments << format.left(6) + " " + _mountPoint.host() + _mountPoint.path();
     392
     393  if (_nmea == "yes") {
     394    addComments << "NMEA LAT=" + _latitude + " " + "LONG=" + _longitude;
     395  }
     396
     397  txtMap["COMMENT"] = addComments.join("\\n");
    382398
    383399  QByteArray headerLines;
    384400  QTextStream outHlp(&headerLines);
    385   _header.write(&outHlp);
     401  _header.write(&outHlp, &txtMap);
    386402  outHlp.flush();
    387403  _out << headerLines.data();
Note: See TracChangeset for help on using the changeset viewer.