- Timestamp:
- Jan 22, 2011, 12:52:25 PM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r2861 r2865 48 48 #include "bncsettings.h" 49 49 #include "bncversion.h" 50 #include "bnccomb.h" 50 51 51 52 using namespace std; … … 110 111 _GLOFreq[ii] = 0; 111 112 } 113 114 _bncComb = new bncComb(); 112 115 } 113 116 … … 142 145 143 146 delete _rawFile; 147 148 delete _bncComb; 144 149 } 145 150 … … 749 754 emit( newMessage(line.toAscii(), true) ); 750 755 return; 756 } 757 758 // Combination of Corrections 759 // -------------------------- 760 if (_bncComb) { 761 _bncComb->processCorrLine(staID, line); 751 762 } 752 763 -
trunk/BNC/bncapp.h
r2770 r2865 33 33 #include "bncrawfile.h" 34 34 #include "RTCM3/RTCM3Decoder.h" 35 36 class bncComb; 35 37 36 38 class bncApp : public QApplication { … … 116 118 bncRawFile* _rawFile; 117 119 int _GLOFreq[PRN_GLONASS_NUM]; 120 bncComb* _bncComb; 118 121 }; 119 122 #endif -
trunk/BNC/bnccomb.cpp
r2864 r2865 39 39 * -----------------------------------------------------------------------*/ 40 40 41 #include <iostream> 42 41 43 #include "bnccomb.h" 42 44 #include "bncapp.h" … … 47 49 //////////////////////////////////////////////////////////////////////////// 48 50 bncComb::bncComb() { 49 connect(((bncApp*)qApp), SIGNAL(newCorrections(QList<QString>)),50 this, SLOT(slotNewCorrections(QList<QString>)));51 51 } 52 52 … … 58 58 // 59 59 //////////////////////////////////////////////////////////////////////////// 60 void bncComb::slotNewCorrections(QList<QString> corrList) { 61 QMutexLocker locker(&_mutex); 62 63 if (corrList.size() == 0) { 64 return; 65 } 66 60 void bncComb::processCorrLine(const QString& staID, const QString& line) { 61 /// cout << staID.toAscii().data() << " " << line.toAscii().data() << endl; 67 62 } 68 63 -
trunk/BNC/bnccomb.h
r2864 r2865 34 34 bncComb(); 35 35 ~bncComb(); 36 void processCorrLine(const QString& staID, const QString& line); 36 37 37 38 public slots: 38 void slotNewCorrections(QList<QString> corrList);39 39 40 40 signals: … … 42 42 43 43 private: 44 QMutex _mutex;45 44 }; 46 45
Note:
See TracChangeset
for help on using the changeset viewer.