Changeset 1137 in ntrip
- Timestamp:
- Oct 2, 2008, 2:10:50 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r1130 r1137 147 147 _rnx_set_position = false; 148 148 149 150 // Raw Output 151 // ---------- 152 if (false) { // special option used for testing 153 QByteArray rawFileName = "./" + _staID + ".raw"; 154 _rawFile = new QFile(rawFileName); 155 _rawFile->open(QIODevice::WriteOnly); 156 } 157 else { 158 _rawFile = 0; 159 } 160 149 161 msleep(100); //sleep 0.1 sec 150 162 } … … 163 175 delete _decoder; 164 176 delete _rnx; 177 delete _rawFile; 165 178 } 166 179 … … 463 476 char* data = new char[nBytes]; 464 477 _socket->read(data, nBytes); 478 479 if (_rawFile) { 480 _rawFile->write(data, nBytes); 481 _rawFile->flush(); 482 } 465 483 466 484 if (_inspSegm<1) { -
trunk/BNC/bncgetthread.h
r1044 r1137 29 29 #include <QtNetwork> 30 30 #include <QDateTime> 31 #include <QFile> 31 32 32 33 #include "RTCM/GPSDecoder.h" … … 108 109 QDateTime _decodeSucc; 109 110 QMutex _mutex; 111 QFile* _rawFile; 110 112 }; 111 113
Note:
See TracChangeset
for help on using the changeset viewer.