15 #ifndef __H5DataType_H
16 #define __H5DataType_H
31 DataType(
const H5T_class_t type_class,
size_t size);
45 DataType(
const Attribute& attr,
const void* ref, H5R_type_t ref_type = H5R_OBJECT);
51 void copy(
const DataType& like_type);
64 H5T_class_t getClass()
const;
68 void commit(
const H5Location& loc,
const char* name);
69 void commit(
const H5Location& loc,
const H5std_string& name);
73 bool committed()
const;
77 H5T_conv_t find(
const DataType& dest, H5T_cdata_t **pcdata)
const;
86 bool operator==(
const DataType& compared_type)
const;
92 size_t getSize()
const;
99 void registerFunc(H5T_pers_t pers,
const char* name,
const DataType& dest, H5T_conv_t func)
const;
100 void registerFunc(H5T_pers_t pers,
const H5std_string& name,
const DataType& dest, H5T_conv_t func)
const;
103 void unregister(H5T_pers_t pers,
const char* name,
const DataType& dest, H5T_conv_t func)
const;
104 void unregister(H5T_pers_t pers,
const H5std_string& name,
const DataType& dest, H5T_conv_t func)
const;
107 void setTag(
const char* tag)
const;
108 void setTag(
const H5std_string& tag)
const;
111 H5std_string getTag()
const;
114 bool detectClass(H5T_class_t cls)
const;
117 bool isVariableStr()
const;
123 virtual H5std_string
fromClass ()
const {
return(
"DataType"); }
132 bool hasBinaryDesc()
const;
135 virtual hid_t getId()
const;
141 #ifndef DOXYGEN_SHOULD_SKIP_THIS
146 hid_t p_decode()
const;
149 virtual void p_setId(
const hid_t new_id);
152 hid_t p_opentype(
const H5Location& loc,
const char* dtype_name)
const;
153 #endif // DOXYGEN_SHOULD_SKIP_THIS
158 unsigned char *encoded_buf;
162 friend void f_DataType_setId(
DataType* dtype, hid_t new_id);
164 #ifndef DOXYGEN_SHOULD_SKIP_THIS
165 void p_commit(hid_t loc_id,
const char* name);
166 #endif // DOXYGEN_SHOULD_SKIP_THIS
171 #endif // __H5DataType_H
Class PredType holds the definition of all the HDF5 predefined datatypes.
Definition: H5PredType.h:28
Class Attribute operates on HDF5 attributes.
Definition: H5Attribute.h:29
Class DataType provides generic operations on HDF5 datatypes.
Definition: H5DataType.h:28
Class H5Object is a bridge between H5Location and DataSet, DataType, and Group.
Definition: H5Object.h:37
virtual H5std_string fromClass() const
Returns this class name.
Definition: H5DataType.h:123
H5Location is an abstract base class, providing a collection of wrappers of the C functions that take...
Definition: H5Location.h:42
Class DataSet operates on HDF5 datasets.
Definition: H5DataSet.h:28
Class PropList provides operations for generic property lists.
Definition: H5PropList.h:26
static const PropList & DEFAULT
Default property list.
Definition: H5PropList.h:29