- Timestamp:
- Jun 22, 2012, 9:12:24 AM (12 years ago)
- Location:
- trunk/BNC
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r4250 r4254 2566 2566 enableStartStop(); 2567 2567 if (_reqcActionComboBox->currentText() == "Analyze") { 2568 QMessageBox::information(this, "Information",2569 "Analyze not yet implemented");2570 2568 t_reqcAnalyze* reqcAnalyze = new t_reqcAnalyze(this); 2571 2569 connect(reqcAnalyze, SIGNAL(finished()), -
trunk/BNC/rinex/reqcanalyze.cpp
r3973 r4254 43 43 #include "bncapp.h" 44 44 #include "bncsettings.h" 45 #include "reqcedit.h" 45 46 46 47 using namespace std; … … 51 52 52 53 bncSettings settings; 54 55 _obsFileNames = settings.value("reqcObsFile").toString().split(",", QString::SkipEmptyParts); 53 56 } 54 57 … … 62 65 void t_reqcAnalyze::run() { 63 66 64 cout << "Reqc Analyze Running ..." << endl; 67 t_reqcEdit::initRnxObsFiles(_obsFileNames, _rnxObsFiles); 68 69 for (int ii = 0; ii < _rnxObsFiles.size(); ii++) { 70 analyzeFile(_rnxObsFiles[ii]); 71 } 65 72 66 73 bncApp* app = (bncApp*) qApp; … … 73 80 } 74 81 } 82 83 // 84 //////////////////////////////////////////////////////////////////////////// 85 void t_reqcAnalyze::analyzeFile(const t_rnxObsFile* rnxObsFile) { 86 cout << rnxObsFile->fileName().toAscii().data() << endl; 87 } -
trunk/BNC/rinex/reqcanalyze.h
r3900 r4254 27 27 28 28 #include <QtCore> 29 #include "rnxobsfile.h" 30 #include "rnxnavfile.h" 31 #include "RTCM3/ephemeris.h" 29 32 30 33 class t_reqcAnalyze : public QThread { … … 46 49 47 50 private: 51 void analyzeFile(const t_rnxObsFile* rnxObsFile); 52 53 QStringList _obsFileNames; 54 QVector<t_rnxObsFile*> _rnxObsFiles; 55 QString _logFileName; 48 56 }; 49 57 -
trunk/BNC/rinex/reqcedit.cpp
r4236 r4254 100 100 } 101 101 102 // 103 //////////////////////////////////////////////////////////////////////////// 104 void t_reqcEdit::editObservations() { 105 106 // Easy Exit 107 // --------- 108 if (_obsFileNames.isEmpty() || _outObsFileName.isEmpty()) { 109 return; 110 } 111 112 // Initialize input observation files, sort them according to start time 113 // --------------------------------------------------------------------- 114 QStringListIterator it(_obsFileNames); 102 // Initialize input observation files, sort them according to start time 103 //////////////////////////////////////////////////////////////////////////// 104 void t_reqcEdit::initRnxObsFiles(const QStringList& obsFileNames, 105 QVector<t_rnxObsFile*>& rnxObsFiles) { 106 107 QStringListIterator it(obsFileNames); 115 108 while (it.hasNext()) { 116 109 QString fileName = it.next(); … … 123 116 QString filePath = it.next().filePath(); 124 117 t_rnxObsFile* rnxObsFile = new t_rnxObsFile(filePath, t_rnxObsFile::input); 125 _rnxObsFiles.append(rnxObsFile);118 rnxObsFiles.append(rnxObsFile); 126 119 } 127 120 } 128 121 else { 129 122 t_rnxObsFile* rnxObsFile = new t_rnxObsFile(fileName, t_rnxObsFile::input); 130 _rnxObsFiles.append(rnxObsFile);131 } 132 } 133 qStableSort( _rnxObsFiles.begin(), _rnxObsFiles.end(),123 rnxObsFiles.append(rnxObsFile); 124 } 125 } 126 qStableSort(rnxObsFiles.begin(), rnxObsFiles.end(), 134 127 t_rnxObsFile::earlierStartTime); 128 } 129 130 // 131 //////////////////////////////////////////////////////////////////////////// 132 void t_reqcEdit::editObservations() { 133 134 // Easy Exit 135 // --------- 136 if (_obsFileNames.isEmpty() || _outObsFileName.isEmpty()) { 137 return; 138 } 139 140 t_reqcEdit::initRnxObsFiles(_obsFileNames, _rnxObsFiles); 135 141 136 142 // Initialize output observation file -
trunk/BNC/rinex/reqcedit.h
r4081 r4254 47 47 public: 48 48 virtual void run(); 49 static void initRnxObsFiles(const QStringList& obsFileNames, 50 QVector<t_rnxObsFile*>& rnxObsFiles); 49 51 50 52 private:
Note:
See TracChangeset
for help on using the changeset viewer.