HighFive 2.10.0
HighFive - Header-only C++ HDF5 interface
Loading...
Searching...
No Matches
h5o_wrapper.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <H5Ipublic.h>
4#include <H5Tpublic.h>
5
6namespace HighFive {
7namespace detail {
8
9inline hid_t h5o_open(hid_t loc_id, const char* name, hid_t lapl_id) {
10 hid_t hid = H5Oopen(loc_id, name, lapl_id);
11 if (hid < 0) {
12 HDF5ErrMapper::ToException<GroupException>(std::string("Unable to open \"") + name + "\":");
13 }
14
15 return hid;
16}
17
18} // namespace detail
19} // namespace HighFive
Definition H5_definitions.hpp:22
static void ToException(const std::string &prefix_msg)
Definition H5Exception_misc.hpp:43