summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Group.h
diff options
context:
space:
mode:
Diffstat (limited to 'c++/src/H5Group.h')
-rw-r--r--c++/src/H5Group.h50
1 files changed, 17 insertions, 33 deletions
diff --git a/c++/src/H5Group.h b/c++/src/H5Group.h
index 9695c48..5935d49 100644
--- a/c++/src/H5Group.h
+++ b/c++/src/H5Group.h
@@ -22,52 +22,36 @@ namespace H5 {
class H5_DLLCPP Group : public H5Object, public CommonFG {
public:
- // default constructor
- Group();
-
- // 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;
+ // Retrieves the type of object that an object reference points to.
+ H5G_obj_t getObjType(void *ref, H5R_type_t ref_type) const;
- // Creates a reference to a named Hdf5 object in this object.
- void* Reference(const char* name) const;
+ // Retrieves a dataspace with the region pointed to selected.
+ DataSpace getRegion(void *ref, H5R_type_t ref_type = H5R_DATASET_REGION) const;
// Creates a reference to a named Hdf5 object or to a dataset region
// in this object.
void* Reference(const char* name, DataSpace& dataspace, H5R_type_t ref_type = H5R_DATASET_REGION) const;
- // Retrieves the type of object that an object reference points to.
- H5G_obj_t getObjType(void *ref, H5R_type_t ref_type) const;
+ // Creates a reference to a named Hdf5 object in this object.
+ void* Reference(const char* name) const;
- // Retrieves a dataspace with the region pointed to selected.
- DataSpace getRegion(void *ref, H5R_type_t ref_type = H5R_DATASET_REGION) const;
+ // Throw group exception.
+ virtual void throwException(const string func_name, const string msg) const;
- // for CommonFG to get the file id
+ // for CommonFG to get the file id.
virtual hid_t getLocId() const;
- // Throw group exception
- virtual void throwException(const string func_name, const string msg) const;
+ // Default constructor
+ Group();
+
+ // Copy constructor: makes a copy of the original object.
+ Group(const Group& original);
+ // Destructor.
virtual ~Group();
- // Creates a copy of an existing Group using its id
- // (used only by template functions in FGtemplates.h
- // to return a Group; will not be published; maybe, use friend???)
- Group( const hid_t group_id );
+ // Creates a copy of an existing Group using its id.
+ Group(const hid_t group_id);
};
#ifndef H5_NO_NAMESPACE