10 #ifndef H5FILEDRIVER_MISC_HPP
11 #define H5FILEDRIVER_MISC_HPP
13 #include "../H5FileDriver.hpp"
15 #include <H5Ppublic.h>
17 #ifdef H5_HAVE_PARALLEL
25 template <
typename Comm,
typename Info>
29 MPIOFileAccess(Comm comm, Info info)
34 void apply(
const hid_t list)
const {
35 if (H5Pset_fapl_mpio(list,
_comm,
_info) < 0) {
36 HDF5ErrMapper::ToException<FileException>(
37 "Unable to setup MPIO Driver configuration");
46 class DefaultFileDriver :
public FileDriver {
53 template <
typename Comm,
typename Info>
55 add(MPIOFileAccess<Comm, Info>(comm, info));
59 #endif // H5FILEDRIVER_MISC_HPP