66 : fileName_(fN), accessLevel_(access) {
69 H5::Exception::dontPrint();
70 hid_t fcpl_id = H5Pcreate(H5P_FILE_CREATE);
71 H5::FileCreatPropList fcpList(fcpl_id);
74#elif defined(__GNUC__)
75#pragma GCC diagnostic push
76#pragma GCC diagnostic ignored "-Wdeprecated-copy"
91#elif defined(__GNUC__)
92#pragma GCC diagnostic pop
96 }
catch (H5::Exception&) {
97 std::stringstream message;
98 message <<
"Could not access file " <<
fileName_;
99 message <<
" with permission to " <<
accessLevel_ <<
"." << std::endl;
101 throw std::runtime_error(message.str());