Go to the documentation of this file.
22 static constexpr
bool is_char_array = ! std::is_same<char_array_t, void>::value;
33 template <
typename SrcStrT>
44 template <std::
size_t FixedLen>
54 throw DataSetException(
"Can't output variable-length to fixed-length strings");
60 : is_fixed_len_string(dtype.isFixedLenStr())
63 ((is_fixed_len_string && is_char_array) ? 1 : 0))
68 "Use raw arrays or FixedLenStringArray");
72 std::cerr <<
"HighFive WARNING: data and hdf5 dataset have different types: "
static constexpr bool is_char_array
Definition: H5ReadWrite_misc.hpp:22
typename details::type_char_array< type_no_const >::type char_array_t
Definition: H5ReadWrite_misc.hpp:21
const bool is_fixed_len_string
Definition: H5ReadWrite_misc.hpp:27
HDF5 Data Type.
Definition: H5DataType.hpp:42
typename details::type_of_array< type_no_const >::type elem_type
Definition: H5ReadWrite_misc.hpp:20
Definition: H5Utils.hpp:44
const size_t n_dimensions
Definition: H5ReadWrite_misc.hpp:28
Definition: H5ReadWrite_misc.hpp:34
static DataType getDataType(const DataType &, bool ds_fixed_str)
Definition: H5ReadWrite_misc.hpp:52
std::string string() const
Returns a friendly description of the type (e.g. Float32)
Definition: H5DataType_misc.hpp:65
void type
Definition: H5Utils.hpp:183
Exception specific to HighFive DataSet interface.
Definition: H5Exception.hpp:115
Definition: H5ReadWrite_misc.hpp:18
create an HDF5 DataType from a C++ type
Definition: H5_definitions.hpp:36
unqualified_t< T > type
Definition: H5Utils.hpp:137
const DataType data_type
Definition: H5ReadWrite_misc.hpp:29
BufferInfo(const DataType &dtype)
Definition: H5ReadWrite_misc.hpp:59
DataType create_datatype()
Create a DataType instance representing type T.
Definition: H5DataType_misc.hpp:399
DataTypeClass getClass() const
Return the fundamental type.
Definition: H5DataType_misc.hpp:32
static DataType getDataType(const DataType &element_type, bool ds_fixed_str)
Definition: H5ReadWrite_misc.hpp:46
static DataType getDataType(const DataType &, bool)
static DataType getDataType(const DataType &element_type, bool)
Definition: H5ReadWrite_misc.hpp:40
typename std::remove_const< T >::type type_no_const
Definition: H5ReadWrite_misc.hpp:19
Definition: H5_definitions.hpp:15