Changeset 1353 in ntrip
- Timestamp:
- Dec 27, 2008, 1:59:46 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r1325 r1353 404 404 QByteArray longitude = hlp[3].toAscii(); 405 405 QByteArray nmea = hlp[4].toAscii(); 406 QByteArray ntripVersion = hlp[5].toAscii(); 406 407 407 408 bncGetThread* getThread = new bncGetThread(url, format, latitude, 408 longitude, nmea, iMount);409 longitude, nmea, ntripVersion, iMount); 409 410 addGetThread(getThread); 410 411 } -
trunk/BNC/bncgetthread.cpp
r1348 r1353 93 93 const QByteArray& latitude, 94 94 const QByteArray& longitude, 95 const QByteArray& nmea, int iMount) { 95 const QByteArray& nmea, 96 const QByteArray& ntripVersion, int iMount) { 96 97 97 98 setTerminationEnabled(true); … … 103 104 _longitude = longitude; 104 105 _nmea = nmea; 106 _ntripVersion = ntripVersion; 105 107 _iMount = iMount; // index in mountpoints array 106 108 … … 185 187 } 186 188 else { 187 _rnx = new bncRinex(_staID, _mountPoint, 188 _ format, _latitude, _longitude, _nmea);189 _rnx = new bncRinex(_staID, _mountPoint, _format, _latitude, 190 _longitude, _nmea, _ntripVersion); 189 191 } 190 192 _rnx_set_position = false; … … 313 315 _socket = new bncSocket; 314 316 if (_socket->request(_mountPoint, _latitude, _longitude, 315 _nmea, _ timeOut, msg) != success) {317 _nmea, _ntripVersion, _timeOut, msg) != success) { 316 318 delete _socket; 317 319 _socket = 0; … … 351 353 if (line.indexOf("Unauthorized") != -1) { 352 354 QStringList table; 353 bncTableDlg::getFullTable(_mountPoint.host(), _mountPoint.port(), table); 355 bncTableDlg::getFullTable(_mountPoint.host(), _mountPoint.port(), 356 _ntripVersion, table); 354 357 QString net; 355 358 QStringListIterator it(table); -
trunk/BNC/bncgetthread.h
r1346 r1353 48 48 const QByteArray& latitude, 49 49 const QByteArray& longitude, 50 const QByteArray& nmea, int iMount); 50 const QByteArray& nmea, 51 const QByteArray& ntripVersion, int iMount); 51 52 52 53 ~bncGetThread(); … … 86 87 QByteArray _longitude; 87 88 QByteArray _nmea; 89 QByteArray _ntripVersion; 88 90 QString _adviseScript; 89 91 QString _begDateCor; -
trunk/BNC/bncrinex.cpp
r1348 r1353 63 63 bncRinex::bncRinex(const QByteArray& statID, const QUrl& mountPoint, 64 64 const QByteArray& format, const QByteArray& latitude, 65 const QByteArray& longitude, const QByteArray& nmea) { 65 const QByteArray& longitude, const QByteArray& nmea, 66 const QByteArray& ntripVersion) { 66 67 _statID = statID; 67 68 _mountPoint = mountPoint; … … 70 71 _longitude = longitude; 71 72 _nmea = nmea; 73 _ntripVersion = ntripVersion; 72 74 _headerWritten = false; 73 75 _reconnectFlag = false; … … 121 123 QStringList table; 122 124 bncTableDlg::getFullTable(_mountPoint.host(), _mountPoint.port(), 123 table, _reloadTable);125 _ntripVersion, table, _reloadTable); 124 126 QString net; 125 127 QStringListIterator it(table); … … 159 161 bncSocket* socket = new bncSocket(); 160 162 if (socket->request(url, _latitude, _longitude, 161 _nmea, timeOut, msg) != success) {163 _nmea, _ntripVersion, timeOut, msg) != success) { 162 164 delete socket; 163 165 return failure; -
trunk/BNC/bncrinex.h
r1044 r1353 40 40 bncRinex(const QByteArray& statID, const QUrl& mountPoint, 41 41 const QByteArray& format, const QByteArray& latitude, 42 const QByteArray& longitude, const QByteArray& nmea); 42 const QByteArray& longitude, const QByteArray& nmea, 43 const QByteArray& ntripVersion); 43 44 ~bncRinex(); 44 45 void deepCopy(const p_obs obs); … … 81 82 QByteArray _longitude; 82 83 QByteArray _nmea; 84 QByteArray _ntripVersion; 83 85 bool _reconnectFlag; 84 86 QDate _skeletonDate; -
trunk/BNC/bncsocket.cpp
r1349 r1353 156 156 t_irc bncSocket::request(const QUrl& mountPoint, const QByteArray& latitude, 157 157 const QByteArray& longitude, const QByteArray& nmea, 158 const QByteArray& ntripVersion, 158 159 int timeOut, QString& msg) { 159 160 -
trunk/BNC/bncsocket.h
r1349 r1353 26 26 t_irc request(const QUrl& mountPoint, const QByteArray& latitude, 27 27 const QByteArray& longitude, const QByteArray& nmea, 28 int timeOut, QString& msg);28 const QByteArray& ntripVersion, int timeOut, QString& msg); 29 29 30 30 private: -
trunk/BNC/bnctabledlg.cpp
r1351 r1353 146 146 //////////////////////////////////////////////////////////////////////////// 147 147 t_irc bncTableDlg::getFullTable(const QString& casterHost, 148 int casterPort, QStringList& allLines,149 bool alwaysRead) {148 int casterPort, const QByteArray& ntripVersion, 149 QStringList& allLines, bool alwaysRead) { 150 150 151 151 static QMutex mutex; … … 169 169 const int timeOut = 10*1000; 170 170 QString msg; 171 QByteArray _latitude;172 QByteArray _longitude;173 QByteArray _nmea;174 171 bncSocket* socket = new bncSocket(); 175 if (socket->request(url, _latitude, _longitude, 176 _nmea, timeOut, msg) != success) { 172 if (socket->request(url, "", "", "", ntripVersion, timeOut, msg) != success) { 177 173 delete socket; 178 174 return failure; … … 239 235 if ( getFullTable(_casterHostLineEdit->currentText(), 240 236 _casterPortLineEdit->text().toInt(), 237 _ntripVersionComboBox->currentText().toAscii(), 241 238 _allLines) != success ) { 242 239 QMessageBox::warning(0, "BNC", "Cannot retrieve table of data"); -
trunk/BNC/bnctabledlg.h
r1350 r1353 39 39 ~bncTableDlg(); 40 40 static t_irc getFullTable(const QString& casterHost, int casterPort, 41 const QByteArray& ntripVersion, 41 42 QStringList& allLines, bool alwaysRead = true); 42 43
Note:
See TracChangeset
for help on using the changeset viewer.