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


Ignore:
Timestamp:
Aug 12, 2012, 12:19:05 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4502 r4503  
    346346  }
    347347
     348  // A Few Additional Comments
     349  // -------------------------
     350  QStringList addComments;
     351  addComments << format.left(6) + " " + _mountPoint.host() + _mountPoint.path();
     352
     353  if (_nmea == "yes") {
     354    addComments << "NMEA LAT=" + _latitude + " " + "LONG=" + _longitude;
     355  }
     356
    348357  // Set Marker Name
    349358  // ---------------
     
    360369                        << "C2" << "P2" << "L2" << "S2";
    361370  }
    362 
    363   QStringList addComments;
    364371
    365372  // Set Default RINEX v3 Types
     
    398405  }
    399406
    400   // A few additional comments
    401   // -------------------------
    402   QMap<QString, QString> txtMap;
    403 
    404   addComments << format.left(6) + " " + _mountPoint.host() + _mountPoint.path();
    405 
    406   if (_nmea == "yes") {
    407     addComments << "NMEA LAT=" + _latitude + " " + "LONG=" + _longitude;
    408   }
    409 
    410   txtMap["COMMENT"] = addComments.join("\\n");
    411 
     407  // Write the Header
     408  // ----------------
    412409  QByteArray headerLines;
    413410  QTextStream outHlp(&headerLines);
     411
     412  QMap<QString, QString> txtMap;
     413  txtMap["COMMENT"] = addComments.join("\\n");
     414
    414415  _header.write(&outHlp, &txtMap);
     416
    415417  outHlp.flush();
    416418  _out << headerLines.data();
Note: See TracChangeset for help on using the changeset viewer.