diff options
Diffstat (limited to 'c++/src/H5File.h')
-rw-r--r-- | c++/src/H5File.h | 47 |
1 files changed, 38 insertions, 9 deletions
diff --git a/c++/src/H5File.h b/c++/src/H5File.h index d1fe153..900681e 100644 --- a/c++/src/H5File.h +++ b/c++/src/H5File.h @@ -39,35 +39,64 @@ class H5_DLLCPP H5File : public IdComponent, public CommonFG { // Gets the file id virtual hid_t getLocId() const; - // Throw file exception - virtual void throwException(const string func_name, const string msg) const; + // Returns the amount of free space in the file. + hssize_t getFreeSpace() const; + + // Returns the number of opened object IDs (files, datasets, groups + // and datatypes) in the same file. + int getObjCount(unsigned types) const; + int getObjCount() const; + + // Retrieves a list of opened object IDs (files, datasets, groups + // and datatypes) in the same file. + void getObjIDs(unsigned types, int max_objs, hid_t *oid_list) 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 ); - // Reopens this file - void reopen(); + // Creates a reference to a named Hdf5 object in this object. + void* Reference(const char* name) 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; + + // 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. - herr_t getFileSize(hsize_t *size) const; + hsize_t getFileSize() const; + + // Reopens this file. + void reopen(); - // Gets the creation property list of this file + // Gets the creation property list of this file. FileCreatPropList getCreatePlist() const; - // Gets the access property list of this file + // Gets the access property list of this file. FileAccPropList getAccessPlist() const; - // Used by the API to appropriately close a file + // Throw file exception. + virtual void throwException(const string func_name, const string msg) const; + + // Used by the API to appropriately close a file. void p_close() const; + // H5File destructor. virtual ~H5File(); private: // This function is private and contains common code between the // constructors taking a string or a char* - void getFile( const char* name, unsigned int flags, const FileCreatPropList& create_plist, const FileAccPropList& access_plist ); + void p_get_file( const char* name, unsigned int flags, const FileCreatPropList& create_plist, const FileAccPropList& access_plist ); }; #ifndef H5_NO_NAMESPACE |