Changeset 6529 in ntrip for trunk


Ignore:
Timestamp:
Dec 30, 2014, 6:26:22 PM (9 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
2 edited

Legend:

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

    r6528 r6529  
    4141#include <iostream>
    4242#include <iomanip>
    43 #include <sstream>
    4443#include <qwt_plot_renderer.h>
    4544
     
    102101void t_reqcAnalyze::run() {
    103102
     103  static const double QC_FORMAT_VERSION = 1.0;
     104
    104105  // Open Log File
    105106  // -------------
     
    109110    _log->setDevice(_logFile);
    110111  }
     112  *_log << "QC Format Version : " << QString("%1").arg(QC_FORMAT_VERSION,3,'f',1)  << endl << endl;
    111113
    112114  // Check Ephemerides
     
    121123  // ----------------
    122124  t_reqcEdit::readEphemerides(_navFileNames, _ephs);
    123 
    124   QString navFileName;
    125   QStringListIterator namIt(_navFileNames);
    126   bool firstName = true;
    127   while (namIt.hasNext()) {
    128     QFileInfo navFi(namIt.next());
    129     if (firstName) {
    130       firstName = false;
    131       navFileName += navFi.fileName();
    132     }
    133     else {
    134       navFileName += ", " + navFi.fileName();
    135     }
    136   }
    137 
    138   static const double QC_FORMAT_VERSION = 1.0;
    139 
    140   *_log << "QC Format Version : " << QString("%1").arg(QC_FORMAT_VERSION,3,'f',1)  << endl << endl
    141         << "Navigation File(s): " << navFileName                                   << endl;
    142 
    143   *_log << _ephMsg.c_str() << endl;
    144125
    145126  // Loop over all RINEX Files
     
    10191000void t_reqcAnalyze::checkEphemerides() {
    10201001
    1021   ostringstream out;
     1002  QString navFileName;
     1003  QStringListIterator namIt(_navFileNames);
     1004  bool firstName = true;
     1005  while (namIt.hasNext()) {
     1006    QFileInfo navFi(namIt.next());
     1007    if (firstName) {
     1008      firstName = false;
     1009      navFileName += navFi.fileName();
     1010    }
     1011    else {
     1012      navFileName += ", " + navFi.fileName();
     1013    }
     1014  }
     1015
     1016  *_log << "Navigation File(s): " << navFileName                                   << endl;
    10221017
    10231018  QStringListIterator it(_navFileNames);
     
    10381033      }
    10391034    }
    1040     out << "Ephemeris         : " << numOK << " OK   " << numBad << " BAD" << endl;
     1035    *_log << "Ephemeris         : " << numOK << " OK   " << numBad << " BAD" << endl;
    10411036    if (numBad > 0) {
    10421037      for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) {
    10431038        t_eph* eph = rnxNavFile.ephs()[ii];
    10441039        if (eph->checkState() == t_eph::bad) {
    1045           out << "  Bad Ephemeris   : " << fileName.toAscii().data() << ' '
    1046               << eph->prn().toString() << ' '
    1047               << eph->TOC().datestr(' ') << ' '
    1048               << eph->TOC().timestr(1, ' ') << endl;
    1049         }
    1050       }
    1051     }
    1052   }
    1053 
    1054   _ephMsg = out.str();
    1055 }
     1040          QFileInfo navFi(fileName);
     1041          *_log << "  Bad Ephemeris   : " << navFi.fileName() << ' '
     1042                << eph->prn().toString() << ' '
     1043                << eph->TOC().datestr(' ').c_str() << ' '
     1044                << eph->TOC().timestr(1, ' ').c_str() << endl;
     1045        }
     1046      }
     1047    }
     1048  }
     1049}
  • trunk/BNC/src/rinex/reqcanalyze.h

    r6527 r6529  
    2626#define REQCANALYZE_H
    2727
    28 #include <string>
    2928#include <QtCore>
    3029#include "rnxobsfile.h"
     
    189188  t_rnxObsFile::t_rnxEpo* _currEpo;
    190189  t_qcFile                _qcFile;
    191   std::string             _ephMsg;
    192190};
    193191
Note: See TracChangeset for help on using the changeset viewer.