22#ifndef LIBH5_STL_STRING_HPP
23#define LIBH5_STL_STRING_HPP
44 static std::string invoke() {
return "string"; }
54 void h5_write(
group g, std::string
const &name, std::string
const &s);
72 void h5_read(group g, std::string
const &name, std::string &s);
78 inline void h5_read(
group g, std::string
const &name,
char *s) =
delete;
A handle to an HDF5 group.
A generic handle for HDF5 objects.
Provides a handle to an HDF5 group and various methods to simplify the creation/opening of subgroups,...
T h5_read(group g, std::string const &key)
Generic implementation for reading from an HDF5 dataset/subgroup.
T h5_read_attribute_from_key(group g, std::string const &key, std::string const &name)
Generic implementation for reading an HDF5 attribute.
T h5_read_attribute(object obj, std::string const &name)
Generic implementation for reading an HDF5 attribute.
void h5_write(group g, std::string const &name, T const &x) H5_REQUIRES(std
Write a scalar to an HDF5 dataset.
void h5_write_attribute(object obj, std::string const &name, T const &x) H5_REQUIRES(std
Write a scalar to an HDF5 attribute.
void h5_write_attribute_to_key(group g, std::string const &key, std::string const &name, std::string const &s)
Write a std::string to an HDF5 attribute.
std::vector< hsize_t > v_t
Vector of h5::hsize_t used throughout the h5 library.
Stores an arbitrary number of strings in a 1-dimensional std::vector<char>.
dataspace dspace() const
Get the HDF5 dataspace.
datatype dtype() const
Get the HDF5 datatype.
v_t lengths
Stores the number of strings in each dimension and the max. allowed length of the strings + 1.
std::vector< char > buffer
Stores strings in a 1-dimensional vector.