Changeset 6130 in ntrip for trunk/BNC/src/rinex/rnxobsfile.cpp


Ignore:
Timestamp:
Sep 11, 2014, 7:06:45 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/rnxobsfile.cpp

    r6127 r6130  
    342342}
    343343
     344//
     345////////////////////////////////////////////////////////////////////////////
     346char 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
    344359// Number of Observation Types (satellite-system specific)
    345360////////////////////////////////////////////////////////////////////////////
     
    10211036}
    10221037
    1023 // Check for Changes in Header
    1024 ////////////////////////////////////////////////////////////////////////////
    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 Types
    1031   // -----------------------
    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 
    10571038// Set Observations from RINEX File
    10581039////////////////////////////////////////////////////////////////////////////
     
    10621043                                 t_obs& obs) {
    10631044
    1064   strncpy(obs.StatID, rnxObsFile->markerName().toAscii().constData(),
    1065           sizeof(obs.StatID));
     1045  strncpy(obs.StatID, rnxObsFile->markerName().toAscii().constData(), sizeof(obs.StatID));
    10661046
    10671047  obs.satSys   = rnxSat.prn.system();
Note: See TracChangeset for help on using the changeset viewer.