Changeset 4255 in ntrip


Ignore:
Timestamp:
Jun 22, 2012, 9:27:50 AM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/rinex
Files:
2 edited

Legend:

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

    r4254 r4255  
    4444#include "bncsettings.h"
    4545#include "reqcedit.h"
     46#include "bncutils.h"
    4647
    4748using namespace std;
     
    5455
    5556  _obsFileNames = settings.value("reqcObsFile").toString().split(",", QString::SkipEmptyParts);
     57  _logFileName  = settings.value("reqcOutLogFile").toString();
     58  expandEnvVar(_logFileName);
     59  _logFile = 0;
     60  _log     = 0;
    5661}
    5762
     
    5964////////////////////////////////////////////////////////////////////////////
    6065t_reqcAnalyze::~t_reqcAnalyze() {
     66  for (int ii = 0; ii < _rnxObsFiles.size(); ii++) {
     67    delete _rnxObsFiles[ii];
     68  }
     69  for (int ii = 0; ii < _ephs.size(); ii++) {
     70    delete _ephs[ii];
     71  }
     72  delete _log;     _log     = 0;
     73  delete _logFile; _logFile = 0;
    6174}
    6275
     
    6578void t_reqcAnalyze::run() {
    6679
     80  // Open Log File
     81  // -------------
     82  _logFile = new QFile(_logFileName);
     83  _logFile->open(QIODevice::WriteOnly | QIODevice::Text);
     84  _log = new QTextStream();
     85  _log->setDevice(_logFile);
     86
     87  // Initialize RINEX Observation Files
     88  // ----------------------------------
    6789  t_reqcEdit::initRnxObsFiles(_obsFileNames, _rnxObsFiles);
    6890
     91  // Loop over all RINEX Files
     92  // -------------------------
    6993  for (int ii = 0; ii < _rnxObsFiles.size(); ii++) {
    7094    analyzeFile(_rnxObsFiles[ii]);
    7195  }
    7296
     97  // Exit
     98  // ----
    7399  bncApp* app = (bncApp*) qApp;
    74100  if ( app->mode() != bncApp::interactive) {
  • trunk/BNC/rinex/reqcanalyze.h

    r4254 r4255  
    5252
    5353  QStringList            _obsFileNames;
     54  QString                _logFileName;
     55  QFile*                 _logFile;
     56  QTextStream*           _log;
    5457  QVector<t_rnxObsFile*> _rnxObsFiles;
    55   QString                _logFileName;
     58  QVector<t_eph*>        _ephs;
     59;
    5660};
    5761
Note: See TracChangeset for help on using the changeset viewer.