- Timestamp:
- Aug 3, 2010, 1:31:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncrawfile.cpp
r2523 r2524 61 61 _inpFile = new QFile(_fileName); 62 62 _inpFile->open(QIODevice::ReadOnly); 63 QString line = _inpFile->readLine();64 QStringList lst 1= line.split(' ');65 _version = lst 1.value(0).toInt();63 QString line = _inpFile->readLine(); 64 QStringList lst = line.split(' '); 65 _version = lst.value(0).toInt(); 66 66 67 67 line = _inpFile->readLine(); … … 106 106 QByteArray bncRawFile::readChunk() { 107 107 108 return "";108 QByteArray data; 109 109 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; 113 126 } 114 127
Note:
See TracChangeset
for help on using the changeset viewer.