summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DataType.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2015-04-05 04:12:08 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2015-04-05 04:12:08 (GMT)
commit743686ebe1b0d961b6ac5ac9aa035eac36e9b629 (patch)
tree171b935be8dce5005fb41a92030e89bd1c8c46df /c++/src/H5DataType.h
parent083ef61b05cd28cae00ee348b6222538534fb12f (diff)
downloadhdf5-743686ebe1b0d961b6ac5ac9aa035eac36e9b629.zip
hdf5-743686ebe1b0d961b6ac5ac9aa035eac36e9b629.tar.gz
hdf5-743686ebe1b0d961b6ac5ac9aa035eac36e9b629.tar.bz2
[svn-r26729] Purpose: Fix bugs
Description: - Changed DataType::operator= to simply copy the id of rhs instead of calling H5Tcopy because, when the operator= is invoked, a different datatype id is created and it won't have the same characteristics as rhs', specifically, if the rhs represents a named datatype, "this" would still be a transient datatype. - Added a DataType constructor that takes a PredType object, and this constructor will cause H5Tcopy to generate another datatype id, from a predefined datatype. - Fixed various mistakes in tests. - Fixed typo that caused failure on Windows. Merged from trunk r26640 and r26462 Platforms tested: Linux/64 (platypus) Linux/32 2.6 (jam/gnu and jam/icc 15) SunOS 5.11 (emu)
Diffstat (limited to 'c++/src/H5DataType.h')
-rw-r--r--c++/src/H5DataType.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/c++/src/H5DataType.h b/c++/src/H5DataType.h
index dca0c87..a120736 100644
--- a/c++/src/H5DataType.h
+++ b/c++/src/H5DataType.h
@@ -39,6 +39,9 @@ class H5_DLLCPP DataType : public H5Object {
// Copy constructor: makes a copy of the original object
DataType( const DataType& original );
+ // Creates a copy of a predefined type
+ DataType(const PredType& pred_type);
+
// Creates a datatype by way of dereference.
DataType(const H5Location& loc, const void* ref, H5R_type_t ref_type = H5R_OBJECT);
DataType(const Attribute& attr, const void* ref, H5R_type_t ref_type = H5R_OBJECT);