2#ifndef included_AMP_HDF5_h
3#define included_AMP_HDF5_h
5#include "AMP/AMP_TPLs.h"
6#include "AMP/utils/AMP_MPI.h"
7#include "AMP/utils/ArraySize.h"
138void writeHDF5(
hid_t fid,
const std::string &name,
size_t N_bytes,
const void *data );
149void readHDF5(
hid_t fid,
const std::string &name,
size_t N_bytes,
void *data );
242std::tuple<std::vector<hid_t>,
Provides C++ wrapper around MPI routines.
Simple class to store the array dimensions.
void closeHDF5(hid_t fid, bool printLeaks=false)
Open an HDF5 file.
std::string filename(const std::string &filename)
Return the filename (strip the path)
bool HDF5enabled()
Is HDF5 enabled.
void closeDatatype(hid_t fid)
Close a datatype.
hid_t createGroup(hid_t fid, const std::string &name)
Create a group.
void readHDF5(hid_t fid, const std::string &name, T &data)
Read a structure from HDF5.
void closeDataspace(hid_t fid)
Close a dataspace.
hid_t getHDF5datatype()
Get HDF5 data type.
void closeDataset(hid_t fid)
Close a dataset.
Compression defaultCompression(hid_t fid)
Retrun the the default compression.
bool H5Gexists(hid_t fid, const std::string &name)
Check if group exists.
void writeHDF5(hid_t fid, const std::string &name, const T &data)
Write a structure to HDF5.
hid_t openGroup(hid_t fid, const std::string &name, bool create=false)
Open a group.
bool H5Dexists(hid_t fid, const std::string &name)
Check if dataset exists.
std::tuple< std::vector< hid_t >, std::vector< hid_t >, std::vector< hid_t >, std::vector< hid_t >, std::vector< hid_t > > openObjects(hid_t fid)
list open objects
hid_t openHDF5(const std::string &filename, const char *mode, Compression compress=Compression::None)
Open an HDF5 file.
void closeGroup(hid_t fid)
Close a group.
hid_t createChunk(AMP::ArraySize dims, Compression compress, size_t objSize=0)
Open an HDF5 file.