diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2001-11-14 22:14:05 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2001-11-14 22:14:05 (GMT) |
commit | 5077ac0c90290efc9611fcfca7c689f9b66b6d0d (patch) | |
tree | 2c249fb9918464c43166722945d02d7841a0042e /c++/src/H5Attribute.h | |
parent | c84ad4179d7b7c858d4309f1056fc1f0b497b84c (diff) | |
download | hdf5-5077ac0c90290efc9611fcfca7c689f9b66b6d0d.zip hdf5-5077ac0c90290efc9611fcfca7c689f9b66b6d0d.tar.gz hdf5-5077ac0c90290efc9611fcfca7c689f9b66b6d0d.tar.bz2 |
[svn-r4605]
Purpose:
Bug fix
Description:
Add the overloaded member function Attribute::getName to return
the attribute name's length as in C API. This functionality was
missing. Note that the current getName that returns "string"
is not removed, for different way of using getName.
Platforms tested:
SunOS 5.7 (arabica)
Windows 98
Diffstat (limited to 'c++/src/H5Attribute.h')
-rw-r--r-- | c++/src/H5Attribute.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c++/src/H5Attribute.h b/c++/src/H5Attribute.h index 9f1435b..7c509d5 100644 --- a/c++/src/H5Attribute.h +++ b/c++/src/H5Attribute.h @@ -18,7 +18,8 @@ class Attribute : public AbstractDs { virtual DataSpace getSpace() const; // Gets the name of this attribute. - string getName( size_t buf_size ) const; + ssize_t getName( size_t buf_size, string& attr_name ) const; + string getName( size_t buf_size ) const; // returns name, not its length // do not inherit iterateAttrs from H5Object int iterateAttrs() { return 0; } |