diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2017-02-23 22:53:16 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2017-02-23 22:53:16 (GMT) |
commit | d7c6fa00da4ddb9de5501b27e5496045ccb98572 (patch) | |
tree | d13939c871fce92b84af5d716f23ab92cfd2faf8 /c++/src/H5File.h | |
parent | b55626e0715204f56f192911f1a44e4a430b42b2 (diff) | |
download | hdf5-d7c6fa00da4ddb9de5501b27e5496045ccb98572.zip hdf5-d7c6fa00da4ddb9de5501b27e5496045ccb98572.tar.gz hdf5-d7c6fa00da4ddb9de5501b27e5496045ccb98572.tar.bz2 |
Purpose: Add new C++ wrappers
Description:
Added wrappers for H5Fget_info2, H5Inmembers, and H5Itype_exists
// Gets general information about this file.
void getFileInfo(H5F_info2_t& file_info) const;
// Returns the number of members in a type.
static hsize_t getNumMembers(H5I_type_t type);
// Determines if an element type exists.
static bool typeExists(H5I_type_t type);
Platforms tested:
Linux/32 2.6 (jam)
Linux/64 (jelly)
Darwin (osx1010test)
Diffstat (limited to 'c++/src/H5File.h')
-rw-r--r-- | c++/src/H5File.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/c++/src/H5File.h b/c++/src/H5File.h index dca6c67..495b4d0 100644 --- a/c++/src/H5File.h +++ b/c++/src/H5File.h @@ -51,8 +51,8 @@ class H5_DLLCPP H5File : public Group { // Gets the creation property list of this file. FileCreatPropList getCreatePlist() const; - // Retrieves the file size of an opened file. - hsize_t getFileSize() const; + // Gets general information about this file. + void getFileInfo(H5F_info2_t& file_info) const; // Returns the amount of free space in the file. hssize_t getFreeSpace() const; @@ -70,6 +70,9 @@ class H5_DLLCPP H5File : public Group { void getVFDHandle(const FileAccPropList& fapl, void **file_handle) const; //void getVFDHandle(FileAccPropList& fapl, void **file_handle) const; // removed from 1.8.18 and 1.10.1 + // Returns the file size of the HDF5 file. + hsize_t getFileSize() const; + // Determines if a file, specified by its name, is in HDF5 format static bool isHdf5(const char* name ); static bool isHdf5(const H5std_string& name ); |