Changeset 6219 in ntrip for trunk/BNC/src
- Timestamp:
- Oct 9, 2014, 4:12:58 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxobsfile.cpp
r6218 r6219 409 409 } 410 410 else { 411 QMapIterator<char, QVector<QString> > it(_obsTypes); 412 while (it.hasNext()) { 413 it.next(); 414 char sys = it.key(); 415 const QVector<QString>& types = it.value(); 411 for (int iSys = 0; iSys < numSys(); iSys++) { 412 char sys = system(iSys); 416 413 QString hlp; 417 QTextStream(&hlp) << QString("%1 %2").arg(sys).arg(types.size(), 3); 418 for (int ii = 0; ii < types.size(); ii++) { 419 QTextStream(&hlp) << QString(" %1").arg(types[ii], -3); 420 if ((ii+1) % 13 == 0 || ii == types.size()-1) { 414 QTextStream(&hlp) << QString("%1 %2").arg(sys).arg(nTypes(sys), 3); 415 for (int iType = 0; iType < nTypes(sys); iType++) { 416 QString type = obsType(sys, iType, _version); 417 QTextStream(&hlp) << QString(" %1").arg(type, -3); 418 if ((iType+1) % 13 == 0 || iType == nTypes(sys)-1) { 421 419 strList.append(hlp.leftJustified(60) + "SYS / # / OBS TYPES\n"); 422 420 hlp = QString().leftJustified(6); … … 785 783 for (int iSys = 0; iSys < header.numSys(); iSys++) { 786 784 char sys = header.system(iSys); 787 for (int i Obs = 0; iObs < header.nTypes(sys); iObs++) {788 _header._obsTypes[sys].push_back(header.obsType(sys, i Obs, _header._version));785 for (int iType = 0; iType < header.nTypes(sys); iType++) { 786 _header._obsTypes[sys].push_back(header.obsType(sys, iType, _header._version)); 789 787 } 790 788 } … … 792 790 } 793 791 else { 794 for (int i Obs = 0; iObs < useObsTypes.size(); iObs++) {795 if (useObsTypes[i Obs].indexOf(":") != -1) {796 QStringList hlp = useObsTypes[i Obs].split(":", QString::SkipEmptyParts);792 for (int iType = 0; iType < useObsTypes.size(); iType++) { 793 if (useObsTypes[iType].indexOf(":") != -1) { 794 QStringList hlp = useObsTypes[iType].split(":", QString::SkipEmptyParts); 797 795 if (hlp.size() == 2 && hlp[0].length() == 1) { 798 796 char sys = hlp[0][0].toAscii(); … … 804 802 for (int iSys = 0; iSys < t_rnxObsHeader::defaultSystems.length(); iSys++) { 805 803 char sys = t_rnxObsHeader::defaultSystems[iSys].toAscii(); 806 _header._obsTypes[sys].push_back(useObsTypes[i Obs]);804 _header._obsTypes[sys].push_back(useObsTypes[iType]); 807 805 } 808 806 }
Note:
See TracChangeset
for help on using the changeset viewer.