Changeset 6867 in ntrip for trunk/BNC/src/rinex
- Timestamp:
- Jun 1, 2015, 12:38:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcanalyze.cpp
r6817 r6867 111 111 // Open Log File 112 112 // ------------- 113 _logFile = new QFile(_logFileName); 114 if (_logFile->open(QIODevice::WriteOnly | QIODevice::Text)) { 115 _log = new QTextStream(); 116 _log->setDevice(_logFile); 117 } 118 *_log << "QC Format Version : " << QString("%1").arg(QC_FORMAT_VERSION,3,'f',1) << endl << endl; 113 if (!_logFileName.isEmpty()) { 114 _logFile = new QFile(_logFileName); 115 if (_logFile->open(QIODevice::WriteOnly | QIODevice::Text)) { 116 _log = new QTextStream(); 117 _log->setDevice(_logFile); 118 } 119 } 120 121 if (_log) { 122 *_log << "QC Format Version : " << QString("%1").arg(QC_FORMAT_VERSION,3,'f',1) << endl << endl; 123 } 119 124 120 125 // Check Ephemerides … … 816 821 systemMap[prn.system()].push_back(&qcSatSum); 817 822 } 818 819 823 *_log << "Navigation Systems: " << systemMap.size() << " "; 824 820 825 QMapIterator<QChar, QVector<const t_qcSatSum*> > itSys(systemMap); 821 826 while (itSys.hasNext()) { … … 845 850 << prefixSys << "Satellites: " << qcSatVec.size() << endl 846 851 << prefixSys << "Signals : " << frqMap.size() << " "; 847 QMapIterator<QString, QVector<const t_qcFrqSum*> > itFrq(frqMap); 852 QMapIterator<QString, QVector<const t_qcFrqSum*> > itFrq(frqMap); 848 853 while (itFrq.hasNext()) { 849 854 itFrq.next(); … … 996 1001 } 997 1002 } 998 999 *_log << "Navigation File(s): " << navFileName << endl;1000 1003 if (_log) { 1004 *_log << "Navigation File(s): " << navFileName << endl; 1005 } 1001 1006 QStringListIterator it(_navFileNames); 1002 1007 while (it.hasNext()) { … … 1016 1021 } 1017 1022 } 1018 *_log << "Ephemeris : " << numOK << " OK " << numBad << " BAD" << endl; 1023 if (_log) { 1024 *_log << "Ephemeris : " << numOK << " OK " << numBad << " BAD" << endl; 1025 } 1019 1026 if (numBad > 0) { 1020 1027 for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) { … … 1022 1029 if (eph->checkState() == t_eph::bad) { 1023 1030 QFileInfo navFi(fileName); 1024 *_log << " Bad Ephemeris : " << navFi.fileName() << ' ' 1025 << eph->toString(3.0).left(24) << endl; 1026 } 1027 } 1028 } 1029 } 1030 1031 *_log << endl; 1032 } 1031 if (_log) { 1032 *_log << " Bad Ephemeris : " << navFi.fileName() << ' ' 1033 << eph->toString(3.0).left(24) << endl; 1034 } 1035 } 1036 } 1037 } 1038 } 1039 if (_log) { 1040 *_log << endl; 1041 } 1042 }
Note:
See TracChangeset
for help on using the changeset viewer.