10#define H5ATTRIBUTE_HPP
14#include "H5DataSpace.hpp"
15#include "H5DataType.hpp"
25 const static ObjectType type = ObjectType::Attribute;
67 void read(T& array)
const;
83 void write(
const T& buffer);
91 static Attribute FromId(
const hid_t&
id,
const bool& increaseRefCount =
false){
92 Object obj =
Object(
id, ObjectType::Attribute, increaseRefCount);
102 template <
typename Derivate>
friend class ::h5gt::AnnotateTraits;
Class representing an attribute of a dataset or group.
Definition H5Attribute.hpp:22
void write(const T &buffer)
Definition H5Attribute_misc.hpp:113
DataType getDataType() const
getDataType
Definition H5Attribute_misc.hpp:40
void write_raw(const T *buffer, const DataType &dtype=DataType())
Definition H5Attribute_misc.hpp:138
void read(T &array) const
Definition H5Attribute_misc.hpp:68
DataSpace getMemSpace() const
getMemSpace
Definition H5Attribute_misc.hpp:55
std::string getName() const
return the name of the current attribute
Definition H5Attribute_misc.hpp:30
size_t getStorageSize() const
getStorageSize
Definition H5Attribute_misc.hpp:36
DataSpace getSpace() const
getSpace
Definition H5Attribute_misc.hpp:46
Class representing the space (dimensions) of a dataset.
Definition H5DataSpace.hpp:37
HDF5 Data Type.
Definition H5DataType.hpp:48
File class.
Definition H5File.hpp:25
Definition H5Object.hpp:55