Changeset 3756 in ntrip


Ignore:
Timestamp:
Apr 1, 2012, 4:04:20 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/rinex
Files:
2 edited

Legend:

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

    r3752 r3756  
    4242#include "corrfile.h"
    4343#include "bncutils.h"
     44#include "bncephuser.h"
    4445
    4546using namespace std;
     
    8586    if (stopRead(tt)) {
    8687      if (corrs.size()) {
     88
     89        QListIterator<QString> it(corrs);
     90        while (it.hasNext()) {
     91          const QString& cLine = it.next();
     92          t_corr* corr = new t_corr();
     93          corr->readLine(cLine);
     94          if (corr->tRao.valid()) {
     95            _corrIODs[corr->prn] = corr->iod;
     96          }
     97        }
     98
    8799        emit newCorrections(corrs);
    88100      }
  • trunk/BNC/rinex/corrfile.h

    r3721 r3756  
    3737  ~t_corrFile();
    3838  void syncRead(const bncTime& tt);
     39  const QMap<QString, int>& corrIODs() const {return _corrIODs;}
    3940
    4041 signals:
     
    4344 private:
    4445  bool stopRead(const bncTime& tt);
    45   QFile*       _file;
    46   QTextStream* _stream;
    47   QString      _lastLine;
     46  QFile*             _file;
     47  QTextStream*       _stream;
     48  QString            _lastLine;
     49  QMap<QString, int> _corrIODs;
    4850};
    4951
Note: See TracChangeset for help on using the changeset viewer.