diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2015-10-08 15:41:08 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2015-10-08 15:41:08 (GMT) |
commit | d4e7a87244a01698b0d1e0728f877019564a879d (patch) | |
tree | c416924d8bc63260ee010c430da0d37c6552eb49 /c++/src/H5DataSpace.h | |
parent | d80a13f75a408bf01069a8b276c4229d118307e8 (diff) | |
parent | 8edfabd297c10579eac941f31a26d5727889fa88 (diff) | |
download | hdf5-inactive/avoid_truncate.zip hdf5-inactive/avoid_truncate.tar.gz hdf5-inactive/avoid_truncate.tar.bz2 |
[svn-r28002] merge from trunk.inactive/avoid_truncate
Diffstat (limited to 'c++/src/H5DataSpace.h')
-rw-r--r-- | c++/src/H5DataSpace.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/c++/src/H5DataSpace.h b/c++/src/H5DataSpace.h index a43cecd..4cbe62c 100644 --- a/c++/src/H5DataSpace.h +++ b/c++/src/H5DataSpace.h @@ -24,8 +24,8 @@ namespace H5 { //! Class DataSpace operates on HDF5 dataspaces. class H5_DLLCPP DataSpace : public IdComponent { public: - // Default DataSpace objects - static const DataSpace ALL; + ///\brief Default DataSpace objects + static const DataSpace& ALL; // Creates a dataspace object given the space type DataSpace(H5S_class_t type = H5S_SCALAR); @@ -118,20 +118,34 @@ class H5_DLLCPP DataSpace : public IdComponent { // Gets the dataspace id. virtual hid_t getId() const; + // Deletes the global constant + static void deleteConstants(); + // Destructor: properly terminates access to this dataspace. virtual ~DataSpace(); - protected: #ifndef DOXYGEN_SHOULD_SKIP_THIS + + protected: // Sets the dataspace id. virtual void p_setId(const hid_t new_id); + #endif // DOXYGEN_SHOULD_SKIP_THIS private: hid_t id; // HDF5 dataspace id +#ifndef DOXYGEN_SHOULD_SKIP_THIS + + static DataSpace* ALL_; + + // Creates the global constant + static DataSpace* getConstant(); + // Friend function to set DataSpace id. For library use only. friend void f_DataSpace_setId(DataSpace *dspace, hid_t new_id); + +#endif // DOXYGEN_SHOULD_SKIP_THIS }; #ifndef H5_NO_NAMESPACE } |