summaryrefslogtreecommitdiffstats
path: root/c++/src/H5File.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/H5File.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/H5File.h')
-rw-r--r--c++/src/H5File.h62
1 files changed, 33 insertions, 29 deletions
diff --git a/c++/src/H5File.h b/c++/src/H5File.h
index 3db277d..ddc24d8 100644
--- a/c++/src/H5File.h
+++ b/c++/src/H5File.h
@@ -22,22 +22,25 @@ namespace H5 {
class H5_DLLCPP H5File : public IdComponent, public CommonFG {
public:
- // Default constructor
- H5File();
-
- // copy constructor: makes a copy of the original H5File object.
- H5File(const H5File& original );
-
// Creates or opens an HDF5 file.
- H5File( const string& name, unsigned int flags,
+ H5File( const char* name, unsigned int flags,
const FileCreatPropList& create_plist = FileCreatPropList::DEFAULT,
const FileAccPropList& access_plist = FileAccPropList::DEFAULT );
- H5File( const char* name, unsigned int flags,
+ H5File( const string& name, unsigned int flags,
const FileCreatPropList& create_plist = FileCreatPropList::DEFAULT,
const FileAccPropList& access_plist = FileAccPropList::DEFAULT );
- // Gets the file id
- virtual hid_t getLocId() const;
+ // Gets the access property list of this file.
+ FileAccPropList getAccessPlist() const;
+
+ // Gets the creation property list of this file.
+ FileCreatPropList getCreatePlist() const;
+
+ // Gets the name of this file.
+ string getFileName() const;
+
+ // Retrieves the file size of an opened file.
+ hsize_t getFileSize() const;
// Returns the amount of free space in the file.
hssize_t getFreeSpace() const;
@@ -51,41 +54,42 @@ class H5_DLLCPP H5File : public IdComponent, public CommonFG {
// and datatypes) in the same file.
void getObjIDs(unsigned types, int max_objs, hid_t *oid_list) const;
+ // Retrieves the type of object that an object reference points to.
+ H5G_obj_t getObjType(void *ref, H5R_type_t ref_type) const;
+
+ // Retrieves a dataspace with the region pointed to selected.
+ DataSpace getRegion(void *ref, H5R_type_t ref_type = H5R_DATASET_REGION) const;
+
// Returns the pointer to the file handle of the low-level file driver.
void getVFDHandle(FileAccPropList& fapl, void **file_handle) const;
void getVFDHandle(void **file_handle) const;
// Determines if a file, specified by its name, is in HDF5 format
- static bool isHdf5(const string& name );
static bool isHdf5(const char* name );
+ static bool isHdf5(const string& name );
- // Creates a reference to a named Hdf5 object in this object.
- void* Reference(const char* name) const;
+ // Reopens this file.
+ void reOpen(); // added for better name
+ void reopen();
// 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;
-
- // Retrieves a dataspace with the region pointed to selected.
- DataSpace getRegion(void *ref, H5R_type_t ref_type = H5R_DATASET_REGION) const;
-
- // Retrieves the file size of an opened file.
- hsize_t getFileSize() const;
+ // Creates a reference to a named Hdf5 object in this object.
+ void* Reference(const char* name) const;
- // Reopens this file.
- void reopen();
+ // Throw file exception.
+ virtual void throwException(const string func_name, const string msg) const;
- // Gets the creation property list of this file.
- FileCreatPropList getCreatePlist() const;
+ // Gets the file id
+ virtual hid_t getLocId() const;
- // Gets the access property list of this file.
- FileAccPropList getAccessPlist() const;
+ // Default constructor
+ H5File();
- // Throw file exception.
- virtual void throwException(const string func_name, const string msg) const;
+ // Copy constructor: makes a copy of the original H5File object.
+ H5File(const H5File& original);
// H5File destructor.
virtual ~H5File();