Changeset 4116 in ntrip
- Timestamp:
- May 5, 2012, 8:06:37 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/rnxobsfile.cpp
r4114 r4116 649 649 bncApp* app = (bncApp*) qApp; 650 650 651 QString runBy = app->userName(); 651 QString runBy = app->userName(); 652 QStringList comments; 653 652 654 QMapIterator<QString, QString> it(txtMap); 653 655 while (it.hasNext()) { 654 656 it.next(); 655 if (it.key() == "RUN BY") {657 if (it.key() == "RUN BY") { 656 658 runBy = it.value(); 659 } 660 else if (it.key() == "COMMENT") { 661 comments = it.value().split(QChar('\n'), QString::SkipEmptyParts); 657 662 } 658 663 } … … 669 674 .leftJustified(60) 670 675 << "PGM / RUN BY / DATE\n"; 676 677 QStringListIterator itCmnt(comments); 678 while (itCmnt.hasNext()) { 679 *_stream << itCmnt.next().leftJustified(60) << "COMMENT\n"; 680 } 671 681 672 682 *_stream << QString("%1")
Note:
See TracChangeset
for help on using the changeset viewer.