diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2009-07-27 05:41:46 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2009-07-27 05:41:46 (GMT) |
commit | 0fb5c9b678f60af761556c5ca3337109d352145c (patch) | |
tree | 85cb3e102682d6fe0bce5f8763174993df487a04 /c++/src/H5Attribute.h | |
parent | 8c1762f8a68ff8d30717104f01d1382829518730 (diff) | |
download | hdf5-0fb5c9b678f60af761556c5ca3337109d352145c.zip hdf5-0fb5c9b678f60af761556c5ca3337109d352145c.tar.gz hdf5-0fb5c9b678f60af761556c5ca3337109d352145c.tar.bz2 |
[svn-r17239] Purpose: Fix bug and improve readability
Description:
- Revised DataSet::write to pass in correct string buffer
- Added member function DataSet::getInMemDataSize() to simplify
getting the dataset's data size in memory.
- Added private functions for reading fixed- and variable-len
string data: p_read_fixed_len and p_read_variable_len.
- Added tests to write/read array of strings to datasets.
Platforms tested:
Linux/32 2.6 (jam)
FreeBSD/64 6.3 (liberty)
SunOS 5.10 (linew)
Diffstat (limited to 'c++/src/H5Attribute.h')
-rw-r--r-- | c++/src/H5Attribute.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c++/src/H5Attribute.h b/c++/src/H5Attribute.h index 66f44f2..f392f1a 100644 --- a/c++/src/H5Attribute.h +++ b/c++/src/H5Attribute.h @@ -38,10 +38,10 @@ class H5_DLLCPP Attribute : public AbstractDs, public IdComponent { virtual DataSpace getSpace() const; // Returns the amount of storage size required for this attribute. - hsize_t getStorageSize() const; + virtual hsize_t getStorageSize() const; // Returns the in memory size of this attribute's data. - size_t getInMemDataSize() const; + virtual size_t getInMemDataSize() const; // Reads data from this attribute. void read( const DataType& mem_type, void *buf ) const; @@ -82,7 +82,7 @@ class H5_DLLCPP Attribute : public AbstractDs, public IdComponent { // sub-types virtual hid_t p_get_type() const; - // Reads variable or fixed len strings + // Reads variable or fixed len strings from this attribute. void p_read_variable_len(const DataType& mem_type, H5std_string& strg) const; void p_read_fixed_len(const DataType& mem_type, H5std_string& strg) const; |