Changeset 156 in ntrip
- Timestamp:
- Sep 9, 2006, 10:46:36 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncrinex.cpp
r155 r156 18 18 #include <QSettings> 19 19 #include <QDir> 20 #include <QUrl> 20 21 #include <QDate> 21 22 #include <QFile> … … 46 47 QString hlp = it.next(); 47 48 if (hlp.indexOf(_statID) != -1) { 48 _mountPoint = hlp; 49 QUrl url(hlp); 50 _mountPoint = url.host() + url.path(); 49 51 break; 50 52 } … … 185 187 " hh mm ss.zzz0000").toAscii().data(); 186 188 _out << " TIME OF FIRST OBS" << endl; 187 _out << QString("GENERATED FROM STREAM %1") 188 .arg(_mountPoint, 38, ' ').toAscii().data() << "COMMENT" << endl; 189 QString hlp = QString("GENERATED FROM STREAM %1").arg(_mountPoint) 190 .leftJustified(60, ' ', true); 191 _out << hlp.toAscii().data() << "COMMENT" << endl; 189 192 } 190 193 else { … … 225 228 " hh mm ss.zzz0000").toAscii().data(); 226 229 _out << " " << "TIME OF FIRST OBS" << endl; 227 _out << QString("GENERATED FROM STREAM %1") 228 .arg(_mountPoint, 38, ' ').toAscii().data() << "COMMENT" << endl; 230 QString hlp = QString("GENERATED FROM STREAM %1").arg(_mountPoint) 231 .leftJustified(60, ' ', true); 232 _out << hlp.toAscii().data() << "COMMENT" << endl; 229 233 _out << " END OF HEADER" << endl; 230 234 }
Note:
See TracChangeset
for help on using the changeset viewer.