16 #define H5_BUILT_AS_DYNAMIC_LIB
18 #define H5_BUILT_AS_STATIC_LIB
41 Storage(
string fname,
bool write);
53 bool hasGroup(
const string&
id)
const;
62 bool checkGroup(
const string&
id,
bool permissive=
false);
71 pair<size_t, set<string>>
contents(
const string&
id)
const;
76 bool hasAttribute(
const string&
id,
const string& attr)
const;
101 const string& name,
size_t rows,
size_t cols=
npos)
const;
115 bool checkGroupRead(
const string&
id)
const;
118 bool checkGroupWrite(
const string&
id,
bool permissive);
120 unique_ptr<HighFive::File> m_file;
122 int m_compressionLevel=0;
A map of string keys to values whose type can vary at runtime.
A wrapper for a variable whose type is determined at runtime.
A wrapper class handling storage to HDF.
pair< size_t, set< string > > contents(const string &id) const
Retrieve contents of file from a specified location.
bool hasGroup(const string &id) const
Check whether location id represents a group.
void writeAttributes(const string &id, const AnyMap &meta)
Write attributes to a specified location.
void deleteGroup(const string &id)
Delete group.
AnyMap readAttributes(const string &id, bool recursive) const
Read attributes from a specified location.
bool hasAttribute(const string &id, const string &attr) const
Read attributes from a specified location.
AnyValue readData(const string &id, const string &name, size_t rows, size_t cols=npos) const
Read dataset from a specified location.
bool checkGroup(const string &id, bool permissive=false)
Check whether path location exists.
void setCompressionLevel(int level)
Set compression level (0..9)
void writeData(const string &id, const string &name, const AnyValue &data)
Write dataset to a specified location.
This file contains definitions of constants, types and terms that are used in internal routines and a...
Namespace for the Cantera kernel.
const size_t npos
index returned by functions to indicate "no position"
Contains declarations for string manipulation functions within Cantera.