#include <Hdf5IncrementalReader.h>
Public Member Functions | |
| Hdf5IncrementalReader (hid_t dataSet) | |
| virtual | ~Hdf5IncrementalReader () |
| bool | selectHyperslab (H5S_seloper_t operation, const hsize_t *pStart, const hsize_t *pStride, const hsize_t *pCount, const hsize_t *pBlock) |
| bool | selectElements (H5S_seloper_t operation, const size_t num_elements, const hsize_t *pCoord) |
| bool | selectAll () |
| bool | selectNone () |
| bool | isSelectionValid () const |
| hid_t | getDataSet () const |
| hid_t | getSelectionDataSpace () const |
| hssize_t | getNumberOfSelectedPoints () const |
| template<typename T> | |
| T * | readSelectedData () const |
Protected Attributes | |
| hid_t | mDataset |
| hid_t | mDataspace |
Definition at line 27 of file Hdf5IncrementalReader.h.
| Hdf5IncrementalReader::Hdf5IncrementalReader | ( | hid_t | dataSet | ) |
Construct an instance of this reader to read data from the provided HDF5 dataset.
| dataSet | A HDF5 dataset handle to an already open HDF5 dataset. This dataset handle will not be closed by the reader. |
| virtual Hdf5IncrementalReader::~Hdf5IncrementalReader | ( | ) | [virtual] |
Destroys the Hdf5IncrementalReader.
The HDF5 dataset handle provided in the constructor is NOT closed.
| bool Hdf5IncrementalReader::selectHyperslab | ( | H5S_seloper_t | operation, | |
| const hsize_t * | pStart, | |||
| const hsize_t * | pStride, | |||
| const hsize_t * | pCount, | |||
| const hsize_t * | pBlock | |||
| ) |
Selects points in the dataset that will be read when calling readSelecteData().
This method is a wrapper for H5Sselect_hyperslab(). Please reference the documentation in the HDF5 library for more details.
| operation | Please see H5Sselect_hyperslab() documentation. | |
| pStart | Please see H5Sselect_hyperslab() documentation. | |
| pStride | Please see H5Sselect_hyperslab() documentation. | |
| pCount | Please see H5Sselect_hyperslab() documentation. | |
| pBlock | Please see H5Sselect_hyperslab() documentation. |
| bool Hdf5IncrementalReader::selectElements | ( | H5S_seloper_t | operation, | |
| const size_t | num_elements, | |||
| const hsize_t * | pCoord | |||
| ) |
Selects points in the dataset that will be read when calling readSelecteData().
This method is a wrapper for H5Sselect_elements(). Please reference the documentation in the HDF5 library for more details.
| operation | Please see H5Sselect_elements() documentation. | |
| num_elements | Please see H5Sselect_elements() documentation. | |
| pCoord | Please see H5Sselect_elements() documentation. |
| bool Hdf5IncrementalReader::selectAll | ( | ) |
Selects all points in the dataset, so that they will be read when calling readSelectedData().
This method is a wrapper for H5Sselect_all(). Please reference the documentation in the HDF5 library for more details.
| bool Hdf5IncrementalReader::selectNone | ( | ) |
Selects no points in the dataset, so that nothing will be read when calling readSelectedData().
This method is a wrapper for H5Sselect_none(). Please reference the documentation in the HDF5 library for more details.
| bool Hdf5IncrementalReader::isSelectionValid | ( | ) | const |
Returns true if the current selection is valid for the dataset.
This method is a wrapper for H5Sselect_valid().
| hid_t Hdf5IncrementalReader::getDataSet | ( | ) | const |
Returns a handle to the HDF5 dataset that was provided in the constructor.
| hid_t Hdf5IncrementalReader::getSelectionDataSpace | ( | ) | const |
Returns a handle to the HDF5 dataspace that will be used as the selection when reading data out of the HDF5 dataset.
| hssize_t Hdf5IncrementalReader::getNumberOfSelectedPoints | ( | ) | const |
Returns a count of the number of points that are selected in the HDF5 dataset for reading.
This method is a wrapper for H5Sget_select_npoints() using the dataspace handle returned from getSelectionDataSpace().
| T* Hdf5IncrementalReader::readSelectedData | ( | ) | const |
Reads the selected data from the HDF dataset as the given type.
The caller of this function is responsible for deleting the returned memory.
Definition at line 163 of file Hdf5IncrementalReader.h.
hid_t Hdf5IncrementalReader::mDataset [protected] |
Definition at line 197 of file Hdf5IncrementalReader.h.
hid_t Hdf5IncrementalReader::mDataspace [protected] |
Definition at line 198 of file Hdf5IncrementalReader.h.