Changeset 6527 in ntrip


Ignore:
Timestamp:
Dec 30, 2014, 5:24:13 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

    r6525 r6527  
    4141#include <iostream>
    4242#include <iomanip>
     43#include <sstream>
    4344#include <qwt_plot_renderer.h>
    4445
     
    819820  // -------
    820821  *_log << "QC Format Version : " << QString("%1").arg(QC_FORMAT_VERSION,3,'f',1)  << endl << endl
    821         << "Observation File  : " << obsFileName                                   << endl
    822         << "Navigation File(s): " << navFileName                                   << endl
     822        << "Navigation File(s): " << navFileName                                   << endl;
     823  if (!_ephMsg.empty()) {
     824    *_log << _ephMsg.c_str();
     825    _ephMsg.clear();
     826  }
     827  *_log << "Observation File  : " << obsFileName                                   << endl
    823828        << "RINEX Version     : " << QString("%1").arg(obsFile->version(),4,'f',2) << endl
    824829        << "Marker Name       : " << _qcFile._markerName                           << endl
     
    10141019////////////////////////////////////////////////////////////////////////////
    10151020void t_reqcAnalyze::checkEphemerides() {
     1021
     1022  ostringstream out;
     1023
    10161024  QStringListIterator it(_navFileNames);
    10171025  while (it.hasNext()) {
    10181026    const QString& fileName = it.next();
    1019     *_log << "! Ephemeris Check: " << fileName << endl;
    10201027    unsigned numOK  = 0;
    10211028    unsigned numBad = 0;
     
    10321039      }
    10331040    }
    1034     *_log << "    ! OK: " << numOK << " BAD: " << numBad << endl;
     1041    out << "Ephemeris                  : " << numOK << " OK   " << numBad << " BAD" << endl;
    10351042    if (numBad > 0) {
    1036       *_log << "        ! List of bad ephemerides:" << endl;
    10371043      for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) {
    10381044        t_eph* eph = rnxNavFile.ephs()[ii];
    10391045        if (eph->checkState() == t_eph::bad) {
    1040           *_log << "        ! " << eph->prn().toString().c_str() << ' '
    1041                 << eph->TOC().datestr(' ').c_str() << ' '
    1042                 << eph->TOC().timestr(1, ' ').c_str() << endl;
    1043         }
    1044       }
    1045     }
    1046   }
    1047   *_log << endl;
    1048 }
     1046          out << "  Bad Ephemeris                  : " << fileName.toAscii().data() << ' '
     1047              << eph->prn().toString() << ' '
     1048              << eph->TOC().datestr(' ') << ' '
     1049              << eph->TOC().timestr(1, ' ') << endl;
     1050        }
     1051      }
     1052    }
     1053  }
     1054
     1055  _ephMsg = out.str();
     1056}
  • trunk/BNC/src/rinex/reqcanalyze.h

    r6523 r6527  
    2626#define REQCANALYZE_H
    2727
     28#include <string>
    2829#include <QtCore>
    2930#include "rnxobsfile.h"
     
    188189  t_rnxObsFile::t_rnxEpo* _currEpo;
    189190  t_qcFile                _qcFile;
     191  std::string             _ephMsg;
    190192};
    191193
Note: See TracChangeset for help on using the changeset viewer.