libSplash
|
#include <ColTypeString.hpp>
Public Member Functions | |
ColTypeString (size_t len) | |
size_t | getSize () const |
std::string | toString () const |
bool | isVariableLength () const |
bool | isNullTerminated () const |
![]() | |
const H5DataType & | getDataType () const |
virtual | ~CollectionType () |
Static Public Member Functions | |
static CollectionType * | genType (hid_t datatype_id) |
Variable and fixed length strings
Do not forget that C-strings are NULL-terminated. As in <cstring>'s strlen() our length in the API does not count the terminator, but c-strings still MUST end with it, else HDF5 write/reads will fail.
Definition at line 43 of file ColTypeString.hpp.
|
inlinevirtual |
Returns the size in bytes of the datatype.
Implements splash::CollectionType.
Definition at line 66 of file ColTypeString.hpp.
|
inlinevirtual |
Returns a human-readable representation of the datatype.
Implements splash::CollectionType.
Definition at line 93 of file ColTypeString.hpp.