|
|
static hid_t | open_file (MPI_Comm mpi_comm, const std::string filename, const std::string mode, const bool use_mpi_io) |
| | Open HDF5 and return file descriptor.
|
| |
|
static void | close_file (const hid_t hdf5_file_handle) |
| | Close HDF5 file.
|
| |
| static void | flush_file (const hid_t hdf5_file_handle) |
| |
|
static std::string | get_filename (hid_t hdf5_file_handle) |
| |
| template<typename T > |
| static void | write_dataset (const hid_t file_handle, const std::string dataset_path, const std::vector< T > &data, const std::pair< std::int64_t, std::int64_t > range, const std::vector< std::int64_t > global_size, bool use_mpio, bool use_chunking) |
| |
| template<typename T > |
| static void | read_dataset (const hid_t file_handle, const std::string dataset_path, const std::pair< std::int64_t, std::int64_t > range, std::vector< T > &data) |
| |
|
static bool | has_group (const hid_t hdf5_file_handle, const std::string group_name) |
| | Check for existence of group in HDF5 file.
|
| |
|
static bool | has_dataset (const hid_t hdf5_file_handle, const std::string dataset_path) |
| | Check for existence of dataset in HDF5 file.
|
| |
|
static void | add_group (const hid_t hdf5_file_handle, const std::string dataset_path) |
| | Add group to HDF5 file.
|
| |
|
static int | dataset_rank (const hid_t hdf5_file_handle, const std::string dataset_path) |
| | Get dataset rank.
|
| |
|
static int | num_datasets_in_group (const hid_t hdf5_file_handle, const std::string group_name) |
| | Return number of data sets in a group.
|
| |
|
static std::vector< std::int64_t > | get_dataset_shape (const hid_t hdf5_file_handle, const std::string dataset_path) |
| | Get dataset shape (size of each dimension)
|
| |
|
static std::vector< std::string > | dataset_list (const hid_t hdf5_file_handle, const std::string group_name) |
| | Return list all datasets in named group of file.
|
| |
|
static const std::string | get_attribute_type (const hid_t hdf5_file_handle, const std::string dataset_path, const std::string attribute_name) |
| | Get type of attribute.
|
| |
|
template<typename T > |
| static void | get_attribute (const hid_t hdf5_file_handle, const std::string dataset_path, const std::string attribute_name, T &attribute_value) |
| | Get a named attribute of a dataset of known type.
|
| |
|
template<typename T > |
| static void | add_attribute (const hid_t hdf5_file_handle, const std::string dataset_path, const std::string attribute_name, const T &attribute_value) |
| | Add attribute to dataset or group.
|
| |
|
static void | delete_attribute (const hid_t hdf5_file_handle, const std::string dataset_path, const std::string attribute_name) |
| | Delete an attribute from a dataset or group.
|
| |
|
static bool | has_attribute (const hid_t hdf5_file_handle, const std::string dataset_path, const std::string attribute_name) |
| | Check if an attribute exists on a dataset or group.
|
| |
|
static const std::vector< std::string > | list_attributes (const hid_t hdf5_file_handle, const std::string dataset_path) |
| |
| static void | set_mpi_atomicity (const hid_t hdf5_file_handle, const bool atomic) |
| |
| static bool | get_mpi_atomicity (const hid_t hdf5_file_handle) |
| |
This class wraps HDF5 function calls. HDF5 function calls should only appear in a member function of this class and not elsewhere in the library.