summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Attribute.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2009-04-21 14:09:23 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2009-04-21 14:09:23 (GMT)
commiteed7245d7ca7b3f6478349a4b48e95a0ebdf26d8 (patch)
treecfdb8664a1ee20352e4d1297bcf6a7dd7a7ab71d /c++/src/H5Attribute.h
parent9bca9d684bd7d5179f30fb92afa9dee1e53f69cd (diff)
downloadhdf5-eed7245d7ca7b3f6478349a4b48e95a0ebdf26d8.zip
hdf5-eed7245d7ca7b3f6478349a4b48e95a0ebdf26d8.tar.gz
hdf5-eed7245d7ca7b3f6478349a4b48e95a0ebdf26d8.tar.bz2
[svn-r16815] Description:
Added member function Attribute::getInMemDataSize(), which is a wrapper of several C calls, to simplify getting the attribute's data size in memory. Used this new function in Attribute::read to get the fixed-len string attribute data. Added to tests in tattr.cpp. 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/c++/src/H5Attribute.h b/c++/src/H5Attribute.h
index 9cf91ba..00a08a5 100644
--- a/c++/src/H5Attribute.h
+++ b/c++/src/H5Attribute.h
@@ -40,6 +40,9 @@ class H5_DLLCPP Attribute : public AbstractDs, public IdComponent {
// Returns the amount of storage size required for this attribute.
hsize_t getStorageSize() const;
+ // Returns the in memory size of this attribute's data.
+ size_t getInMemDataSize() const;
+
// Reads data from this attribute.
void read( const DataType& mem_type, void *buf ) const;
void read( const DataType& mem_type, H5std_string& strg ) const;