Changeset 3960 in ntrip for trunk/BNC/rinex


Ignore:
Timestamp:
Apr 20, 2012, 11:25:35 AM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/rinex
Files:
2 edited

Legend:

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

    r3956 r3960  
    595595      const QString& typeV2 = header._obsTypesV2[ii];
    596596      for (unsigned iSys = 0; iSys < systems.length(); iSys++) {
    597         char sys = systems[iSys];
    598         _header._obsTypesV3[sys].push_back( type2to3(sys, typeV2) );
     597        char    sys    = systems[iSys];
     598        QString typeV3 =  type2to3(sys, typeV2);
     599        if (!typeV3.isEmpty()) {
     600          _header._obsTypesV3[sys].push_back(typeV3);
     601          _indexMap2to3[sys][ii] = _header._obsTypesV3[sys].size() - 1;
     602        }
     603        else {
     604          _indexMap2to3[sys][ii] = -1;
     605        }
    599606      }
    600607    }
  • trunk/BNC/rinex/rnxobsfile.h

    r3956 r3960  
    141141  const t_rnxEpo* nextEpochV3();
    142142  void handleEpochFlag(int flag, const QString& line);
     143
    143144  QString type2to3(char sys, const QString& typeV2);
     145  QString type3to2(char sys, const QString& typeV3);
     146
     147  std::map<char, std::map<int, int> > _indexMap2to3;
     148  std::map<char, std::map<int, int> > _indexMap3to2;
    144149
    145150  e_inpOut       _inpOut;
Note: See TracChangeset for help on using the changeset viewer.