diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2004-08-07 05:46:10 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2004-08-07 05:46:10 (GMT) |
commit | 47dd278b15375b71ff8663ce51778f590f69541a (patch) | |
tree | 2e5813bf7f87e10726605d96be13f1606e693de9 /c++/src/H5DataType.cpp | |
parent | 4b3ebf1646df8a613d53dad96f82eb0bb68f0aa2 (diff) | |
download | hdf5-47dd278b15375b71ff8663ce51778f590f69541a.zip hdf5-47dd278b15375b71ff8663ce51778f590f69541a.tar.gz hdf5-47dd278b15375b71ff8663ce51778f590f69541a.tar.bz2 |
[svn-r9046] Purpose:
Code cleanup
Description:
DataType::commit had incorrect parameter, H5Object. Changed
it to CommonFG, for H5File and Group.
The change caused additional header files needed for several
other cpp files.
Moved some functions from Group into the base class CommonFG for
H5File too.
Platforms tested:
SunOS 5.7 (arabica)
Linux 2.4 (eirene)
Misc. update:
Diffstat (limited to 'c++/src/H5DataType.cpp')
-rw-r--r-- | c++/src/H5DataType.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/c++/src/H5DataType.cpp b/c++/src/H5DataType.cpp index d0e22be..5bb8d6f 100644 --- a/c++/src/H5DataType.cpp +++ b/c++/src/H5DataType.cpp @@ -23,8 +23,10 @@ #include "H5Exception.h" #include "H5IdComponent.h" #include "H5PropList.h" -#include "H5Object.h" #include "H5DataSpace.h" +#include "H5Object.h" +#include "H5DcreatProp.h" +#include "H5CommonFG.h" #include "H5DataType.h" #include "H5AtomType.h" #include "H5PredType.h" @@ -164,9 +166,9 @@ bool DataType::operator==(const DataType& compared_type ) const ///\exception H5::DataTypeIException // Programmer Binh-Minh Ribler - 2000 //-------------------------------------------------------------------------- -void DataType::commit( H5Object& loc, const char* name ) const +void DataType::commit(CommonFG& loc, const char* name) const { - hid_t loc_id = loc.getId(); // get location id for C API + hid_t loc_id = loc.getLocId(); // get location id for C API // Call C routine to commit the transient datatype herr_t ret_value = H5Tcommit( loc_id, name, id ); @@ -183,7 +185,7 @@ void DataType::commit( H5Object& loc, const char* name ) const /// argument \a name. // Programmer Binh-Minh Ribler - 2000 //-------------------------------------------------------------------------- -void DataType::commit( H5Object& loc, const string& name ) const +void DataType::commit(CommonFG& loc, const string& name) const { commit( loc, name.c_str() ); } |