summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Attribute.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2014-04-18 02:39:50 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2014-04-18 02:39:50 (GMT)
commit19125219cdc58a1668ff46e572126c1c3e7c4f0b (patch)
tree923145058c721f49025f7d3a800e56abbd2b5107 /c++/src/H5Attribute.h
parent33fd0f8ce250c4c34c1259b21aa9aea716d6fefc (diff)
downloadhdf5-19125219cdc58a1668ff46e572126c1c3e7c4f0b.zip
hdf5-19125219cdc58a1668ff46e572126c1c3e7c4f0b.tar.gz
hdf5-19125219cdc58a1668ff46e572126c1c3e7c4f0b.tar.bz2
[svn-r25062] Description:
Put back overloaded functions for backward compatibility: - were replaced by better prototyped versions, such as Attribute::getNam. - were modified to add const to constant arguments. Added notes for future removal in documentation. (Elena approved.) Merged from trunk r25061. Platforms tested: Linux/ppc64 (ostrich) Linux/32 2.6 (jam) SunOS 5.11 (emu)
Diffstat (limited to 'c++/src/H5Attribute.h')
-rw-r--r--c++/src/H5Attribute.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/c++/src/H5Attribute.h b/c++/src/H5Attribute.h
index 9908e11..33c4db3 100644
--- a/c++/src/H5Attribute.h
+++ b/c++/src/H5Attribute.h
@@ -39,8 +39,12 @@ class H5_DLLCPP Attribute : public AbstractDs, public IdComponent {
// Gets the name of this attribute.
ssize_t getName(char* attr_name, size_t buf_size = 0) const;
- ssize_t getName(H5std_string& attr_name, size_t len = 0) const;
+ H5std_string getName(size_t len) const;
H5std_string getName() const;
+ ssize_t getName(H5std_string& attr_name, size_t len = 0) const;
+ // The overloaded function below is replaced by the one above and it
+ // is kept for backward compatibility purpose.
+ ssize_t getName( size_t buf_size, H5std_string& attr_name ) const;
// Gets a copy of the dataspace for this attribute.
virtual DataSpace getSpace() const;