summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Location.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2013-03-23 17:37:49 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2013-03-23 17:37:49 (GMT)
commit1f6cd26a93875c34d3a43921fe0d9637879b15ae (patch)
treeb87d0d0885d80240d9db183c7bb99740fb1e13d2 /c++/src/H5Location.h
parent5c459618453c684cd7bcd8c2b8117bb3e6ad1b27 (diff)
downloadhdf5-1f6cd26a93875c34d3a43921fe0d9637879b15ae.zip
hdf5-1f6cd26a93875c34d3a43921fe0d9637879b15ae.tar.gz
hdf5-1f6cd26a93875c34d3a43921fe0d9637879b15ae.tar.bz2
[svn-r23438] Purpose: Fix bug HDFFV-7520
Description: Added wrappers for H5Aexists. Platforms Tested: Linux/32 2.6 (jam) Linux/64 2.6 (koala) Linux/ppc64 (ostrich)
Diffstat (limited to 'c++/src/H5Location.h')
-rw-r--r--c++/src/H5Location.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/c++/src/H5Location.h b/c++/src/H5Location.h
index d1dd892..8eae454 100644
--- a/c++/src/H5Location.h
+++ b/c++/src/H5Location.h
@@ -79,11 +79,15 @@ class H5_DLLCPP H5Location : public IdComponent {
// misleading, so getRefObjType is used in the new function instead.
// Iterate user's function over the attributes at this location.
- int iterateAttrs( attr_operator_t user_op, unsigned* idx = NULL, void* op_data = NULL );
+ int iterateAttrs(attr_operator_t user_op, unsigned* idx = NULL, void* op_data = NULL);
+
+ // Checks whether the named attribute exists at this location.
+ bool attrExists(const char* name) const;
+ bool attrExists(const H5std_string& name) const;
// Removes the named attribute from this location.
- void removeAttr( const char* name ) const;
- void removeAttr( const H5std_string& name ) const;
+ void removeAttr(const char* name) const;
+ void removeAttr(const H5std_string& name) const;
// Renames the named attribute to a new name.
void renameAttr(const char* oldname, const char* newname) const;