Changeset 4000 in ntrip


Ignore:
Timestamp:
Apr 22, 2012, 11:31:06 AM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/rinex
Files:
3 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}
  • trunk/BNC/rinex/reqcedit.h

    r3999 r4000  
    2828#include <QtCore>
    2929#include "rnxobsfile.h"
     30#include "rnxnavfile.h"
     31#include "RTCM3/ephemeris.h"
    3032
    3133class t_reqcEdit : public QThread {
     
    6365  bncTime                _endTime;
    6466  QMap<QString, QMap<int, int> > _lli;
     67  QVector<t_eph*>        _ephs;
    6568};
    6669
  • trunk/BNC/rinex/rnxnavfile.h

    r3999 r4000  
    5757  ~t_rnxNavFile();
    5858  t_eph* getNextEph(const bncTime& tt, const QMap<QString, int>* corrIODs);
     59  const std::vector<t_eph*> ephs() const {return _ephs;}
    5960  float version() const {return _header.version();}
    6061  bool  glonass() const {return _header.glonass();}
Note: See TracChangeset for help on using the changeset viewer.