Changeset 275 in ntrip for trunk/BNC


Ignore:
Timestamp:
Nov 8, 2006, 10:35:12 AM (18 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r261 r275  
    5959      expandEnvVar(logFileName);
    6060      _logFile = new QFile(logFileName);
    61       _logFile->open(QIODevice::WriteOnly);
     61      if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) {
     62        _logFile->open(QIODevice::WriteOnly | QIODevice::Append);
     63      }
     64      else {
     65        _logFile->open(QIODevice::WriteOnly);
     66      }
    6267      _logStream = new QTextStream();
    6368      _logStream->setDevice(_logFile);
  • trunk/BNC/bnccaster.cpp

    r273 r275  
    2727bncCaster::bncCaster(const QString& outFileName, int port) {
    2828
     29  QSettings settings;
     30
    2931  if ( !outFileName.isEmpty() ) {
    3032    QString lName = outFileName;
    3133    expandEnvVar(lName);
    3234    _outFile = new QFile(lName);
    33     _outFile->open(QIODevice::WriteOnly);
     35    if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) {
     36      _outFile->open(QIODevice::WriteOnly | QIODevice::Append);
     37    }
     38    else {
     39      _outFile->open(QIODevice::WriteOnly);
     40    }
    3441    _out = new QTextStream(_outFile);
    3542    _out->setRealNumberNotation(QTextStream::FixedNotation);
     
    5865  _lastDumpSec   = 0;
    5966
    60   QSettings settings;
    6167  _samplingRate = settings.value("rnxSampl").toInt();
    6268  _waitTime     = settings.value("waitTime").toInt();
Note: See TracChangeset for help on using the changeset viewer.