Changeset 1072 in ntrip
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r1069 r1072 113 113 } 114 114 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 115 132 // RINEX writer 116 133 // ------------ … … 153 170 delete _logStream; 154 171 delete _logFile; 172 delete _echoStream; 173 delete _echoFile; 155 174 QMapIterator<QString, t_ephPair*> it(_ephList); 156 175 while (it.hasNext()) { … … 271 290 272 291 QByteArray line = _clkSocket->readLine(); 292 293 if (_echoStream) { 294 *_echoStream << line << endl; 295 _echoStream->flush(); 296 } 273 297 274 298 emit(newClkBytes(line.length())); -
trunk/BNS/bns.h
r1066 r1072 70 70 QFile* _logFile; 71 71 QTextStream* _logStream; 72 QFile* _echoFile; 73 QTextStream* _echoStream; 72 74 t_bnseph* _bnseph; 73 75 QMutex _mutex;
Note:
See TracChangeset
for help on using the changeset viewer.