#include <H5Annotate_traits.hpp>
|
Attribute | createAttribute (const std::string &attribute_name, const DataSpace &space, const DataType &type) |
| create a new attribute with the name attribute_name
|
|
template<typename Type > |
Attribute | createAttribute (const std::string &attribute_name, const DataSpace &space) |
| createAttribute create a new attribute on the current dataset with size specified by space
|
|
template<typename T > |
Attribute | createAttribute (const std::string &attribute_name, const T &data) |
| createAttribute create a new attribute on the current dataset and write to it, inferring the DataSpace from data.
|
|
void | deleteAttribute (const std::string &attribute_name) |
| deleteAttribute let you delete an attribute by its name.
|
|
Attribute | getAttribute (const std::string &attribute_name) const |
| open an existing attribute with the name attribute_name
|
|
size_t | getNumberAttributes () const |
| return the number of attributes of the node / group
|
|
std::vector< std::string > | listAttributeNames () const |
| list all attribute name of the node / group
|
|
bool | hasAttribute (const std::string &attr_name) const |
| checks an attribute exists
|
|
◆ createAttribute() [1/3]
template<typename Derivate >
template<typename Type >
createAttribute create a new attribute on the current dataset with size specified by space
- Parameters
-
attribute_name | identifier of the attribute |
space | Associated DataSpace informations |
- Returns
- Attribute Object
◆ createAttribute() [2/3]
template<typename Derivate >
create a new attribute with the name attribute_name
- Parameters
-
attribute_name | identifier of the attribute |
space | Associated DataSpace |
type | |
- Returns
- the attribute object
◆ createAttribute() [3/3]
template<typename Derivate >
template<typename T >
createAttribute create a new attribute on the current dataset and write to it, inferring the DataSpace from data.
- Parameters
-
attribute_name | identifier of the attribute |
data | Associated data to write, must support DataSpace::From, see DataSpace for more information |
- Returns
- Attribute Object
◆ deleteAttribute()
template<typename Derivate >
deleteAttribute let you delete an attribute by its name.
- Parameters
-
attribute_name | identifier of the attribute |
◆ getAttribute()
template<typename Derivate >
open an existing attribute with the name attribute_name
- Parameters
-
attribute_name | identifier of the attribute |
- Returns
- the attribute object
◆ getNumberAttributes()
template<typename Derivate >
return the number of attributes of the node / group
- Returns
- number of attributes
◆ hasAttribute()
template<typename Derivate >
checks an attribute exists
- Returns
- number of attributes
◆ listAttributeNames()
template<typename Derivate >
list all attribute name of the node / group
- Returns
- number of attributes
The documentation for this class was generated from the following files: