|
GEOS
|
#include <HDFFile.hpp>
Public Member Functions | |
| HDFFile (string const &fnm, bool deleteExisting, bool parallelAccess, MPI_Comm comm) | |
| Constructor – this creates/opens the target file for read/write. More... | |
| ~HDFFile () | |
| Closes the file and accessors. | |
| bool | hasDataset (const string &name) const |
| Whether a dataset/group with the specified name exists in the target. More... | |
| operator int64_t () const | |
| Get the HDF hid_t file identifier. More... | |
A class used to control access to an HDF file target.
Definition at line 28 of file HDFFile.hpp.
| geos::HDFFile::HDFFile | ( | string const & | fnm, |
| bool | deleteExisting, | ||
| bool | parallelAccess, | ||
| MPI_Comm | comm | ||
| ) |
Constructor – this creates/opens the target file for read/write.
| [in] | fnm | The filename. |
| [in] | deleteExisting | Whether to remove/recreate if a file with the same name exists. |
| [in] | parallelAccess | Whether to access one file in parallel or one file per rank in the comm. |
| [in] | comm | An MPI communicator where each rank in the communicator will be accessing the target file. |
| bool geos::HDFFile::hasDataset | ( | const string & | name | ) | const |
Whether a dataset/group with the specified name exists in the target.
| [in] | name | The dataset/group name to check for. |
|
inline |
Get the HDF hid_t file identifier.
Definition at line 56 of file HDFFile.hpp.