Changeset 4000 in ntrip for trunk/BNC/rinex/reqcedit.cpp


Ignore:
Timestamp:
Apr 22, 2012, 11:31:06 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3999 r4000  
    4343#include "bncapp.h"
    4444#include "bncsettings.h"
    45 #include "rnxnavfile.h"
    4645
    4746using namespace std;
     
    222221void t_reqcEdit::editEphemerides() {
    223222
     223  // Read All Ephemerides
     224  // --------------------
    224225  QStringListIterator it(_navFileNames);
    225226  while (it.hasNext()) {
    226227    QString fileName = it.next();
    227228    t_rnxNavFile rnxNavFile(fileName, t_rnxNavFile::input);
    228   }
    229 
    230 }
     229    for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) {
     230      t_eph*    eph = rnxNavFile.ephs()[ii];
     231      t_ephGPS* ephGPS = dynamic_cast<t_ephGPS*>(eph);
     232      t_ephGlo* ephGlo = dynamic_cast<t_ephGlo*>(eph);
     233      t_ephGal* ephGal = dynamic_cast<t_ephGal*>(eph);
     234      if      (ephGPS) {
     235        _ephs.append(new t_ephGPS(*ephGPS));
     236      }
     237      else if (ephGlo) {
     238        _ephs.append(new t_ephGlo(*ephGlo));
     239      }
     240      else if (ephGal) {
     241        _ephs.append(new t_ephGal(*ephGal));
     242      }
     243    }
     244  }
     245
     246}
Note: See TracChangeset for help on using the changeset viewer.