24 #ifndef COLTYPESTRING_H 25 #define COLTYPESTRING_H 27 #include "splash/CollectionType.hpp" 49 this->type = H5Tcopy(H5T_C_S1);
50 H5Tset_size(this->type, H5T_VARIABLE);
55 this->type = H5Tcopy(H5T_C_S1);
58 H5Tset_size(this->type, len + 1);
68 size_t myElements = H5Tget_size(this->type);
72 if(isVariableLength())
74 else if( isNullTerminated() )
75 return sizeof(char) * (myElements - 1);
77 return sizeof(char) * myElements;
82 H5T_class_t h5_class = H5Tget_class(datatype_id);
84 if(h5_class == H5T_STRING)
95 if(isVariableLength())
101 bool isVariableLength()
const 103 return H5Tis_variable_str(this->type);
106 bool isNullTerminated()
const 108 return H5Tget_strpad(type) == H5T_STR_NULLTERM;
std::string toString() const