Changeset 6125 in ntrip for trunk/BNC/src
- Timestamp:
- Sep 11, 2014, 3:10:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxobsfile.cpp
r6124 r6125 162 162 int nTypes; 163 163 *in >> nTypes; 164 char sys = defaultSystems[0].toAscii();165 _obsTypes[sys ].clear();164 char sys0 = defaultSystems[0].toAscii(); 165 _obsTypes[sys0].clear(); 166 166 for (int ii = 0; ii < nTypes; ii++) { 167 167 if (ii > 0 && ii % 9 == 0) { … … 172 172 QString hlp; 173 173 *in >> hlp; 174 _obsTypes[sys ].append(hlp);174 _obsTypes[sys0].append(hlp); 175 175 } 176 176 for (int ii = 1; ii < defaultSystems.length(); ii++) { 177 char sys = defaultSystems[ii].toAscii();178 _obsTypes[sys ] = _obsTypes[0];177 char sysI = defaultSystems[ii].toAscii(); 178 _obsTypes[sysI] = _obsTypes[sys0]; 179 179 } 180 180 } … … 371 371 372 372 if (_version < 3.0) { 373 char sys = defaultSystems[0].toAscii();373 char sys0 = defaultSystems[0].toAscii(); 374 374 QString hlp; 375 QTextStream(&hlp) << QString("%1").arg(_obsTypes[sys ].size(), 6);376 for (int ii = 0; ii < _obsTypes[sys ].size(); ii++) {377 QTextStream(&hlp) << QString("%1").arg(_obsTypes[sys ][ii], 6);378 if ((ii+1) % 9 == 0 || ii == _obsTypes[sys ].size()-1) {375 QTextStream(&hlp) << QString("%1").arg(_obsTypes[sys0].size(), 6); 376 for (int ii = 0; ii < _obsTypes[sys0].size(); ii++) { 377 QTextStream(&hlp) << QString("%1").arg(_obsTypes[sys0][ii], 6); 378 if ((ii+1) % 9 == 0 || ii == _obsTypes[sys0].size()-1) { 379 379 strList.append(hlp.leftJustified(60) + "# / TYPES OF OBSERV\n"); 380 380 hlp = QString().leftJustified(6); … … 755 755 else { 756 756 if (_header._version < 3.0) { 757 char sys = t_rnxObsHeader::defaultSystems[0].toAscii();757 char sys0 = t_rnxObsHeader::defaultSystems[0].toAscii(); 758 758 for (int ii = 0; ii < useObsTypes.size(); ii++) { 759 _header._obsTypes[sys ].push_back(useObsTypes[ii]);759 _header._obsTypes[sys0].push_back(useObsTypes[ii]); 760 760 } 761 761 for (int ii = 1; ii < t_rnxObsHeader::defaultSystems.length(); ii++) { 762 char sys = t_rnxObsHeader::defaultSystems[ii].toAscii();763 _header._obsTypes[sys ] = _header._obsTypes[0];762 char sysI = t_rnxObsHeader::defaultSystems[ii].toAscii(); 763 _header._obsTypes[sysI] = _header._obsTypes[sys0]; 764 764 } 765 765 }
Note:
See TracChangeset
for help on using the changeset viewer.