summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Group.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2003-01-21 01:31:43 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2003-01-21 01:31:43 (GMT)
commitfffa25d34c3a7b8395a42b66fa5886f87110e9b1 (patch)
treefb1ad55501c6c4423c349d837a82741899012c6f /c++/src/H5Group.h
parent052153434e54887cd6d90e4ac4194faf0776f777 (diff)
downloadhdf5-fffa25d34c3a7b8395a42b66fa5886f87110e9b1.zip
hdf5-fffa25d34c3a7b8395a42b66fa5886f87110e9b1.tar.gz
hdf5-fffa25d34c3a7b8395a42b66fa5886f87110e9b1.tar.bz2
[svn-r6303] Purpose:
new functions Description: Added these member functions to class Group per the new C functions H5Gget_num_objs, H5Gget_objname_by_idx and H5Gget_objtype_by_idx: // Returns the number of objects in the group. hsize_t getNumObjs() const; // Retrieves the name of an object in a given group by giving index ssize_t getObjnameByIdx(hsize_t idx, string& name, size_t size) const; // Returns the type of an object in a given group by giving index; // the overloaded function also provided the object type in text as // "group" for H5G_GROUP // "dataset" for H5G_DATASET // "datatype" for H5G_TYPE int getObjTypeByIdx(hsize_t idx) const; int getObjTypeByIdx(hsize_t idx, string& type_name) const; Platforms: SunOS 5.7 (arabica) Linux 6.2 (eirene) IRIX 6.5.11 (modi4)
Diffstat (limited to 'c++/src/H5Group.h')
-rw-r--r--c++/src/H5Group.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/c++/src/H5Group.h b/c++/src/H5Group.h
index c65a335..25c1b9e 100644
--- a/c++/src/H5Group.h
+++ b/c++/src/H5Group.h
@@ -28,6 +28,21 @@ class H5_DLLCPP Group : public H5Object, public CommonFG {
// Copy constructor: makes a copy of the original object
Group( const Group& original );
+ // Returns the number of objects in the group.
+ hsize_t getNumObjs() const;
+
+ // Retrieves the name of an object in a given group by giving index
+ //ssize_t getObjnameByIdx(hsize_t idx, char *name, size_t size) const;
+ ssize_t getObjnameByIdx(hsize_t idx, string& name, size_t size) const;
+
+ // Returns the type of an object in a given group by giving index;
+ // the overloaded function also provided the object type in text as
+ // "group" for H5G_GROUP
+ // "dataset" for H5G_DATASET
+ // "datatype" for H5G_TYPE
+ int getObjTypeByIdx(hsize_t idx) const;
+ int getObjTypeByIdx(hsize_t idx, string& type_name) const;
+
// for CommonFG to get the file id
virtual hid_t getLocId() const;