Changeset 256 in ntrip for trunk/BNC/bncrinex.cpp
- Timestamp:
- Oct 18, 2006, 3:56:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note:
See TracChangeset
for help on using the changeset viewer.