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)
This commit is contained in:
Binh-Minh Ribler
2017-02-23 16:53:16 -06:00
parent b55626e071
commit d7c6fa00da
6 changed files with 174 additions and 31 deletions

View File

@@ -351,6 +351,25 @@ FileAccPropList H5File::getAccessPlist() const
}
}
//--------------------------------------------------------------------------
// Function: H5File::getFileInfo
///\brief Retrieves the general information of this file.
///
///\exception H5::FileIException
///\par Description
/// The retrieved information may include information about
/// superblock extension, free space management, and shared object
// Programmer Binh-Minh Ribler - February 2017
//--------------------------------------------------------------------------
void H5File::getFileInfo(H5F_info2_t& file_info) const
{
herr_t ret_value = H5Fget_info2(id, &file_info);
if (ret_value < 0)
{
throw FileIException("H5File::getFileInfo", "H5Fget_info2 failed");
}
}
//--------------------------------------------------------------------------
// Function: H5File::getFreeSpace
///\brief Returns the amount of free space in the file.