summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2004-07-09 02:45:28 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2004-07-09 02:45:28 (GMT)
commit9f4a92e28f9ae268e738733e14e34bd2cd1a4a70 (patch)
tree199af7833a939ceda3c184cfefa0ffd75e7c6b8f /c++
parent3df22e6d9116e1f6726e2e14c128657d3db0f683 (diff)
downloadhdf5-9f4a92e28f9ae268e738733e14e34bd2cd1a4a70.zip
hdf5-9f4a92e28f9ae268e738733e14e34bd2cd1a4a70.tar.gz
hdf5-9f4a92e28f9ae268e738733e14e34bd2cd1a4a70.tar.bz2
[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:
Diffstat (limited to 'c++')
-rw-r--r--c++/src/H5File.cpp7
-rw-r--r--c++/src/H5File.h2
2 files changed, 5 insertions, 4 deletions
diff --git a/c++/src/H5File.cpp b/c++/src/H5File.cpp
index aca787a..a368544 100644
--- a/c++/src/H5File.cpp
+++ b/c++/src/H5File.cpp
@@ -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");
}
diff --git a/c++/src/H5File.h b/c++/src/H5File.h
index a6f40dd..900681e 100644
--- a/c++/src/H5File.h
+++ b/c++/src/H5File.h
@@ -73,7 +73,7 @@ class H5_DLLCPP H5File : public IdComponent, public CommonFG {
DataSpace getRegion(void *ref, H5R_type_t ref_type = H5R_DATASET_REGION) const;
// Retrieves the file size of an opened file.
- haddr_t getFileSize() const;
+ hsize_t getFileSize() const;
// Reopens this file.
void reopen();