Changeset 1343 in ntrip
- Timestamp:
- Dec 27, 2008, 10:47:43 AM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncnetrequest.cpp
r1342 r1343 19 19 20 20 #include "bncnetrequest.h" 21 #include "RTCM3/RTCM3Decoder.h" 21 22 22 23 using namespace std; … … 27 28 _manager = 0; 28 29 _reply = 0; 30 _decoder = new RTCM3Decoder("TEST1"); 31 connect((RTCM3Decoder*) _decoder, SIGNAL(newMessage(QByteArray,bool)), 32 this, SIGNAL(slotNewMessage(QByteArray,bool))); 29 33 } 30 34 … … 88 92 cout << "slotReadyRead" << endl; 89 93 QByteArray buffer = _reply->readAll(); 90 cerr << buffer.data(); 94 95 vector<string> errmsg; 96 _decoder->Decode(buffer.data(), buffer.length(), errmsg); 97 98 QListIterator<p_obs> it(_decoder->_obsList); 99 while (it.hasNext()) { 100 p_obs obs = it.next(); 101 cout << obs->_o.satNum << endl; 102 delete obs; 103 } 104 _decoder->_obsList.clear(); 91 105 } 92 106 … … 104 118 } 105 119 120 // 121 //////////////////////////////////////////////////////////////////////////// 122 void bncNetRequest::slotNewMessage(QByteArray msg, bool) { 123 cout << "Message: " << msg.data() << endl; 124 } -
trunk/BNC/bncnetrequest.h
r1342 r1343 4 4 #include <QtNetwork> 5 5 #include "bncconst.h" 6 #include "RTCM/GPSDecoder.h" 6 7 7 8 class bncNetRequest : public QObject { … … 20 21 void slotError(QNetworkReply::NetworkError); 21 22 void slotSslErrors(const QList<QSslError>&); 23 void slotNewMessage(QByteArray,bool); 22 24 23 25 private: 24 26 QNetworkAccessManager* _manager; 25 27 QNetworkReply* _reply; 28 GPSDecoder* _decoder; 26 29 }; 27 30 -
trunk/BNC/ntrip2test.pro
r1335 r1343 4 4 CONFIG -= release 5 5 CONFIG += debug 6 7 DEFINES += NO_RTCM3_MAIN 6 8 7 9 # Get rid of mingwm10.dll … … 16 18 release:MOC_DIR=.moc/release 17 19 18 HEADERS = bncnetrequest.h 20 HEADERS = bncnetrequest.h bncutils.h bncrinex.h \ 21 RTCM/GPSDecoder.h RTCM/RTCM2.h RTCM/RTCM2Decoder.h \ 22 RTCM/RTCM2_2021.h RTCM/rtcm_utils.h \ 23 RTCM3/RTCM3Decoder.h RTCM3/rtcm3torinex.h \ 24 RTCM3/RTCM3coDecoder.h RTCM3/clock_orbit_rtcm.h \ 25 RTCM3/ephemeris.h RTCM3/timeutils.h \ 19 26 20 SOURCES = ntrip2test.cpp bncnetrequest.cpp 27 SOURCES = ntrip2test.cpp bncnetrequest.cpp bncutils.cpp bncrinex.cpp \ 28 RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp \ 29 RTCM/RTCM2_2021.cpp RTCM/rtcm_utils.cpp \ 30 RTCM3/RTCM3Decoder.cpp RTCM3/rtcm3torinex.c \ 31 RTCM3/RTCM3coDecoder.cpp RTCM3/clock_orbit_rtcm.c \ 32 RTCM3/ephemeris.cpp RTCM3/timeutils.cpp 21 33 22 34 QT += network
Note:
See TracChangeset
for help on using the changeset viewer.