19inline Object make_object(hid_t hid) {
26 : _hid(H5I_INVALID_HID) {}
34 detail::h5i_inc_ref(
_hid);
40 other._hid = H5I_INVALID_HID;
45 if ((*this).isValid()) {
46 detail::h5i_dec_ref(
_hid);
51 detail::h5i_inc_ref(
_hid);
59 if (detail::nothrow::h5i_dec_ref(
_hid) < 0) {
66 return (
_hid > 0) && (detail::nothrow::h5i_is_valid(
_hid) > 0);
73static inline ObjectType _convert_object_type(
const H5I_type_t& h5type) {
94 return _convert_object_type(detail::h5i_get_type(
_hid));
99#if (H5Oget_info_vers < 3)
110 return raw_info.addr;
116 return raw_info.btime;
119 return raw_info.mtime;
#define HIGHFIVE_LOG_ERROR(message)
Definition H5Utility.hpp:204
Definition H5Object.hpp:54
hid_t getId() const noexcept
getId
Definition H5Object_misc.hpp:69
ObjectInfo getInfo() const
Retrieve several infos about the current object (address, dates, etc)
Definition H5Object_misc.hpp:97
~Object()
Definition H5Object_misc.hpp:57
ObjectType getType() const
Gets the fundamental type of the object (dataset, group, etc)
Definition H5Object_misc.hpp:92
Object()
Definition H5Object_misc.hpp:25
bool isValid() const noexcept
isValid
Definition H5Object_misc.hpp:65
hid_t _hid
Definition H5Object.hpp:105
Object & operator=(const Object &other)
Definition H5Object_misc.hpp:43
A class for accessing hdf5 objects info.
Definition H5Object.hpp:126
time_t getCreationTime() const noexcept
Retrieve the object's creation time.
Definition H5Object_misc.hpp:115
haddr_t getAddress() const noexcept
Retrieve the address of the object (within its file)
Definition H5Object_misc.hpp:109
size_t getRefCount() const noexcept
Retrieve the number of references to this object.
Definition H5Object_misc.hpp:112
H5O_info_t raw_info
Definition H5Object.hpp:144
time_t getModificationTime() const noexcept
Retrieve the object's last modification time.
Definition H5Object_misc.hpp:118
Definition H5_definitions.hpp:22
ObjectType
Enum of the types of objects (H5O api)
Definition H5Object.hpp:24
static void ToException(const std::string &prefix_msg)
Definition H5Exception_misc.hpp:43