113 template <
typename T>
114 void read(T& array)
const;
118 template <
typename T>
119 void read(T* array,
const DataType& mem_datatype)
const;
123 template <
typename T>
124 void read(T* array)
const;
144 template <
typename T>
166 template <
typename T>
186 template <
typename T>
187 void write(
const T& value);
212 template <
typename T>
235 template <
typename T>
252 return details::get_plist<AttributeCreateProps>(*
this, H5Aget_create_plist);
262#if HIGHFIVE_HAS_FRIEND_DECLARATIONS
263 template <
typename Derivate>
264 friend class ::HighFive::AnnotateTraits;
267 friend Attribute detail::make_attribute(hid_t);
271inline Attribute make_attribute(hid_t hid) {
Class representing an Attribute of a DataSet or Group.
Definition H5Attribute.hpp:46
DataSpace getSpace() const
Get the DataSpace of the current Attribute.
Definition H5Attribute_misc.hpp:43
DataType getDataType() const
Get the DataType of the Attribute.
Definition H5Attribute_misc.hpp:37
void read_raw(T *array, const DataType &mem_datatype) const
Read the attribute into a pre-allocated buffer.
Definition H5Attribute_misc.hpp:110
std::string getName() const
Get the name of the current Attribute.
Definition H5Attribute_misc.hpp:28
static const ObjectType type
Definition H5Attribute.hpp:48
T read() const
Get the value of the Attribute.
Definition H5Attribute_misc.hpp:54
DataSpace getMemSpace() const
Get the DataSpace of the current Attribute.
Definition H5Attribute_misc.hpp:49
void write(const T &value)
Write the value into the Attribute.
Definition H5Attribute_misc.hpp:131
void write_raw(const T *buffer, const DataType &mem_datatype)
Write from a raw pointer.
Definition H5Attribute_misc.hpp:156
size_t getStorageSize() const
The number of bytes required to store the attribute in the HDF5 file.
Definition H5Attribute_misc.hpp:33
AttributeCreateProps getCreatePropertyList() const
The create property list used for this attribute.
Definition H5Attribute.hpp:251
Class representing the space (dimensions) of a DataSet.
Definition H5DataSpace.hpp:39
HDF5 Data Type.
Definition H5DataType.hpp:61
Definition H5Object.hpp:54
Object()
Definition H5Object_misc.hpp:25
Definition H5Path_traits.hpp:16
HDF5 property Lists.
Definition H5PropertyList.hpp:160
Definition H5_definitions.hpp:22
ObjectType
Enum of the types of objects (H5O api)
Definition H5Object.hpp:24