[svn-r8526] Purpose:

Add more C++ wrappers - incrementally check-in

Description:
    Added more wrappers for C H5F functions and added Doxygen documentation
    to existing member functions of H5File.  This is an incremental check-in
    to preserve the code, corresponding tests will follow in a few weeks.

    Newly added wrappers are for:
	H5Fget_freespace
	H5Fget_obj_count
	H5Fget_obj_ids
	H5Fget_vfd_handle

Platforms:
    SunOS 5.7 (arabica)
    Linux 2.4 (eirene)
    Windows 2000
This commit is contained in:
Binh-Minh Ribler
2004-05-14 12:53:33 -05:00
parent 77a7fc4428
commit 4e7a6b7b1d
2 changed files with 309 additions and 24 deletions

View File

@@ -39,9 +39,21 @@ class H5_DLLCPP H5File : public IdComponent, public CommonFG {
// Gets the file id
virtual hid_t getLocId() const;
// Throw file exception
virtual void throwException(const string func_name, const string msg) const;
// Returns the amount of free space in the file.
hssize_t getFreeSpace();
// Returns the number of opened object IDs (files, datasets, groups
// and datatypes) in the same file.
int getObjCount(unsigned types);
int getObjCount();
// Retrieves a list of opened object IDs (files, datasets, groups
// and datatypes) in the same file.
void getObjIDs(unsigned types, int max_objs, hid_t *oid_list);
// Returns the pointer to the file handle of the low-level file driver.
void getVFDHandle(FileAccPropList& fapl, void **file_handle);
void getVFDHandle(void **file_handle);
// Determines if a file, specified by its name, is in HDF5 format
static bool isHdf5(const string& name );
@@ -56,6 +68,9 @@ class H5_DLLCPP H5File : public IdComponent, public CommonFG {
// Gets the access property list of this file
FileAccPropList getAccessPlist() const;
// Throw file exception
virtual void throwException(const string func_name, const string msg) const;
// Used by the API to appropriately close a file
void p_close() const;