6 #ifndef ECHELON_HDF5_ATTRIBUTE_HPP 7 #define ECHELON_HDF5_ATTRIBUTE_HPP 9 #include <echelon/hdf5/type.hpp> 10 #include <echelon/hdf5/object.hpp> 12 #include <echelon/hdf5/precursor/attribute.hpp> 14 #include <echelon/hdf5/storage_layer.hpp> 36 attribute(
const object& parent,
const std::string& name);
48 write(attr.attribute_wrapper_, value);
61 read(attr.attribute_wrapper_, value);
74 explicit operator bool()
const;
76 hdf5::precursor::attribute attribute_wrapper_;
echelon's core namespace
Definition: attribute.cpp:10
A handle to an HDF5 attribute.
Definition: hdf5/attribute.hpp:24
friend void operator<<=(T &value, const attribute &attr)
Reads the content of an attribute into a variable.
Definition: hdf5/attribute.hpp:59
attribute()=default
Initializes the handle with its null state.
type datatype() const
The value type of the attribute.
Definition: hdf5/attribute.cpp:29
friend void operator<<=(attribute &attr, const T &value)
Writes the content of a variable into the attribute.
Definition: hdf5/attribute.hpp:46
hdf5::precursor::attribute native_handle_type
Type of the underlying HDF5 low-level handle.
Definition: hdf5/attribute.hpp:29
A handle to an HDF5 type.
Definition: hdf5/type.hpp:23
const native_handle_type & native_handle() const
The underlying HDF5 low-level handle.
Definition: hdf5/attribute.cpp:34