diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2007-01-26 05:34:10 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2007-01-26 05:34:10 (GMT) |
commit | 134352c456b2952f192e74ed3e87fb72a2d9bbd8 (patch) | |
tree | dc0a3bfe64e0a7b3a03d676c19e9f06b888d204e /c++/src/H5DataType.h | |
parent | 73b8819a42503e55c5c82fa478bdc2870b709deb (diff) | |
download | hdf5-134352c456b2952f192e74ed3e87fb72a2d9bbd8.zip hdf5-134352c456b2952f192e74ed3e87fb72a2d9bbd8.tar.gz hdf5-134352c456b2952f192e74ed3e87fb72a2d9bbd8.tar.bz2 |
[svn-r13200] Purpose: Adding wrappers and fixing a bug
Description:
- Added overloaded function DataType::copy to take a DataSet
- Added overloaded DataType::commit
- Fixed bugzilla 797
- Fixed a warning in DataSpace::operator=
- Set PropList parameter to default in DataType::convert
Platforms tested
AIX 5.1 (copper)
SunOS 5.8 64-bit (sol)
HPUX 11.00 (kelgia)
Diffstat (limited to 'c++/src/H5DataType.h')
-rw-r--r-- | c++/src/H5DataType.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/c++/src/H5DataType.h b/c++/src/H5DataType.h index bb9b317..2d5e475 100644 --- a/c++/src/H5DataType.h +++ b/c++/src/H5DataType.h @@ -34,16 +34,21 @@ class H5_DLLCPP DataType : public H5Object { // Closes this datatype. virtual void close(); - // Copies an existing datatype to this datatype object - void copy( const DataType& like_type ); + // Copies an existing datatype to this datatype object. + void copy(const DataType& like_type); + + // Copies the datatype of dset to this datatype object. + void copy(const DataSet& dset); // Returns the datatype class identifier. H5T_class_t getClass() const; // Commits a transient datatype to a file; this datatype becomes // a named datatype which can be accessed from the location. - void commit( CommonFG& loc, const char* name ) const; - void commit( CommonFG& loc, const H5std_string& name ) const; + void commit( H5File& loc, const char* name); + void commit( H5File& loc, const H5std_string& name); + void commit( H5Object& loc, const char* name); + void commit( H5Object& loc, const H5std_string& name); // Determines whether this datatype is a named datatype or // a transient datatype. @@ -54,7 +59,7 @@ class H5_DLLCPP DataType : public H5Object { H5T_conv_t find( const DataType& dest, H5T_cdata_t **pcdata ) const; // Converts data from between specified datatypes. - void convert( const DataType& dest, size_t nelmts, void *buf, void *background, PropList& plist ) const; + void convert( const DataType& dest, size_t nelmts, void *buf, void *background, const PropList& plist=PropList::DEFAULT) const; // Assignment operator DataType& operator=( const DataType& rhs ); @@ -118,6 +123,8 @@ class H5_DLLCPP DataType : public H5Object { // Destructor: properly terminates access to this datatype. virtual ~DataType(); + private: + void p_commit(hid_t loc_id, const char* name); }; #ifndef H5_NO_NAMESPACE } |