[svn-r8849] Purpose: Adding documentation with doxygen and fixing minor bug

Description:
    Added function headers with doxygen.
    Changed H5File::getFileSize according to C library.

Platforms tested:
    Linux 2.4 (eirene)
    FreeBSD 4.10 (sleipnir)

Misc. update:
This commit is contained in:
Binh-Minh Ribler
2004-07-08 21:45:28 -05:00
parent 3df22e6d91
commit 9f4a92e28f
2 changed files with 5 additions and 4 deletions

View File

@@ -492,10 +492,11 @@ hid_t H5File::getLocId() const
/// order to learn the true size of the underlying file.
// Programmer Raymond Lu - June 24, 2004
//--------------------------------------------------------------------------
haddr_t H5File::getFileSize(void) const
hsize_t H5File::getFileSize() const
{
haddr_t file_size = H5Fget_filesize(id);
if( file_size < 0 )
hsize_t file_size;
herr_t ret_value = H5Fget_filesize(id, &file_size);
if (ret_value < 0)
{
throw FileIException("H5File::getFileSize", "H5Fget_filesize failed");
}