54class AttributeIterator;
103 void remove(
const std::string &name)
const;
120 bool exists(
const std::string &name)
const;
129 void rename(
const std::string &old_name,
const std::string &new_name)
const;
156 Attribute create(
const std::string &name,
196 Attribute create_from(
const std::string &name,
const T &value);
213 const node::Node &node() const noexcept;
234 const property::AttributeCreationList &acpl)
const
239 return this->create(name,mem_type_holder.
get<T>(),space,acpl);
243Attribute AttributeManager::create(
const std::string &name,
250 return create(name,mem_type_holder.
get<T>(),space,acpl);
255Attribute AttributeManager::create_from(
const std::string &name,
const T &value)
258 auto space = dataspace::create(value);
260 Attribute a = create(name,mem_type_holder.
get<T>(),space);
iterator configuration
Definition iterator_config.hpp:72
Definition attribute_iterator.hpp:40
provides STL interface for attributes
Definition attribute_manager.hpp:63
AttributeManager(const AttributeManager &manager)=default
copy constructor
void rename(const std::string &old_name, const std::string &new_name) const
rename an attribute
size_t size() const
get number of attributes
AttributeManager(node::Node &node)
constructor
Attribute create(const std::string &name, const datatype::Datatype &datatype, const dataspace::Dataspace &dataspace, const property::AttributeCreationList &acpl=property::AttributeCreationList()) const
create an attribute
AttributeManager()=delete
void remove(size_t index) const
remove attribute by index
Attribute operator[](size_t index) const
get attribute by index
bool exists(const std::string &name) const
check existence
void remove(const std::string &name) const
remove attribute by name
IteratorConfig & iterator_config() noexcept
get iterator configuration
Attribute operator[](const std::string &name) const
get attribute by name
Definition attribute.hpp:49
void write(const T &data) const
write data to attribute
Definition attribute.hpp:351
dataspace base class
Definition dataspace.hpp:41
scalar dataspace
Definition scalar.hpp:44
simple multidimensional dataspace
Definition simple.hpp:43
data type object holder
Definition factory.hpp:54
const Datatype & get(const T &v=T{})
factory holder method for getting reference of data types
Definition factory.hpp:74
base class for all data types
Definition datatype.hpp:42
Definition attribute_creation.hpp:35
top-level namespace of the entire library
Definition attribute.hpp:45
std::vector< hsize_t > Dimensions
Definition types.hpp:32
#define DLL_EXPORT
Definition windows.hpp:29