summaryrefslogtreecommitdiffstats
path: root/c++/src/H5CommonFG.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2009-10-20 18:14:34 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2009-10-20 18:14:34 (GMT)
commitfa406155ab6ab2903d856f8e20502caef2df0996 (patch)
tree007847dac319bc49648e739b11bbc9ef86fd8068 /c++/src/H5CommonFG.h
parenta99a73d20ecd7ed2c9c65a2979f600f805d01099 (diff)
downloadhdf5-fa406155ab6ab2903d856f8e20502caef2df0996.zip
hdf5-fa406155ab6ab2903d856f8e20502caef2df0996.tar.gz
hdf5-fa406155ab6ab2903d856f8e20502caef2df0996.tar.bz2
[svn-r17690] Purpose: Code improvement
Description: Fixed CommonFG::getComment and CommonFG::getLinkval to provide default values for buffer size to improve usability. Added test file tlinks.cpp, which only contains test for getLinkval and will expand when C++ wrappers for H5L functions are implemented. Platforms tested: Linux/32 2.6 (jam) FreeBSD/64 6.3 (liberty) SunOS 5.10 (linew)
Diffstat (limited to 'c++/src/H5CommonFG.h')
-rw-r--r--c++/src/H5CommonFG.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/c++/src/H5CommonFG.h b/c++/src/H5CommonFG.h
index 87c0615..d472d42 100644
--- a/c++/src/H5CommonFG.h
+++ b/c++/src/H5CommonFG.h
@@ -50,9 +50,8 @@ class H5_DLLCPP CommonFG {
DataSet openDataSet(const H5std_string& name) const;
// Retrieves comment for the HDF5 object specified by its name.
- H5std_string getComment(const H5std_string& name) const;
- H5std_string getComment(const char* name, size_t bufsize) const;
- H5std_string getComment(const H5std_string& name, size_t bufsize) const;
+ H5std_string getComment(const char* name, size_t bufsize=256) const;
+ H5std_string getComment(const H5std_string& name, size_t bufsize=256) const;
// Removes the comment for the HDF5 object specified by its name.
void removeComment(const char* name) const;
@@ -62,9 +61,9 @@ class H5_DLLCPP CommonFG {
void setComment(const char* name, const char* comment) const;
void setComment(const H5std_string& name, const H5std_string& comment) const;
- // Returns the name of the HDF5 object that the symbolic link points to.
- H5std_string getLinkval(const char* name, size_t size) const;
- H5std_string getLinkval(const H5std_string& name, size_t size) const;
+ // Returns the value of a symbolic link.
+ H5std_string getLinkval(const char* link_name, size_t size=0) const;
+ H5std_string getLinkval(const H5std_string& link_name, size_t size=0) const;
// Returns the number of objects in this group.
hsize_t getNumObjs() const;