Changeset 256 in ntrip
- Timestamp:
- Oct 18, 2006, 3:56:17 PM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r252 r256 85 85 // New Observations 86 86 //////////////////////////////////////////////////////////////////////////// 87 void bncCaster::newObs(const QByteArray& staID, Observation* obs) { 87 void bncCaster::newObs(const QByteArray& staID, const QUrl& mountPoint, 88 Observation* obs) { 88 89 89 90 QMutexLocker locker(&_mutex); … … 99 100 // -------------------- 100 101 if (_rinexWriters.find(obs->StatID) == _rinexWriters.end()) { 101 _rinexWriters.insert(obs->StatID, new bncRinex(obs->StatID ));102 _rinexWriters.insert(obs->StatID, new bncRinex(obs->StatID, mountPoint)); 102 103 } 103 104 bncRinex* rnx = _rinexWriters.find(obs->StatID).value(); -
trunk/BNC/bnccaster.h
r243 r256 20 20 void addGetThread(bncGetThread* getThread); 21 21 int numStations() const {return _staIDs.size();} 22 void newObs(const QByteArray& staID, Observation* obs);23 22 void newObs(const QByteArray& staID, const QUrl& mountPoint, 23 Observation* obs); 24 24 25 25 signals: -
trunk/BNC/bncgetthread.cpp
r255 r256 257 257 it != _decoder->_obsList.end(); it++) { 258 258 emit newObs(_staID, *it); 259 _global_caster->newObs(_staID, *it);259 _global_caster->newObs(_staID, _mountPoint, *it); 260 260 } 261 261 _decoder->_obsList.clear(); -
trunk/BNC/bncrinex.cpp
r255 r256 35 35 // Constructor 36 36 //////////////////////////////////////////////////////////////////////////// 37 bncRinex::bncRinex(const char* StatID ) {37 bncRinex::bncRinex(const char* StatID, const QUrl& mountPoint) { 38 38 _statID = StatID; 39 _mountPoint = mountPoint; 39 40 _headerWritten = false; 40 41 readSkeleton(); … … 43 44 _rnxScriptName = settings.value("rnxScript").toString(); 44 45 expandEnvVar(_rnxScriptName); 45 46 // Find the corresponding mountPoint47 // ---------------------------------48 QListIterator<QString> it(settings.value("mountPoints").toStringList());49 while (it.hasNext()) {50 QString hlp = it.next();51 if (hlp.indexOf(_statID) != -1) {52 QUrl url(hlp);53 _mountPoint = url.host() + url.path();54 break;55 }56 }57 46 58 47 _pgmName = ((bncApp*)qApp)->bncVersion().leftJustified(20, ' ', true); … … 215 204 " hh mm ss.zzz0000").toAscii().data(); 216 205 _out << " TIME OF FIRST OBS" << endl; 217 QString hlp = QString("STREAM %1").arg(_mountPoint )206 QString hlp = QString("STREAM %1").arg(_mountPoint.host() + _mountPoint.path()) 218 207 .leftJustified(60, ' ', true); 219 208 _out << hlp.toAscii().data() << "COMMENT" << endl; … … 258 247 " hh mm ss.zzz0000").toAscii().data(); 259 248 _out << " " << "TIME OF FIRST OBS" << endl; 260 hlp = QString("STREAM %1").arg(_mountPoint )249 hlp = QString("STREAM %1").arg(_mountPoint.host() + _mountPoint.path()) 261 250 .leftJustified(60, ' ', true); 262 251 _out << hlp.toAscii().data() << "COMMENT" << endl; -
trunk/BNC/bncrinex.h
r222 r256 14 14 class bncRinex { 15 15 public: 16 bncRinex(const char* StatID );16 bncRinex(const char* StatID, const QUrl& mountPoint); 17 17 ~bncRinex(); 18 18 void deepCopy(const Observation* obs); … … 34 34 QString _rnxScriptName; 35 35 QProcess _rnxScript; 36 Q String_mountPoint;36 QUrl _mountPoint; 37 37 QString _pgmName; 38 38 QString _userName;
Note:
See TracChangeset
for help on using the changeset viewer.