Changeset 6245 in ntrip for trunk/BNC/src/rinex/rnxobsfile.cpp
- Timestamp:
- Oct 16, 2014, 11:09:35 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxobsfile.cpp
r6244 r6245 52 52 //////////////////////////////////////////////////////////////////////////// 53 53 t_rnxObsHeader::t_rnxObsHeader() { 54 _ defaultSystems = "GRES";54 _usedSystems = "GRES"; 55 55 _antNEU.ReSize(3); _antNEU = 0.0; 56 56 _antXYZ.ReSize(3); _antXYZ = 0.0; … … 165 165 int nTypes; 166 166 *in >> nTypes; 167 char sys0 = _ defaultSystems[0].toAscii();167 char sys0 = _usedSystems[0].toAscii(); 168 168 _obsTypes[sys0].clear(); 169 169 for (int ii = 0; ii < nTypes; ii++) { … … 177 177 _obsTypes[sys0].append(hlp); 178 178 } 179 for (int ii = 1; ii < _ defaultSystems.length(); ii++) {180 char sysI = _ defaultSystems[ii].toAscii();179 for (int ii = 1; ii < _usedSystems.length(); ii++) { 180 char sysI = _usedSystems[ii].toAscii(); 181 181 _obsTypes[sysI] = _obsTypes[sys0]; 182 182 } … … 213 213 break; 214 214 } 215 } 216 217 // Systems used 218 // ------------ 219 _usedSystems.clear(); 220 QMapIterator<char, QStringList> it(_obsTypes); 221 while (it.hasNext()) { 222 it.next(); 223 _usedSystems += QChar(it.key()); 215 224 } 216 225 … … 294 303 _startTime = header._startTime; 295 304 _comments = header._comments; 305 _usedSystems = header._usedSystems; 296 306 for (unsigned iPrn = 1; iPrn <= t_prn::MAXPRN_GPS; iPrn++) { 297 307 _wlFactorsL1[iPrn] = header._wlFactorsL1[iPrn]; … … 327 337 } 328 338 else { 329 for (int iSys = 0; iSys < t_rnxObsHeader::_defaultSystems.length(); iSys++) {330 char sys = t_rnxObsHeader::_defaultSystems[iSys].toAscii();339 for (int iSys = 0; iSys < _usedSystems.length(); iSys++) { 340 char sys = _usedSystems[iSys].toAscii(); 331 341 _obsTypes[sys].push_back(useObsTypes->at(iType)); 332 342 } 333 343 } 334 344 } 335 _ defaultSystems.clear();345 _usedSystems.clear(); 336 346 QMapIterator<char, QStringList> it(_obsTypes); 337 347 while (it.hasNext()) { 338 348 it.next(); 339 _ defaultSystems += QChar(it.key());349 _usedSystems += QChar(it.key()); 340 350 } 341 351 } … … 527 537 528 538 if (_version < 3.0) { 529 char sys0 = _ defaultSystems[0].toAscii();539 char sys0 = _usedSystems[0].toAscii(); 530 540 QString hlp; 531 541 QTextStream(&hlp) << QString("%1").arg(_obsTypes[sys0].size(), 6);
Note:
See TracChangeset
for help on using the changeset viewer.