Changeset 2526 in ntrip
- Timestamp:
- Aug 3, 2010, 1:44:55 PM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r2525 r2526 387 387 } 388 388 else if (_rawFile) { 389 data = _rawFile->readChunk(); 389 QByteArray currStaID; 390 QByteArray currFormat; 391 data = _rawFile->readChunk(currStaID, currFormat); 390 392 391 393 if (data.isEmpty()) { -
trunk/BNC/bncrawfile.cpp
r2525 r2526 105 105 // Raw Input 106 106 //////////////////////////////////////////////////////////////////////////// 107 QByteArray bncRawFile::readChunk( ){107 QByteArray bncRawFile::readChunk(QByteArray& currStaID, QByteArray& currFormat){ 108 108 109 109 QByteArray data; … … 113 113 QStringList lst = line.split(' '); 114 114 115 QByteArray staID_current= lst.value(0).toAscii();116 QByteArray format_current = lst.value(1).toAscii();117 int nBytes= lst.value(2).toInt();115 currStaID = lst.value(0).toAscii(); 116 currFormat = lst.value(1).toAscii(); 117 int nBytes = lst.value(2).toInt(); 118 118 119 119 data = _inpFile->read(nBytes); -
trunk/BNC/bncrawfile.h
r2523 r2526 43 43 QByteArray format() const {return _format;} 44 44 QByteArray staID() const {return _staID;} 45 QByteArray readChunk( );45 QByteArray readChunk(QByteArray& currStaID, QByteArray& currFormat); 46 46 void writeRawData(const QByteArray& data, const QByteArray& staID, 47 47 const QByteArray& format);
Note:
See TracChangeset
for help on using the changeset viewer.