Changeset 2125 in ntrip


Ignore:
Timestamp:
Dec 28, 2009, 9:20:56 AM (15 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r2124 r2125  
    160160    _QQ(5,5) = sig_trp_0 * sig_trp_0;
    161161  }
     162
     163  // NMEA Output
     164  // -----------
     165  QString nmeaFileName = settings.value("nmeaFile").toString();
     166  if (nmeaFileName.isEmpty()) {
     167    _nmeaFile   = 0;
     168    _nmeaStream = 0;
     169  }
     170  else {
     171    expandEnvVar(nmeaFileName);
     172    _nmeaFile = new QFile(nmeaFileName);
     173    if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) {
     174      _nmeaFile->open(QIODevice::WriteOnly | QIODevice::Append);
     175    }
     176    else {
     177      _nmeaFile->open(QIODevice::WriteOnly);
     178    }
     179    _nmeaStream = new QTextStream();
     180    _nmeaStream->setDevice(_nmeaFile);
     181  }
    162182}
    163183
  • trunk/BNC/bncmodel.h

    r2124 r2125  
    8383  bool               _estTropo;
    8484  QByteArray         _log;
     85  QFile*             _nmeaFile;
     86  QTextStream*       _nmeaStream;
    8587};
    8688
Note: See TracChangeset for help on using the changeset viewer.