Changeset 4516 in ntrip


Ignore:
Timestamp:
Aug 13, 2012, 12:15:29 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
2 edited

Legend:

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

    r4514 r4516  
    4343#include "bncapp.h"
    4444#include "bncsettings.h"
     45#include "bncutils.h"
    4546
    4647using namespace std;
     
    5556  bncSettings settings;
    5657
     58  _logFileName    = settings.value("reqcOutLogFile").toString(); expandEnvVar(_logFileName);
     59  _logFile        = 0;
     60  _log            = 0;
    5761  _obsFileNames   = settings.value("reqcObsFile").toString().split(",", QString::SkipEmptyParts);
    5862  _outObsFileName = settings.value("reqcOutObsFile").toString();
     
    8084    delete _ephs[ii];
    8185  }
     86  delete _log;     _log     = 0;
     87  delete _logFile; _logFile = 0;
    8288}
    8389
     
    8692void t_reqcEdit::run() {
    8793 
     94  // Open Log File
     95  // -------------
     96  _logFile = new QFile(_logFileName);
     97  _logFile->open(QIODevice::WriteOnly | QIODevice::Text);
     98  _log = new QTextStream();
     99  _log->setDevice(_logFile);
     100
     101  // Handle Observation Files
     102  // ------------------------
    88103  editObservations();
    89104
     105  // Handle Navigations Files
     106  // ------------------------
    90107  editEphemerides();
    91108
     109  // Exit (thread)
     110  // -------------
    92111  bncApp* app = (bncApp*) qApp;
    93112  if ( app->mode() != bncApp::interactive) {
  • trunk/BNC/src/rinex/reqcedit.h

    r4256 r4516  
    6060  void applyLLI(const t_rnxObsFile* obsFile, t_rnxObsFile::t_rnxEpo* epo);
    6161
     62  QString                _logFileName;
     63  QFile*                 _logFile;
     64  QTextStream*           _log;
    6265  QStringList            _obsFileNames;
    6366  QVector<t_rnxObsFile*> _rnxObsFiles;
Note: See TracChangeset for help on using the changeset viewer.