summaryrefslogtreecommitdiffstats
path: root/c++/src/H5CommonFG.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2005-06-19 21:57:34 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2005-06-19 21:57:34 (GMT)
commitf649d42b461830840eab6b3a958a897fbe311fe7 (patch)
tree3054e2801b84cc7d25fb4e6e82af2104a425482e /c++/src/H5CommonFG.h
parent828c6646a1b2bf0c7ddcf551996d44e9fd876715 (diff)
downloadhdf5-f649d42b461830840eab6b3a958a897fbe311fe7.zip
hdf5-f649d42b461830840eab6b3a958a897fbe311fe7.tar.gz
hdf5-f649d42b461830840eab6b3a958a897fbe311fe7.tar.bz2
[svn-r10955] Purpose: Added more APIs
Description: - Added another overloaded CommonFG::getComment so the user will not have to provide the comment's length. - Added wrappers for H5Gget_comment when the comment is to be removed, CommonFG::removeComment. - Corrected several 'delete' statements Platforms tested: Linux 2.4 (heping) AIX 5.1 (copper)
Diffstat (limited to 'c++/src/H5CommonFG.h')
-rw-r--r--c++/src/H5CommonFG.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/c++/src/H5CommonFG.h b/c++/src/H5CommonFG.h
index 075aca2..7541627 100644
--- a/c++/src/H5CommonFG.h
+++ b/c++/src/H5CommonFG.h
@@ -47,9 +47,14 @@ class H5_DLLCPP CommonFG {
DataSet openDataSet(const string& name) const;
// Retrieves comment for the HDF5 object specified by its name.
+ string getComment(const string& name) const;
string getComment(const char* name, size_t bufsize) const;
string getComment(const string& name, size_t bufsize) const;
+ // Removes the comment for the HDF5 object specified by its name.
+ void removeComment(const char* name) const;
+ void removeComment(const string& name) const;
+
// Sets the comment for an HDF5 object specified by its name.
void setComment(const char* name, const char* comment) const;
void setComment(const string& name, const string& comment) const;