Changeset 6130 in ntrip for trunk/BNC/src/rinex/rnxobsfile.cpp
- Timestamp:
- Sep 11, 2014, 7:06:45 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxobsfile.cpp
r6127 r6130 342 342 } 343 343 344 // 345 //////////////////////////////////////////////////////////////////////////// 346 char t_rnxObsHeader::system(int iSys) const { 347 int iSysLocal = -1; 348 QMapIterator<char, QVector<QString> > it(_obsTypes); 349 while (it.hasNext()) { 350 ++iSysLocal; 351 it.next(); 352 if (iSysLocal == iSys) { 353 return it.key(); 354 } 355 } 356 return ' '; 357 } 358 344 359 // Number of Observation Types (satellite-system specific) 345 360 //////////////////////////////////////////////////////////////////////////// … … 1021 1036 } 1022 1037 1023 // Check for Changes in Header1024 ////////////////////////////////////////////////////////////////////////////1025 void t_rnxObsFile::checkNewHeader(const t_rnxObsHeader& header) {1026 1027 t_rnxObsHeader oldHeader(_header);1028 setHeader(header, oldHeader._version, QStringList());1029 1030 // Check Observation Types1031 // -----------------------1032 bool same = true;1033 QMapIterator<char, QVector<QString> > it(_header._obsTypes);1034 while (it.hasNext()) {1035 it.next();1036 char sys = it.key();1037 const QVector<QString>& types = it.value();1038 if (!oldHeader._obsTypes.contains(sys) || oldHeader._obsTypes[sys] != types) {1039 same = false;1040 break;1041 }1042 }1043 1044 if (!same) {1045 QStringList strLst = _header.obsTypesStrings();1046 if (_header._version < 3.0) {1047 *_stream << QString().leftJustified(26);1048 }1049 else {1050 *_stream << '>' << QString().leftJustified(28);1051 }1052 *_stream << QString(" 4%1\n").arg(strLst.size(), 3)1053 << strLst.join("");1054 }1055 }1056 1057 1038 // Set Observations from RINEX File 1058 1039 //////////////////////////////////////////////////////////////////////////// … … 1062 1043 t_obs& obs) { 1063 1044 1064 strncpy(obs.StatID, rnxObsFile->markerName().toAscii().constData(), 1065 sizeof(obs.StatID)); 1045 strncpy(obs.StatID, rnxObsFile->markerName().toAscii().constData(), sizeof(obs.StatID)); 1066 1046 1067 1047 obs.satSys = rnxSat.prn.system();
Note:
See TracChangeset
for help on using the changeset viewer.