38#ifndef __BASE_STATS_HDF5_HH__
39#define __BASE_STATS_HDF5_HH__
62 Hdf5(
const std::string &file,
unsigned chunking,
bool desc,
bool formulas);
70 void begin()
override;
72 bool valid()
const override;
133 const std::string &value);
157 const std::string &filename,
unsigned chunking = 10,
158 bool desc =
true,
bool formulas =
true);
H5::DataSet appendStat(const Info &info, int rank, hsize_t *dims, const double *data)
Helper function to append an n-dimensional double stat to the file.
bool valid() const override
const bool enableDescriptions
void addMetaData(H5::DataSet &loc, const char *name, const std::vector< const char * > &values)
Helper function to add a string vector attribute to a stat.
std::stack< H5::Group > path
Hdf5(const Hdf5 &other)=delete
H5::DataSet appendVectorInfo(const VectorInfo &info)
Helper function to append vector stats and set their metadata.
void visit(const ScalarInfo &info) override
void beginGroup(const char *name) override
std::unique_ptr< Output > initHDF5(const std::string &filename, unsigned chunking, bool desc, bool formulas)
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
const std::string & name()