| 309 | |
| 310 | |
| 311 | void QfitReader::ready(PointTableRef) |
| 312 | { |
| 313 | m_numPoints = m_point_bytes / m_size; |
| 314 | if (m_point_bytes % m_size) |
| 315 | throwError("Error calculating file point count. File size is " |
| 316 | "inconsistent with point size."); |
| 317 | m_index = 0; |
| 318 | m_istream.reset(new IStream(m_filename)); |
| 319 | m_istream->seek(m_offset); |
| 320 | } |
| 321 | |
| 322 | |
| 323 | point_count_t QfitReader::read(PointViewPtr data, point_count_t count) |