Changeset 1072 in ntrip


Ignore:
Timestamp:
Aug 27, 2008, 1:38:06 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r1069 r1072  
    113113  }
    114114
     115  // Echo input from RTNet into a file
     116  // ---------------------------------
     117  QString echoFileName = settings.value("inpEcho").toString();
     118  if (echoFileName.isEmpty()) {
     119    _echoFile   = 0;
     120    _echoStream = 0;
     121  }
     122  else {
     123    _echoFile = new QFile(echoFileName);
     124    if (_echoFile->open(oMode)) {
     125      _echoStream = new QTextStream(_echoFile);
     126    }
     127    else {
     128      _echoStream = 0;
     129    }
     130  }
     131
    115132  // RINEX writer
    116133  // ------------
     
    153170  delete _logStream;
    154171  delete _logFile;
     172  delete _echoStream;
     173  delete _echoFile;
    155174  QMapIterator<QString, t_ephPair*> it(_ephList);
    156175  while (it.hasNext()) {
     
    271290
    272291  QByteArray line = _clkSocket->readLine();
     292
     293  if (_echoStream) {
     294    *_echoStream << line << endl;
     295    _echoStream->flush();
     296  }
    273297
    274298  emit(newClkBytes(line.length()));
  • trunk/BNS/bns.h

    r1066 r1072  
    7070  QFile*                    _logFile;
    7171  QTextStream*              _logStream;
     72  QFile*                    _echoFile;
     73  QTextStream*              _echoStream;
    7274  t_bnseph*                 _bnseph;
    7375  QMutex                    _mutex;
Note: See TracChangeset for help on using the changeset viewer.