30 DataType(
const H5T_class_t type_class,
size_t size);
52 void copy(
const DataType &like_type);
65 H5T_class_t getClass()
const;
69 void commit(
const H5Location &loc,
const char *name);
70 void commit(
const H5Location &loc,
const H5std_string &name);
79 bool committed()
const;
83 H5T_conv_t find(
const DataType &dest, H5T_cdata_t **pcdata)
const;
86 void convert(
const DataType &dest,
size_t nelmts,
void *buf,
void *background,
93 bool operator==(
const DataType &compared_type)
const;
96 bool operator!=(
const DataType &compared_type)
const;
102 size_t getSize()
const;
109 void registerFunc(H5T_pers_t pers,
const char *name,
const DataType &dest, H5T_conv_t func)
const;
110 void registerFunc(H5T_pers_t pers,
const H5std_string &name,
const DataType &dest, H5T_conv_t func)
const;
113 void unregister(H5T_pers_t pers,
const char *name,
const DataType &dest, H5T_conv_t func)
const;
114 void unregister(H5T_pers_t pers,
const H5std_string &name,
const DataType &dest, H5T_conv_t func)
const;
117 void setTag(
const char *tag)
const;
118 void setTag(
const H5std_string &tag)
const;
121 H5std_string getTag()
const;
124 bool detectClass(H5T_class_t cls)
const;
125 static bool detectClass(
const PredType &pred_type, H5T_class_t cls);
128 bool isVariableStr()
const;
147 bool hasBinaryDesc()
const;
150 virtual hid_t getId()
const;
156 #ifndef DOXYGEN_SHOULD_SKIP_THIS
161 hid_t p_decode()
const;
164 virtual void p_setId(
const hid_t new_id);
167 hid_t p_opentype(
const H5Location &loc,
const char *dtype_name)
const;
169 #endif // DOXYGEN_SHOULD_SKIP_THIS
174 unsigned char *encoded_buf;
180 void p_commit(hid_t loc_id,
const char *name);
185 #endif // H5DataType_H
bool operator!=(const DataType &compared_type) const
Compares this DataType against the given one to determines whether the two objects refer to different...
Definition: H5DataType.cpp:410
Exception provides wrappers of HDF5 error handling functions.
Definition: H5Exception.h:27
virtual hid_t getId() const
Get the id of this datatype.
Definition: H5DataType.cpp:900
H5std_string getTag() const
Gets the tag associated with an opaque datatype.
Definition: H5DataType.cpp:783
DataType()
Default constructor: Creates a stub datatype.
Definition: H5DataType.cpp:48
void copy(const DataType &like_type)
Copies an existing datatype to this datatype object.
Definition: H5DataType.cpp:208
void incRefCount() const
Increment reference counter for the id of this object.
Definition: H5IdComponent.cpp:54
Class DataSet operates on HDF5 datasets.
Definition: H5DataSet.h:27
Definition: H5Exception.h:109
DataType getSuper() const
Returns the base datatype from which a datatype is derived.
Definition: H5DataType.cpp:647
void setTag(const char *tag) const
Tags an opaque datatype.
Definition: H5DataType.cpp:753
void registerFunc(H5T_pers_t pers, const char *name, const DataType &dest, H5T_conv_t func) const
Registers the specified conversion function.
Definition: H5DataType.cpp:682
void lock() const
Locks a datatype, making it read-only and non-destructible.
Definition: H5DataType.cpp:592
void unregister(H5T_pers_t pers, const char *name, const DataType &dest, H5T_conv_t func) const
Removes a conversion function from all conversion paths.
Definition: H5DataType.cpp:720
void encode()
Creates a binary object description of this datatype.
Definition: H5DataType.cpp:310
Class PredType holds the definition of all the HDF5 predefined datatypes.
Definition: H5PredType.h:27
H5T_conv_t find(const DataType &dest, H5T_cdata_t **pcdata) const
Finds a conversion function that can handle a conversion from this datatype to the specified datatype...
Definition: H5DataType.cpp:538
virtual void close()
Closes the datatype if it is not a predefined type.
Definition: H5DataType.cpp:962
virtual hid_t getId() const
Get the id of this dataset.
Definition: H5DataSet.cpp:693
DataType & operator=(const DataType &rhs)
Assignment operator.
Definition: H5DataType.cpp:368
H5std_string getDetailMsg() const
Returns the detailed message set at the time the exception is thrown.
Definition: H5Exception.cpp:264
H5T_class_t getClass() const
Returns the datatype class identifier.
Definition: H5DataType.cpp:609
virtual DataType * decode() const
Returns a DataType instance by decoding the binary object description of this datatype.
Definition: H5DataType.cpp:288
PropList getCreatePlist() const
Returns a copy of the property list, which is for datatype creation.
Definition: H5DataType.cpp:875
void convert(const DataType &dest, size_t nelmts, void *buf, void *background, const PropList &plist=PropList::DEFAULT) const
Converts data from this datatype to the specified datatypes.
Definition: H5DataType.cpp:562
static const PropList & DEFAULT
Default property list.
Definition: H5PropList.h:27
size_t getSize() const
Returns the size of a datatype.
Definition: H5DataType.cpp:628
virtual hid_t getId() const
Get the id of this property list.
Definition: H5PropList.cpp:292
Class H5Object is a bridge between H5Location and DataSet, DataType, and Group.
Definition: H5Object.h:64
friend void f_DataType_setId(DataType *dtype, hid_t new_id)
void setId(const hid_t new_id)
Sets the identifier of this object to a new value.
Definition: H5IdComponent.cpp:315
Definition: H5AbstractDs.cpp:33
bool operator==(const DataType &compared_type) const
Compares this DataType against the given one to determines whether the two objects refer to the same ...
Definition: H5DataType.cpp:386
bool isVariableStr() const
Check whether this datatype is a variable-length string.
Definition: H5DataType.cpp:851
void commit(const H5Location &loc, const char *name)
Commits a transient datatype to a file, creating a new named datatype.
Definition: H5DataType.cpp:448
bool hasBinaryDesc() const
Determines whether this datatype has a binary object description.
Definition: H5DataType.cpp:340
bool committed() const
Determines whether a datatype is a named type or a transient type.
Definition: H5DataType.cpp:514
Class DataType provides generic operations on HDF5 datatypes.
Definition: H5DataType.h:27
virtual H5std_string fromClass() const
Returns this class name.
Definition: H5DataType.h:135
H5Location is an abstract base class, added in version 1.8.12.
Definition: H5Location.h:30
Class PropList inherits from IdComponent and provides wrappers for the HDF5 generic property list.
Definition: H5PropList.h:24
bool detectClass(H5T_class_t cls) const
Checks whether a datatype contains (or is) a certain type of datatype.
Definition: H5DataType.cpp:809
virtual ~DataType()
Properly terminates access to this datatype.
Definition: H5DataType.cpp:998
The HDF Group Help Desk:
| |
Copyright by
The HDF Group
|