summaryrefslogtreecommitdiffstats
path: root/c++/src/H5CommonFG.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2004-08-20 04:29:58 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2004-08-20 04:29:58 (GMT)
commit4a04b0c05c608de05c69c33a6dced509d04cde09 (patch)
tree55484a35e37d81d1128a05c8c004d17a7ac2826a /c++/src/H5CommonFG.h
parent226df4069427644a4a53087e8303a5685a07533c (diff)
downloadhdf5-4a04b0c05c608de05c69c33a6dced509d04cde09.zip
hdf5-4a04b0c05c608de05c69c33a6dced509d04cde09.tar.gz
hdf5-4a04b0c05c608de05c69c33a6dced509d04cde09.tar.bz2
[svn-r9127] Purpose: Adding wrapper for new C API and other updates
Description: Added wrappers for H5Fget_name: H5File::getFileName H5Object::getFileName Moved some functions from Group into the base class CommonFG for H5File too. Platforms tested: SunOS 5.7 (arabica) Linux 2.4 (eirene)
Diffstat (limited to 'c++/src/H5CommonFG.h')
-rw-r--r--c++/src/H5CommonFG.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/c++/src/H5CommonFG.h b/c++/src/H5CommonFG.h
index 99ff874..1ede66b 100644
--- a/c++/src/H5CommonFG.h
+++ b/c++/src/H5CommonFG.h
@@ -28,11 +28,13 @@ class Group;
class H5File;
class H5_DLLCPP CommonFG {
public:
- // Creates a new group at this location which can be a file or another group.
+ // Creates a new group at this location which can be a file
+ // or another group.
Group createGroup(const char* name, size_t size_hint = 0) const;
Group createGroup(const string& name, size_t size_hint = 0) const;
- // Opens an existing group in a location which can be a file or another group.
+ // Opens an existing group in a location which can be a file
+ // or another group.
Group openGroup(const char* name) const;
Group openGroup(const string& name) const;
@@ -44,10 +46,6 @@ class H5_DLLCPP CommonFG {
DataSet openDataSet(const char* name) const;
DataSet openDataSet(const string& name) const;
- // Removes the specified name at this location.
- void unlink(const char* name) const;
- void unlink(const string& name) const;
-
// Retrieves comment for the HDF5 object specified by its name.
string getComment(const char* name, size_t bufsize) const;
string getComment(const string& name, size_t bufsize) const;
@@ -87,6 +85,10 @@ class H5_DLLCPP CommonFG {
void link(H5G_link_t link_type, const char* curr_name, const char* new_name) const;
void link(H5G_link_t link_type, const string& curr_name, const string& new_name) const;
+ // Removes the specified name at this location.
+ void unlink(const char* name) const;
+ void unlink(const string& name) const;
+
// Mounts the file 'child' onto this location.
void mount(const char* name, H5File& child, PropList& plist) const;
void mount(const string& name, H5File& child, PropList& plist) const;
@@ -123,11 +125,11 @@ class H5_DLLCPP CommonFG {
StrType openStrType(const char* name) const;
StrType openStrType(const string& name) const;
- /// For subclasses, H5File and Group, to return the correct
- /// object id, i.e. file or group id.
+ /// For subclasses, H5File and Group, to return the correct
+ /// object id, i.e. file or group id.
virtual hid_t getLocId() const = 0;
- /// For H5File and Group to throw appropriate exception.
+ /// For subclasses, H5File and Group, to throw appropriate exception.
virtual void throwException(const string func_name, const string msg) const = 0;
// Default constructor.