DUECA/DUSIME
|
For reading DCO objects elements from a HDF file. More...
#include <HDF5DCOReadFunctor.hxx>
Classes | |
struct | LogDataSet |
Organize data per element. More... | |
Public Member Functions | |
TimeTickType | getTick (bool nextrow=false) |
Local function to flush/write and prepare for next present data. | |
HDF5DCOReadFunctor (std::weak_ptr< H5::H5File > &file, const std::string &path, size_t nelts, bool readticks) | |
Constructor. | |
const std::string & | getLabel () |
obtain the label attached to the data | |
virtual | ~HDF5DCOReadFunctor () |
Destructor. | |
Public Member Functions inherited from dueca::DCOFunctor | |
DCOFunctor () | |
Constructor. | |
virtual | ~DCOFunctor () |
Destructor. | |
virtual bool | operator() (const void *dpointer, const DataTimeSpec &ts) |
function base, with const pointer (for channel reading) | |
virtual bool | operator() (void *dpointer) |
function base, updates data object | |
Protected Member Functions | |
void | configureDataSet (unsigned idx, const std::string &name, hsize_t offset, const H5::DataType *datatype, hsize_t ncols) |
Configure a dataset. | |
Protected Attributes | |
size_t | readidx |
Index in the chunk sets. | |
bool | advance |
Flag to indicate an advance in data reading. | |
size_t | nrows |
Number of rows available. | |
bool | readticks |
read ticks too (only for leaf child, not for parent objects) | |
std::vector< LogDataSet > | sets |
One set per element/member of the DCO object. | |
std::string | basepath |
Base path for writing the data; under this a set of 1 + 2d vectors will be defined. | |
For reading DCO objects elements from a HDF file.
Elements can contain either scalars, fixed-length vectors or variable length vectors of data. From a base path, each element gets a dataset with its name.
TimeTickType dueca::hdf5log::HDF5DCOReadFunctor::getTick | ( | bool | nextrow = false | ) |
Local function to flush/write and prepare for next present data.
nextrow | If true; and advance the index, so that a next getTick will read new data. |
|
protected |
One set per element/member of the DCO object.
If applicable, the last set is for the time tick.