summaryrefslogtreecommitdiffstats
path: root/c++/src/H5File.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2015-04-06 21:20:11 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2015-04-06 21:20:11 (GMT)
commita586729afb1e25f82befc4b394f3e819a4f7a880 (patch)
treec145bbbd036c64ffd3f1613294d3b1461f42c73a /c++/src/H5File.h
parentf809ee8ce7e68c156ace42970393aafa5350e387 (diff)
downloadhdf5-a586729afb1e25f82befc4b394f3e819a4f7a880.zip
hdf5-a586729afb1e25f82befc4b394f3e819a4f7a880.tar.gz
hdf5-a586729afb1e25f82befc4b394f3e819a4f7a880.tar.bz2
[svn-r26741] 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) SunOS 5.11 (emu)
Diffstat (limited to 'c++/src/H5File.h')
-rw-r--r--c++/src/H5File.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/c++/src/H5File.h b/c++/src/H5File.h
index 0ef85b5..77cd232 100644
--- a/c++/src/H5File.h
+++ b/c++/src/H5File.h
@@ -84,6 +84,9 @@ 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.
+ H5File(hid_t existing_id);
+
#endif // DOXYGEN_SHOULD_SKIP_THIS
///\brief Returns this class name.