| 81 | |
| 82 | |
| 83 | point_count_t HdfReader::read(PointViewPtr view, point_count_t count) |
| 84 | { |
| 85 | PointId startId = view->size(); |
| 86 | point_count_t remaining = m_hdf5Handler->getNumPoints() - m_index; |
| 87 | count = (std::min)(count, remaining); |
| 88 | PointId nextId = startId; |
| 89 | |
| 90 | for(uint64_t pi = 0; pi < m_hdf5Handler->getNumPoints(); pi++) { |
| 91 | for(hdf5::DimInfo& dim : m_hdf5Handler->getDimensions()) { |
| 92 | uint8_t *p = dim.getValue(pi); |
| 93 | view->setField(dim.getId(), dim.getPdalType(), nextId, (void*) p); |
| 94 | } |
| 95 | m_index++; |
| 96 | nextId++; |
| 97 | } |
| 98 | |
| 99 | return count; |
| 100 | } |
| 101 | |
| 102 | |
| 103 | bool HdfReader::processOne(PointRef& point) |
no test coverage detected