Changeset 3571 in ntrip for branches/BNC_LM/bncrinex.cpp


Ignore:
Timestamp:
Dec 25, 2011, 7:27:03 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_LM/bncrinex.cpp

    r3344 r3571  
    6666////////////////////////////////////////////////////////////////////////////
    6767bncRinex::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) {
    7170
    7271  _statID        = statID;
    7372  _mountPoint    = mountPoint;
    74   _format        = format.left(6);
    7573  _latitude      = latitude;
    7674  _longitude     = longitude;
     
    103101
    104102  _approxPos[0] = _approxPos[1] = _approxPos[2] = 0.0;
     103
     104  _samplingRate = settings.value("rnxSampl").toInt();
    105105}
    106106
     
    377377// Write RINEX Header
    378378////////////////////////////////////////////////////////////////////////////
    379 void bncRinex::writeHeader(const QDateTime& datTim,
     379void bncRinex::writeHeader(const QByteArray& format, const QDateTime& datTim,
    380380                           const QDateTime& datTimNom) {
    381381
     
    439439                                "    hh    mm   ss.zzz0000").toAscii().data();
    440440        _out << "     GPS         TIME OF FIRST OBS"    << endl;
    441         QString hlp = (_format + QString(" %1").arg(_mountPoint.host() +
     441        QString hlp = (format.left(6) + QString(" %1").arg(_mountPoint.host() +
    442442                      _mountPoint.path())).leftJustified(60, ' ', true);
    443443        _out << hlp.toAscii().data() << "COMMENT" << endl;
     
    511511                                "    hh    mm   ss.zzz0000").toAscii().data();
    512512    _out << "     GPS         TIME OF FIRST OBS"    << endl;
    513     QString hlp = (_format + QString(" %1").arg(_mountPoint.host() +
     513    QString hlp = (format.left(6) + QString(" %1").arg(_mountPoint.host() +
    514514          _mountPoint.path())).leftJustified(60, ' ', true);
    515515    _out << hlp.toAscii().data() << "COMMENT" << endl;
     
    533533// Write One Epoch into the RINEX File
    534534////////////////////////////////////////////////////////////////////////////
    535 void bncRinex::dumpEpoch(long maxTime) {
     535void bncRinex::dumpEpoch(const QByteArray& format, long maxTime) {
    536536
    537537  // Select observations older than maxTime
     
    570570  // ------------------
    571571  if (!_headerWritten) {
    572     writeHeader(datTim, datTimNom);
     572    writeHeader(format, datTim, datTimNom);
    573573  }
    574574
Note: See TracChangeset for help on using the changeset viewer.