Index: trunk/BNC/src/rinex/reqcanalyze.cpp
===================================================================
--- trunk/BNC/src/rinex/reqcanalyze.cpp	(revision 6526)
+++ trunk/BNC/src/rinex/reqcanalyze.cpp	(revision 6527)
@@ -41,4 +41,5 @@
 #include <iostream>
 #include <iomanip>
+#include <sstream>
 #include <qwt_plot_renderer.h>
 
@@ -819,6 +820,10 @@
   // -------
   *_log << "QC Format Version : " << QString("%1").arg(QC_FORMAT_VERSION,3,'f',1)  << endl << endl
-        << "Observation File  : " << obsFileName                                   << endl
-        << "Navigation File(s): " << navFileName                                   << endl
+        << "Navigation File(s): " << navFileName                                   << endl;
+  if (!_ephMsg.empty()) {
+    *_log << _ephMsg.c_str();
+    _ephMsg.clear();
+  }
+  *_log << "Observation File  : " << obsFileName                                   << endl
         << "RINEX Version     : " << QString("%1").arg(obsFile->version(),4,'f',2) << endl
         << "Marker Name       : " << _qcFile._markerName                           << endl
@@ -1014,8 +1019,10 @@
 ////////////////////////////////////////////////////////////////////////////
 void t_reqcAnalyze::checkEphemerides() {
+
+  ostringstream out;
+
   QStringListIterator it(_navFileNames);
   while (it.hasNext()) {
     const QString& fileName = it.next();
-    *_log << "! Ephemeris Check: " << fileName << endl;
     unsigned numOK  = 0;
     unsigned numBad = 0;
@@ -1032,17 +1039,18 @@
       }
     }
-    *_log << "    ! OK: " << numOK << " BAD: " << numBad << endl;
+    out << "Ephemeris                  : " << numOK << " OK   " << numBad << " BAD" << endl;
     if (numBad > 0) {
-      *_log << "        ! List of bad ephemerides:" << endl;
       for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) {
         t_eph* eph = rnxNavFile.ephs()[ii];
         if (eph->checkState() == t_eph::bad) {
-          *_log << "        ! " << eph->prn().toString().c_str() << ' '
-                << eph->TOC().datestr(' ').c_str() << ' '
-                << eph->TOC().timestr(1, ' ').c_str() << endl;
-        }
-      }
-    }
-  }
-  *_log << endl;
-}
+          out << "  Bad Ephemeris                  : " << fileName.toAscii().data() << ' '
+              << eph->prn().toString() << ' '
+              << eph->TOC().datestr(' ') << ' '
+              << eph->TOC().timestr(1, ' ') << endl;
+        }
+      }
+    }
+  }
+
+  _ephMsg = out.str();
+}
Index: trunk/BNC/src/rinex/reqcanalyze.h
===================================================================
--- trunk/BNC/src/rinex/reqcanalyze.h	(revision 6526)
+++ trunk/BNC/src/rinex/reqcanalyze.h	(revision 6527)
@@ -26,4 +26,5 @@
 #define REQCANALYZE_H
 
+#include <string>
 #include <QtCore>
 #include "rnxobsfile.h"
@@ -188,4 +189,5 @@
   t_rnxObsFile::t_rnxEpo* _currEpo;
   t_qcFile                _qcFile;
+  std::string             _ephMsg;
 };
 
