32 #ifndef INDEX_OUTPUT_STREAM_H 33 #define INDEX_OUTPUT_STREAM_H 69 float* bufferToReuse =
nullptr);
virtual void reopen()
Reopen the output stream after restart and reload data.
Output stream for quantities sampled by an index sensor mask.
The class for real matrices.
virtual void create()
Create a HDF5 stream and allocate data for it.
const IndexMatrix & sensorMask
Sensor mask to sample data.
hid_t mDataset
Handle to a HDF5 dataset.
size_t mSampledTimeStep
Time step to store (N/A for aggregated).
virtual ~IndexOutputStream()
Destructor.
virtual void close()
Close stream (apply post-processing if necessary, flush data and close).
virtual void postProcess()
Apply post-processing on the buffer and flush it to the file.
virtual void sample()
Sample data into buffer, apply reduction or flush to disk - based on a sensor mask.
Class wrapping the HDF5 routines.
IndexOutputStream()=delete
Default constructor not allowed.
const std::string MatrixName
Datatype for matrix names.
ReduceOperator
How to aggregate data.
The header file of the class saving RealMatrix data into the output HDF5 file.
virtual void checkpoint()
Checkpoint the stream.
The class for 64b unsigned integers (indices). It is used for linear and cuboid corners masks to get ...
Abstract base class for output data streams (sampled data).
virtual void flushBufferToFile()
Flush the buffer to the file.