Changeset 2526 in ntrip


Ignore:
Timestamp:
Aug 3, 2010, 1:44:55 PM (14 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r2525 r2526  
    387387      }
    388388      else if (_rawFile) {
    389         data = _rawFile->readChunk();
     389        QByteArray currStaID;
     390        QByteArray currFormat;
     391        data = _rawFile->readChunk(currStaID, currFormat);
    390392
    391393        if (data.isEmpty()) {
  • trunk/BNC/bncrawfile.cpp

    r2525 r2526  
    105105// Raw Input
    106106////////////////////////////////////////////////////////////////////////////
    107 QByteArray bncRawFile::readChunk() {
     107QByteArray bncRawFile::readChunk(QByteArray& currStaID, QByteArray& currFormat){
    108108
    109109  QByteArray data;
     
    113113    QStringList lst  = line.split(' ');
    114114   
    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();
    118118
    119119    data = _inpFile->read(nBytes);
  • trunk/BNC/bncrawfile.h

    r2523 r2526  
    4343  QByteArray format() const {return _format;}
    4444  QByteArray staID() const {return _staID;}
    45   QByteArray readChunk();
     45  QByteArray readChunk(QByteArray& currStaID, QByteArray& currFormat);
    4646  void writeRawData(const QByteArray& data, const QByteArray& staID,
    4747                    const QByteArray& format);
Note: See TracChangeset for help on using the changeset viewer.