Changeset 4255 in ntrip
- Timestamp:
- Jun 22, 2012, 9:27:50 AM (12 years ago)
- Location:
- trunk/BNC/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/reqcanalyze.cpp
r4254 r4255 44 44 #include "bncsettings.h" 45 45 #include "reqcedit.h" 46 #include "bncutils.h" 46 47 47 48 using namespace std; … … 54 55 55 56 _obsFileNames = settings.value("reqcObsFile").toString().split(",", QString::SkipEmptyParts); 57 _logFileName = settings.value("reqcOutLogFile").toString(); 58 expandEnvVar(_logFileName); 59 _logFile = 0; 60 _log = 0; 56 61 } 57 62 … … 59 64 //////////////////////////////////////////////////////////////////////////// 60 65 t_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; 61 74 } 62 75 … … 65 78 void t_reqcAnalyze::run() { 66 79 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 // ---------------------------------- 67 89 t_reqcEdit::initRnxObsFiles(_obsFileNames, _rnxObsFiles); 68 90 91 // Loop over all RINEX Files 92 // ------------------------- 69 93 for (int ii = 0; ii < _rnxObsFiles.size(); ii++) { 70 94 analyzeFile(_rnxObsFiles[ii]); 71 95 } 72 96 97 // Exit 98 // ---- 73 99 bncApp* app = (bncApp*) qApp; 74 100 if ( app->mode() != bncApp::interactive) { -
trunk/BNC/rinex/reqcanalyze.h
r4254 r4255 52 52 53 53 QStringList _obsFileNames; 54 QString _logFileName; 55 QFile* _logFile; 56 QTextStream* _log; 54 57 QVector<t_rnxObsFile*> _rnxObsFiles; 55 QString _logFileName; 58 QVector<t_eph*> _ephs; 59 ; 56 60 }; 57 61
Note:
See TracChangeset
for help on using the changeset viewer.