You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Filefile(filename, File::ReadOnly);
auto dataset=file.getDataSet("path/to/dataset");
std::vector<Data>data;
dataset.read(data);
But I unable to register my Data type. I've tried going about this a few ways, but none have worked so far. Things I've tried:
Option 1: C-style arrays
Using code displayed above.
Compiler error:
C:\Program Files (x86)\HighFive\include\highfive\bits/H5DataType_misc.hpp(206,57): error C2338: static_assert failed: 'Atomic types cant be arrays, except for char[] (fixed-length strings)' [...\hdf5_reader\C++\build\hdf5_reader.vcxproj]C:\Program Files (x86)\HighFive\include\highfive\bits/H5DataType_misc.hpp(205,29): message : while compiling class template member function 'HighFive::AtomicType<T>::AtomicType(void)' [...\hdf5_reader\C++\build\hdf5_reader.vcxproj] with [ T=__int64 [5] ]...
This makes sense since I don't see any AtomicType template specializations for C arrays anywhere.
C:\Program Files (x86)\HighFive\include\highfive\bits\H5Converter_misc.hpp(118,23): error C2338: static_assert failed: 'The type is not trivially copyable' [...\hdf5_reader\C++\build\hdf5_reader.vcxproj]C:\Program Files (x86)\HighFive\include\highfive\bits\H5Converter_misc.hpp(117,1): message : while compiling class template member function 'void HighFive::details::type_helper<T>::unserialize(const Data *,const std::vector<hsize_t,std::allocator<hsize_t>> &,Data &)' [...\hdf5_reader\C++\build\hdf5_reader.vcxproj] with [ T=Data ]...
Related topics
I've seen a few related topics, but none of them seem to answer the question. Perhaps I'm not understanding how to use the inspector?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm having trouble reading a compound dataset that contains arrays. The dataset looks like this:
And I'd expect to read it like this:
But I unable to register my
Data
type. I've tried going about this a few ways, but none have worked so far. Things I've tried:Option 1: C-style arrays
Using code displayed above.
Compiler error:
This makes sense since I don't see any AtomicType template specializations for C arrays anywhere.
Option 2: std arrays or vectors
Compiler error:
Related topics
I've seen a few related topics, but none of them seem to answer the question. Perhaps I'm not understanding how to use the
inspector
?CompoundType
. (Does theinspector
need to be used somehow...?)Beta Was this translation helpful? Give feedback.
All reactions