1#ifndef _HDF5SERIE_UTILS_H_
2#define _HDF5SERIE_UTILS_H_
6#include <boost/core/demangle.hpp>
14 VecStr(
size_t size) : arr(size,
nullptr) {}
19 void alloc(
size_t i,
size_t size) { free(arr[i]); arr[i]=
static_cast<char*
>(malloc((size+1)*
sizeof(
char))); }
20 char *&operator[](
size_t i) {
return arr[i]; }
22 std::vector<char*> arr;
26ScopedHID getMemDataTypeID(
ScopedHID filedt,
const std::string &path,
const std::string &className) {
29 if(H5Tget_class(filedt) == H5T_STRING && std::is_same_v<T,std::string>)
32 return ScopedHID(H5Tcopy(toH5Type<T>()), &H5Tclose);
Definition: interface.h:78