13#include "../H5Exception.hpp"
14#include "../H5Utility.hpp"
18inline Object make_object(hid_t hid) {
25 : _hid(H5I_INVALID_HID) {}
39 other._hid = H5I_INVALID_HID;
62 return (
_hid != H5I_INVALID_HID) && (H5Iis_valid(
_hid) !=
false);
69static inline ObjectType _convert_object_type(
const H5I_type_t& h5type) {
91 if ((h5type = H5Iget_type(
_hid)) == H5I_BADID) {
94 return _convert_object_type(h5type);
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:201
Exception specific to HighFive Object interface.
Definition H5Exception.hpp:85
Definition H5Object.hpp:54
hid_t getId() const noexcept
getId
Definition H5Object_misc.hpp:65
ObjectInfo getInfo() const
Retrieve several infos about the current object (address, dates, etc)
Definition H5Object_misc.hpp:97
~Object()
Definition H5Object_misc.hpp:55
ObjectType getType() const
Gets the fundamental type of the object (dataset, group, etc)
Definition H5Object_misc.hpp:88
Object()
Definition H5Object_misc.hpp:24
bool isValid() const noexcept
isValid
Definition H5Object_misc.hpp:61
hid_t _hid
Definition H5Object.hpp:105
Object & operator=(const Object &other)
Definition H5Object_misc.hpp:42
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:15
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:42