Changeset 6244 in ntrip for trunk/BNC/src/rinex
- Timestamp:
- Oct 16, 2014, 11:04:37 AM (10 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxobsfile.cpp
r6243 r6244 49 49 using namespace std; 50 50 51 const QString t_rnxObsHeader::defaultSystems = "GRES";52 53 51 // Constructor 54 52 //////////////////////////////////////////////////////////////////////////// 55 53 t_rnxObsHeader::t_rnxObsHeader() { 54 _defaultSystems = "GRES"; 56 55 _antNEU.ReSize(3); _antNEU = 0.0; 57 56 _antXYZ.ReSize(3); _antXYZ = 0.0; … … 166 165 int nTypes; 167 166 *in >> nTypes; 168 char sys0 = defaultSystems[0].toAscii();167 char sys0 = _defaultSystems[0].toAscii(); 169 168 _obsTypes[sys0].clear(); 170 169 for (int ii = 0; ii < nTypes; ii++) { … … 178 177 _obsTypes[sys0].append(hlp); 179 178 } 180 for (int ii = 1; ii < defaultSystems.length(); ii++) {181 char sysI = defaultSystems[ii].toAscii();179 for (int ii = 1; ii < _defaultSystems.length(); ii++) { 180 char sysI = _defaultSystems[ii].toAscii(); 182 181 _obsTypes[sysI] = _obsTypes[sys0]; 183 182 } … … 328 327 } 329 328 else { 330 for (int iSys = 0; iSys < t_rnxObsHeader:: defaultSystems.length(); iSys++) {331 char sys = t_rnxObsHeader:: defaultSystems[iSys].toAscii();329 for (int iSys = 0; iSys < t_rnxObsHeader::_defaultSystems.length(); iSys++) { 330 char sys = t_rnxObsHeader::_defaultSystems[iSys].toAscii(); 332 331 _obsTypes[sys].push_back(useObsTypes->at(iType)); 333 332 } 334 333 } 334 } 335 _defaultSystems.clear(); 336 QMapIterator<char, QStringList> it(_obsTypes); 337 while (it.hasNext()) { 338 it.next(); 339 _defaultSystems += QChar(it.key()); 335 340 } 336 341 } … … 522 527 523 528 if (_version < 3.0) { 524 char sys0 = defaultSystems[0].toAscii();529 char sys0 = _defaultSystems[0].toAscii(); 525 530 QString hlp; 526 531 QTextStream(&hlp) << QString("%1").arg(_obsTypes[sys0].size(), 6); -
trunk/BNC/src/rinex/rnxobsfile.h
r6241 r6244 64 64 private: 65 65 QStringList obsTypesStrings() const; 66 QString _defaultSystems; 66 67 double _version; 67 68 double _interval;
Note:
See TracChangeset
for help on using the changeset viewer.