Changeset 2524 in ntrip


Ignore:
Timestamp:
Aug 3, 2010, 1:31:49 PM (14 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncrawfile.cpp

    r2523 r2524  
    6161    _inpFile = new QFile(_fileName);
    6262    _inpFile->open(QIODevice::ReadOnly);
    63     QString line = _inpFile->readLine();
    64     QStringList lst1 = line.split(' ');
    65     _version = lst1.value(0).toInt();
     63    QString     line = _inpFile->readLine();
     64    QStringList lst  = line.split(' ');
     65    _version = lst.value(0).toInt();
    6666
    6767    line = _inpFile->readLine();
     
    106106QByteArray bncRawFile::readChunk() {
    107107
    108   return "";
     108  QByteArray data;
    109109
    110   //// beg test
    111   ////  msleep(10);
    112   //// end test
     110  if (_inpFile) {
     111    QString     line = _inpFile->readLine();
     112    QStringList lst  = line.split(' ');
     113   
     114    QByteArray staID_current  = lst.value(0).toAscii();
     115    QByteArray format_current = lst.value(1).toAscii();
     116    int        nBytes         = lst.value(2).toInt();
     117
     118    cout << line.toAscii().data() << endl;
     119
     120    data = _inpFile->read(nBytes);
     121
     122    _inpFile->read(1);
     123  }
     124
     125  return data;
    113126}
    114127
Note: See TracChangeset for help on using the changeset viewer.