summaryrefslogtreecommitdiffstats
path: root/c++/src/H5File.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2015-03-30 21:57:37 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2015-03-30 21:57:37 (GMT)
commitea029945f5b663cb5dc3aeda447e3d34a77632e0 (patch)
tree54e1cd65c7b2168d3685cbad4f1b6e76dec13047 /c++/src/H5File.h
parentd2c5e2bf5780be51159d70cc1aec6496099a5f91 (diff)
downloadhdf5-ea029945f5b663cb5dc3aeda447e3d34a77632e0.zip
hdf5-ea029945f5b663cb5dc3aeda447e3d34a77632e0.tar.gz
hdf5-ea029945f5b663cb5dc3aeda447e3d34a77632e0.tar.bz2
[svn-r26667] Purpose: Fixed HDFFV-8766
Description: Per user Jason Newton request, the following constructor is added: H5File(hid_t existing_id); Also, fixed H5File::openFile to close current file first before re-using the object. Platforms tested: Linux/64 (platypus) Linux/32 2.6 (jam gnu and Intel 15.0) SunOS 5.11 (emu)
Diffstat (limited to 'c++/src/H5File.h')
-rw-r--r--c++/src/H5File.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/c++/src/H5File.h b/c++/src/H5File.h
index 0ef85b5..29621aa 100644
--- a/c++/src/H5File.h
+++ b/c++/src/H5File.h
@@ -84,6 +84,10 @@ class H5_DLLCPP H5File : public H5Location, public CommonFG {
// Gets the file id
virtual hid_t getLocId() const;
+ // Creates an H5File using an existing file id. Not recommended
+ // in applications.
+ H5File(hid_t existing_id);
+
#endif // DOXYGEN_SHOULD_SKIP_THIS
///\brief Returns this class name.