| H5::StrType::StrType | ( | const PredType & | pred_type | ) |
Creates a string datatype using a predefined type.
| pred_type | - IN: Predefined datatype |
| H5::DataTypeIException |
References H5::DataType::copy().
| H5::StrType::StrType | ( | const PredType & | pred_type, | |
| const size_t & | size | |||
| ) |
Creates a string datatype with a specified length.
| pred_type | - IN: String predefined type to replicate. | |
| size | - IN: Length of the new string type |
| H5::DataTypeIException |
References H5::DataType::copy(), and H5::AtomType::setSize().
| H5::StrType::StrType | ( | const int | dummy, | |
| const size_t & | size | |||
| ) |
Creates a string datatype with a specified length.
| dummy | - IN: To simplify calling the previous constructor and avoid prototype clash with another constructor | |
| size | - IN: Length of the new string type |
| H5::DataTypeIException |
References H5::DataType::copy(), and H5::AtomType::setSize().
| H5::StrType::StrType | ( | const DataSet & | dataset | ) |
Gets the string datatype of the specified dataset.
| dataset | - IN: Dataset that this string datatype associates with |
| H5::DataTypeIException |
References H5::DataSet::getId().
| H5::StrType::StrType | ( | const hid_t | existing_id | ) |
Creates an StrType object using the id of an existing datatype.
| existing_id | - IN: Id of an existing datatype |
| H5::DataTypeIException |
| H5T_cset_t H5::StrType::getCset | ( | ) | const |
Retrieves the character set type of this string datatype.
H5T_CSET_ASCII (0) - Character set is US ASCII. | H5::DataTypeIException |
| H5T_str_t H5::StrType::getStrpad | ( | ) | const |
Retrieves the storage mechanism for of this string datatype.
H5T_STR_NULLTERM (0) - Null terminate (as C does) H5T_STR_NULLPAD (0) - Pad with zeros H5T_STR_SPACEPAD (0) - pad with spaces (as FORTRAN does) | H5::DataTypeIException |
| void H5::StrType::setCset | ( | H5T_cset_t | cset | ) | const |
Sets character set to be used.
| cset | - IN: character set type, which can be:
|
| H5::DataTypeIException |
| void H5::StrType::setStrpad | ( | H5T_str_t | strpad | ) | const |
Defines the storage mechanism for this string datatype.
| strpad | - IN: String padding type |
| H5::DataTypeIException |
1.6.2