Changeset 6244 in ntrip


Ignore:
Timestamp:
Oct 16, 2014, 11:04:37 AM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
2 edited

Legend:

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

    r6243 r6244  
    4949using namespace std;
    5050
    51 const QString t_rnxObsHeader::defaultSystems = "GRES";
    52 
    5351// Constructor
    5452////////////////////////////////////////////////////////////////////////////
    5553t_rnxObsHeader::t_rnxObsHeader() {
     54  _defaultSystems = "GRES";
    5655  _antNEU.ReSize(3); _antNEU = 0.0;
    5756  _antXYZ.ReSize(3); _antXYZ = 0.0;
     
    166165      int nTypes;
    167166      *in >> nTypes;
    168       char sys0 = defaultSystems[0].toAscii();
     167      char sys0 = _defaultSystems[0].toAscii();
    169168      _obsTypes[sys0].clear();
    170169      for (int ii = 0; ii < nTypes; ii++) {
     
    178177        _obsTypes[sys0].append(hlp);
    179178      }
    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();
    182181        _obsTypes[sysI] = _obsTypes[sys0];
    183182      }
     
    328327      }
    329328      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();
    332331          _obsTypes[sys].push_back(useObsTypes->at(iType));
    333332        }
    334333      }
     334    }
     335    _defaultSystems.clear();
     336    QMapIterator<char, QStringList> it(_obsTypes);
     337    while (it.hasNext()) {
     338      it.next();
     339      _defaultSystems += QChar(it.key());
    335340    }
    336341  }
     
    522527
    523528  if (_version < 3.0) {
    524     char sys0 = defaultSystems[0].toAscii();
     529    char sys0 = _defaultSystems[0].toAscii();
    525530    QString hlp;
    526531    QTextStream(&hlp) << QString("%1").arg(_obsTypes[sys0].size(), 6);
  • trunk/BNC/src/rinex/rnxobsfile.h

    r6241 r6244  
    6464 private:
    6565  QStringList obsTypesStrings() const;
     66  QString                 _defaultSystems;
    6667  double                  _version;
    6768  double                  _interval;
Note: See TracChangeset for help on using the changeset viewer.