I know these examples and they help me to understand the structures, but I
don't find string examples and (string) array examples. I have a hdf5 file
(created with Matlab) and I would like to read in my C++ program. My code:
std::vector<std::string> hdf::readStringVector( const std::string& p_path )
const
{
H5::DataSet l_dataset = m_file.openDataSet( p_path.c_str() );
H5::DataSpace l_dataspace = l_dataset.getSpace();
hsize_t l_size[1];
l_dataspace.getSimpleExtentDims( l_size );
l_dataspace.close();
std::vector<std::string> l_vec( l_size[0] );
*** How can I read the array data
return l_vec;
}
--
View this message in context:
http://hdf-forum.184993.n3.nabble.com/HDF5-with-C-tp874249p876706.html
Sent from the hdf-forum mailing list archive at Nabble.com.
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org