Changeset 88 in ntrip for trunk/BNC/bnccaster.cpp
- Timestamp:
- Aug 31, 2006, 7:20:36 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r82 r88 69 69 // New Observations 70 70 //////////////////////////////////////////////////////////////////////////// 71 void bncCaster::slotNewObs(const QByteArray& mountPoint, Observation* obs) {71 void bncCaster::slotNewObs(const QByteArray& staID, Observation* obs) { 72 72 73 73 long newTime = obs->GPSWeek * 7*24*3600 + obs->GPSWeeks; … … 88 88 // Rename the station and save the observation 89 89 // ------------------------------------------- 90 strncpy(obs->StatID, mountPoint.constData(),sizeof(obs->StatID));90 strncpy(obs->StatID, staID.constData(),sizeof(obs->StatID)); 91 91 _epochs->insert(newTime, obs); 92 92 … … 113 113 this, SLOT(slotGetThreadError(const QByteArray&))); 114 114 115 _ mountPoints.push_back(getThread->mountPoint());115 _staIDs.push_back(getThread->staID()); 116 116 } 117 117 118 118 // Error in get thread 119 119 //////////////////////////////////////////////////////////////////////////// 120 void bncCaster::slotGetThreadError(const QByteArray& mountPoint) {121 _ mountPoints.removeAll(mountPoint);120 void bncCaster::slotGetThreadError(const QByteArray& staID) { 121 _staIDs.removeAll(staID); 122 122 emit( newMessage( 123 QString("Mountpoint size %1").arg(_ mountPoints.size()).toAscii()) );124 if (_ mountPoints.size() == 0) {123 QString("Mountpoint size %1").arg(_staIDs.size()).toAscii()) ); 124 if (_staIDs.size() == 0) { 125 125 emit(newMessage("bncCaster:: last get thread terminated")); 126 126 emit getThreadErrors();
Note:
See TracChangeset
for help on using the changeset viewer.