summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Attribute.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2009-04-21 20:57:26 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2009-04-21 20:57:26 (GMT)
commit91e9a5d5c8970f754ab8b5a77b0573dc34da4076 (patch)
treec08ccf0bfa91035d1de937e2d82bcba739e82717 /c++/src/H5Attribute.h
parent40df33dff700188b3550150f1ab5d036c7d8c02d (diff)
downloadhdf5-91e9a5d5c8970f754ab8b5a77b0573dc34da4076.zip
hdf5-91e9a5d5c8970f754ab8b5a77b0573dc34da4076.tar.gz
hdf5-91e9a5d5c8970f754ab8b5a77b0573dc34da4076.tar.bz2
[svn-r16822] Description:
Added member function Attribute::getInMemDataSize() 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 tests to 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 fc411e8..daf60eb 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;