DUECA/DUSIME
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
dueca::hdf5log::HDF5DCOReadFunctor Class Reference

For reading DCO objects elements from a HDF file. More...

#include <HDF5DCOReadFunctor.hxx>

Inheritance diagram for dueca::hdf5log::HDF5DCOReadFunctor:
Inheritance graph
[legend]
Collaboration diagram for dueca::hdf5log::HDF5DCOReadFunctor:
Collaboration graph
[legend]

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< LogDataSetsets
 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.
 

Detailed Description

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.

Member Function Documentation

◆ getTick()

TimeTickType dueca::hdf5log::HDF5DCOReadFunctor::getTick ( bool nextrow = false)

Local function to flush/write and prepare for next present data.

Parameters
nextrowIf true; and advance the index, so that a next getTick will read new data.
Returns
Time associated with the current data row

Member Data Documentation

◆ sets

std::vector<LogDataSet> dueca::hdf5log::HDF5DCOReadFunctor::sets
protected

One set per element/member of the DCO object.

If applicable, the last set is for the time tick.


The documentation for this class was generated from the following file: