summaryrefslogtreecommitdiffstats
path: root/c++/src/H5DataSpace.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2008-07-27 21:48:11 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2008-07-27 21:48:11 (GMT)
commit4c280b326676380411eecedd03288bd335372565 (patch)
tree311041f55fc0d6a5329c5a443db088f25bfb3dbc /c++/src/H5DataSpace.h
parentc0ab5a9098d07c4eaa83be17f6a99082b32c3923 (diff)
downloadhdf5-4c280b326676380411eecedd03288bd335372565.zip
hdf5-4c280b326676380411eecedd03288bd335372565.tar.gz
hdf5-4c280b326676380411eecedd03288bd335372565.tar.bz2
[svn-r15412] Purpose: Fixed bugs
Description: The class hierarchy was revised to address the problem reported in bugzilla #1068. Classes AbstractDS and Attribute are moved out of H5Object. Class Attribute now multiply inherits from IdComponent and AbstractDs and class DataSet from H5Object and AbstractDs. In addition, data member IdComponent::id was moved into subclasses: Attribute, DataSet, DataSpace, DataType, H5File, Group, and PropList. Also change changed subclasses' setId to p_setId for internal uses, and added setId to IdComponent for public API. Platforms tested: SunOS 5.10 (linew) Linux 2.6 (kagiso) FreeBSD (duty)
Diffstat (limited to 'c++/src/H5DataSpace.h')
-rw-r--r--c++/src/H5DataSpace.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/c++/src/H5DataSpace.h b/c++/src/H5DataSpace.h
index e1c5ba4..e78e544 100644
--- a/c++/src/H5DataSpace.h
+++ b/c++/src/H5DataSpace.h
@@ -112,8 +112,18 @@ class H5_DLLCPP DataSpace : public IdComponent {
// Copy constructor: makes a copy of the original DataSpace object.
DataSpace(const DataSpace& original);
+ // Gets the dataspace id.
+ virtual hid_t getId() const;
+
// Destructor: properly terminates access to this dataspace.
virtual ~DataSpace();
+
+ protected:
+ // Sets the dataspace id.
+ virtual void p_setId(const hid_t new_id);
+
+ private:
+ hid_t id; // HDF5 dataspace id
};
#ifndef H5_NO_NAMESPACE
}