Changeset 3525 in ntrip
- Timestamp:
- Dec 15, 2011, 10:00:46 AM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r3523 r3525 141 141 } 142 142 else { 143 _rnx = new bncRinex(_staID, _mountPoint, _ format, _latitude,144 _ longitude, _nmea, _ntripVersion);143 _rnx = new bncRinex(_staID, _mountPoint, _latitude, _longitude, 144 _nmea, _ntripVersion); 145 145 } 146 146 … … 519 519 _rnx->deepCopy(obs); 520 520 } 521 _rnx->dumpEpoch( obsTime);521 _rnx->dumpEpoch(_format, obsTime); 522 522 } 523 523 -
trunk/BNC/bncrinex.cpp
r3344 r3525 66 66 //////////////////////////////////////////////////////////////////////////// 67 67 bncRinex::bncRinex(const QByteArray& statID, const QUrl& mountPoint, 68 const QByteArray& format, const QByteArray& latitude, 69 const QByteArray& longitude, const QByteArray& nmea, 70 const QByteArray& ntripVersion) { 68 const QByteArray& latitude, const QByteArray& longitude, 69 const QByteArray& nmea, const QByteArray& ntripVersion) { 71 70 72 71 _statID = statID; 73 72 _mountPoint = mountPoint; 74 _format = format.left(6);75 73 _latitude = latitude; 76 74 _longitude = longitude; … … 377 375 // Write RINEX Header 378 376 //////////////////////////////////////////////////////////////////////////// 379 void bncRinex::writeHeader(const Q DateTime& datTim,377 void bncRinex::writeHeader(const QByteArray& format, const QDateTime& datTim, 380 378 const QDateTime& datTimNom) { 381 379 … … 439 437 " hh mm ss.zzz0000").toAscii().data(); 440 438 _out << " GPS TIME OF FIRST OBS" << endl; 441 QString hlp = ( _format+ QString(" %1").arg(_mountPoint.host() +439 QString hlp = (format.left(6) + QString(" %1").arg(_mountPoint.host() + 442 440 _mountPoint.path())).leftJustified(60, ' ', true); 443 441 _out << hlp.toAscii().data() << "COMMENT" << endl; … … 511 509 " hh mm ss.zzz0000").toAscii().data(); 512 510 _out << " GPS TIME OF FIRST OBS" << endl; 513 QString hlp = ( _format+ QString(" %1").arg(_mountPoint.host() +511 QString hlp = (format.left(6) + QString(" %1").arg(_mountPoint.host() + 514 512 _mountPoint.path())).leftJustified(60, ' ', true); 515 513 _out << hlp.toAscii().data() << "COMMENT" << endl; … … 533 531 // Write One Epoch into the RINEX File 534 532 //////////////////////////////////////////////////////////////////////////// 535 void bncRinex::dumpEpoch( long maxTime) {533 void bncRinex::dumpEpoch(const QByteArray& format, long maxTime) { 536 534 537 535 // Select observations older than maxTime … … 570 568 // ------------------ 571 569 if (!_headerWritten) { 572 writeHeader( datTim, datTimNom);570 writeHeader(format, datTim, datTimNom); 573 571 } 574 572 -
trunk/BNC/bncrinex.h
r3344 r3525 38 38 public: 39 39 bncRinex(const QByteArray& statID, const QUrl& mountPoint, 40 const QByteArray& format, const QByteArray& latitude, 41 const QByteArray& longitude, const QByteArray& nmea, 42 const QByteArray& ntripVersion); 40 const QByteArray& latitude, const QByteArray& longitude, 41 const QByteArray& nmea, const QByteArray& ntripVersion); 43 42 ~bncRinex(); 44 43 void deepCopy(t_obs obs); 45 void dumpEpoch( long maxTime);44 void dumpEpoch(const QByteArray& format, long maxTime); 46 45 void setReconnectFlag(bool flag){_reconnectFlag = flag;} 47 46 static QString nextEpochStr(const QDateTime& datTim, … … 64 63 void resolveFileName(const QDateTime& datTim); 65 64 void readSkeleton(); 66 void writeHeader(const QDateTime& datTim, const QDateTime& datTimNom); 65 void writeHeader(const QByteArray& format, const QDateTime& datTim, 66 const QDateTime& datTimNom); 67 67 void closeFile(); 68 68 t_irc downloadSkeleton(); … … 80 80 QString _userName; 81 81 QString _sklName; 82 QByteArray _format;83 82 QByteArray _latitude; 84 83 QByteArray _longitude;
Note:
See TracChangeset
for help on using the changeset viewer.