diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-12-29 11:41:02 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2005-12-29 11:41:02 (GMT) |
commit | e25b9b5f7002b7a19000fc8d81cf4a96776cd671 (patch) | |
tree | d856506c45a818f5da6b87455bab9f77fae4dc21 /c++/src/H5Attribute.cpp | |
parent | d073ddf81ee053f9219ffaf789998a6f619a7584 (diff) | |
download | hdf5-e25b9b5f7002b7a19000fc8d81cf4a96776cd671.zip hdf5-e25b9b5f7002b7a19000fc8d81cf4a96776cd671.tar.gz hdf5-e25b9b5f7002b7a19000fc8d81cf4a96776cd671.tar.bz2 |
[svn-r11845] Purpose: Adding another wrapper/Fixing typos
Description:
Added missing member function H5File::flush
Fixed parameters passed to H5Awrite
Other typos
Platforms tested:
Linux 2.4 (heping)
SunOS 5.8 64-bit (sol)
Diffstat (limited to 'c++/src/H5Attribute.cpp')
-rw-r--r-- | c++/src/H5Attribute.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/src/H5Attribute.cpp b/c++/src/H5Attribute.cpp index e8573c3..89d72a8 100644 --- a/c++/src/H5Attribute.cpp +++ b/c++/src/H5Attribute.cpp @@ -102,7 +102,7 @@ void Attribute::write( const DataType& mem_type, const string& strg ) const const char* strg_C; strg_C = strg.c_str(); // strg_C refers to the contents of strg as a C-str - herr_t ret_value = H5Awrite( id, mem_type.getId(), strg_C ); + herr_t ret_value = H5Awrite( id, mem_type.getId(), &strg_C ); if( ret_value < 0 ) { throw AttributeIException("Attribute::write", "H5Awrite failed"); @@ -139,7 +139,7 @@ void Attribute::read( const DataType& mem_type, string& strg ) const { size_t size = mem_type.getSize(); char* strg_C = new char[size+1]; // temporary C-string for C API - herr_t ret_value = H5Aread( id, mem_type.getId(), strg_C ); + herr_t ret_value = H5Aread( id, mem_type.getId(), &strg_C ); if( ret_value < 0 ) { throw AttributeIException("Attribute::read", "H5Aread failed"); |