Changeset 6269 in ntrip


Ignore:
Timestamp:
Oct 31, 2014, 11:08:55 AM (9 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
6 edited

Legend:

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

    r6261 r6269  
    7272//////////////////////////////////////////////////////////////////////////////
    7373t_availPlot::t_availPlot(QWidget* parent,
    74                         QMap<QString, t_availData>* availDataMap)
     74                        QMap<t_prn, t_availData>* availDataMap)
    7575: QwtPlot(parent) {
    7676
     
    116116  // ------
    117117  int iC = 0;
    118   QMapIterator<QString, t_availData > it(*availDataMap);
     118  QMapIterator<t_prn, t_availData > it(*availDataMap);
    119119  while (it.hasNext()) {
    120120    it.next();
    121121    ++iC;
    122     const QString&         prn       = it.key();
    123     const t_availData&     availData = it.value();
     122    QString            prn       = QString(it.key().toString().c_str());
     123    const t_availData& availData = it.value();
    124124
    125125    scaleDrawPrn->_yLabels[iC] = prn;
  • trunk/BNC/src/rinex/availplot.h

    r4669 r6269  
    66#include <qwt_symbol.h>
    77#include <qwt_plot_curve.h>
     8#include "t_prn.h"
    89
    910class t_availData;
     
    1314
    1415public:
    15   t_availPlot(QWidget* parent, QMap<QString, t_availData>* availDataMap);
     16  t_availPlot(QWidget* parent, QMap<t_prn, t_availData>* availDataMap);
    1617
    1718private:
  • trunk/BNC/src/rinex/eleplot.cpp

    r6261 r6269  
    6161// Constructor
    6262//////////////////////////////////////////////////////////////////////////////
    63 t_elePlot::t_elePlot(QWidget* parent, QMap<QString, t_availData>* availDataMap)
     63t_elePlot::t_elePlot(QWidget* parent, QMap<t_prn, t_availData>* availDataMap)
    6464: QwtPlot(parent) {
    6565
     
    8484  if (numCurves > 0) {
    8585    int iC = 0;
    86     QMapIterator<QString, t_availData > it(*availDataMap);
     86    QMapIterator<t_prn, t_availData > it(*availDataMap);
    8787    while (it.hasNext()) {
    8888      it.next();
    8989      ++iC;
    90       const QString&     prn       = it.key();
     90      QString            prn       = QString(it.key().toString().c_str());
    9191      const t_availData& availData = it.value();
    9292   
  • trunk/BNC/src/rinex/eleplot.h

    r4662 r6269  
    66#include <qwt_symbol.h>
    77#include <qwt_plot_curve.h>
     8#include "t_prn.h"
    89
    910class t_availData;
     
    1314
    1415public:
    15   t_elePlot(QWidget* parent, QMap<QString, t_availData>* availDataMap);
     16  t_elePlot(QWidget* parent, QMap<t_prn, t_availData>* availDataMap);
    1617
    1718private:
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r6267 r6269  
    240240        t_rnxObsFile::setObsFromRnx(obsFile, _currEpo, rnxSat, obs);
    241241
    242         QString prn(obs._prn.toString().c_str());
     242        const t_prn& prn = obs._prn;
    243243
    244244        t_ephGlo* ephGlo  = 0;
    245245        int       slotNum = 0;
    246         if (obs._prn.system() == 'R') {
     246        if (prn.system() == 'R') {
    247247          for (int ie = 0; ie < _ephs.size(); ie++) {
    248             if (QString(_ephs[ie]->prn().toString().c_str()) == prn) {
     248            if (_ephs[ie]->prn() == prn) {
    249249              ephGlo = dynamic_cast<t_ephGlo*>(_ephs[ie]);
    250250              break;
     
    295295  QVector<t_polarPoint*>* dataSNR2 = new QVector<t_polarPoint*>;
    296296
    297   QMutableMapIterator<QString, t_allObs> it(_allObsMap);
     297  QMutableMapIterator<t_prn, t_allObs> it(_allObsMap);
    298298  while (it.hasNext()) {
    299299    it.next();
    300     QString    prn    = it.key();
     300    const t_prn& prn = it.key();
    301301    preparePlotData(prn, xyzSta, obsFile->interval(),
    302302                    dataMP1, dataMP2, dataSNR1, dataSNR2);
     
    455455//
    456456////////////////////////////////////////////////////////////////////////////
    457 void t_reqcAnalyze::preparePlotData(const QString& prn,
     457void t_reqcAnalyze::preparePlotData(const t_prn& prn,
    458458                                    const ColumnVector& xyzSta,
    459459                                    double obsInterval,
     
    539539          t_eph* eph = 0;
    540540          for (int ie = 0; ie < _ephs.size(); ie++) {
    541             if (QString(_ephs[ie]->prn().toString().c_str()) == prn) {
     541            if (_ephs[ie]->prn() == prn) {
    542542              eph = _ephs[ie];
    543543              break;
     
    609609    // Compute the Multipath
    610610    // ---------------------
    611     if ( (prn[0] == 'G' && plotGPS           ) ||
    612          (prn[0] == 'R' && plotGlo && slotSet) ||
    613          (prn[0] == 'E' && plotGal           ) ) {
     611    if ( (prn.system() == 'G' && plotGPS           ) ||
     612         (prn.system() == 'R' && plotGlo && slotSet) ||
     613         (prn.system() == 'E' && plotGal           ) ) {
    614614      bool slipMP = false;
    615615      meanMP1 /= numEpo;
     
    680680    // Signal-to-Noise Ratio Plot Data
    681681    // -------------------------------
    682     if ( (prn[0] == 'G' && plotGPS) ||
    683          (prn[0] == 'R' && plotGlo) ||
    684          (prn[0] == 'E' && plotGal) ) {
     682    if ( (prn.system() == 'G' && plotGPS) ||
     683         (prn.system() == 'R' && plotGlo) ||
     684         (prn.system() == 'E' && plotGal) ) {
    685685      (*dataSNR1) << (new t_polarPoint(aziDeg, zenDeg, minSNR1));
    686686      (*dataSNR2) << (new t_polarPoint(aziDeg, zenDeg, minSNR2));
     
    802802  int numSlipsFlagged = 0;
    803803  int numSlipsFound   = 0;
    804   QMapIterator<QString, t_prnStat> it(_obsStat._prnStat);
     804  QMapIterator<t_prn, t_prnStat> it(_obsStat._prnStat);
    805805  while (it.hasNext()) {
    806806    it.next();
  • trunk/BNC/src/rinex/reqcanalyze.h

    r6137 r6269  
    7777  QString         _receiverType;
    7878  double          _interval;
    79   QMap<QString, t_prnStat> _prnStat;
     79  QMap<t_prn, t_prnStat> _prnStat;
    8080};
    8181
     
    155155
    156156  void analyzeFile(t_rnxObsFile* obsFile);
    157   void preparePlotData(const QString& prn, const ColumnVector& xyzSta,
     157  void preparePlotData(const t_prn& prn, const ColumnVector& xyzSta,
    158158                       double obsInterval,
    159159                       QVector<t_polarPoint*>* dataMP1,
     
    169169                   QVector<t_polarPoint*>* dataSNR2);
    170170
    171   QString                    _logFileName;
    172   QFile*                     _logFile;
    173   QTextStream*               _log;
    174   QStringList                _obsFileNames;
    175   QVector<t_rnxObsFile*>     _rnxObsFiles;
    176   QStringList                _navFileNames;
    177   QVector<t_eph*>            _ephs;
    178   t_rnxObsFile::t_rnxEpo*    _currEpo;
    179   QMap<QString, t_allObs>    _allObsMap;
    180   QMap<QString, t_availData> _availDataMap;
    181   t_obsStat                  _obsStat;
    182   QMutex                     _mutex;
     171  QString                  _logFileName;
     172  QFile*                   _logFile;
     173  QTextStream*             _log;
     174  QStringList              _obsFileNames;
     175  QVector<t_rnxObsFile*>   _rnxObsFiles;
     176  QStringList              _navFileNames;
     177  QVector<t_eph*>          _ephs;
     178  t_rnxObsFile::t_rnxEpo*  _currEpo;
     179  QMap<t_prn, t_allObs>    _allObsMap;
     180  QMap<t_prn, t_availData> _availDataMap;
     181  t_obsStat                _obsStat;
     182  QMutex                   _mutex;
    183183};
    184184
Note: See TracChangeset for help on using the changeset viewer.