Changeset 552 in ntrip
- Timestamp:
- Oct 28, 2007, 10:24:04 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncrinex.cpp ¶
r546 r552 359 359 QString line = it.next(); 360 360 if (line.indexOf("PGM / RUN BY / DATE") != -1) { 361 QString hlp = QDate::currentDate().toString("dd-MMM-yyyy").leftJustified(20, ' ', true); 362 _out << _pgmName.toAscii().data() << _userName.toAscii().data() 363 << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl; 361 if (_rinexVers == 3) { 362 QString hlp = QDateTime::currentDateTime().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true); 363 _out << _pgmName.toAscii().data() << _userName.toAscii().data() 364 << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl; 365 } 366 else { 367 QString hlp = QDate::currentDate().toString("dd-MMM-yyyy").leftJustified(20, ' ', true); 368 _out << _pgmName.toAscii().data() << _userName.toAscii().data() 369 << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl; 370 } 364 371 } 365 372 else if (line.indexOf("# / TYPES OF OBSERV") != -1) { … … 395 402 if (_rinexVers == 3) { 396 403 _out << " 3.00 OBSERVATION DATA M (MIXED) RINEX VERSION / TYPE" << endl; 404 QString hlp = QDateTime::currentDateTime().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true); 405 _out << _pgmName.toAscii().data() << _userName.toAscii().data() 406 << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl; 397 407 } 398 408 else { 399 409 _out << " 2.11 OBSERVATION DATA M (MIXED) RINEX VERSION / TYPE" << endl; 400 }401 QString hlp = QDate::currentDate().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);402 _out << _pgmName.toAscii().data() <<_userName.toAscii().data()403 << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl;410 QString hlp = QDate::currentDate().toString("dd-MMM-yyyy").leftJustified(20, ' ', true); 411 _out << _pgmName.toAscii().data() << _userName.toAscii().data() 412 << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl; 413 } 404 414 _out.setf(ios::left); 405 415 _out << setw(60) << _statID.data() << "MARKER NAME" << endl; … … 432 442 " hh mm ss.zzz0000").toAscii().data(); 433 443 _out << " " << "TIME OF FIRST OBS" << endl; 434 hlp = (_format + QString(" %1").arg(_mountPoint.host() + 444 QString hlp = (_format + QString(" %1").arg(_mountPoint.host() + 435 445 _mountPoint.path())).leftJustified(60, ' ', true); 436 446 _out << hlp.toAscii().data() << "COMMENT" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.