h5gt 0.2.0
C++ wrapper for HDF5 library (based on HighFive project)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
h5gt::AnnotateTraits< Derivate > Class Template Reference

Public Member Functions

Attribute createAttribute (const std::string &attr_name, const DataSpace &space, const DataType &type)
 create a new attribute with the name attr_name
 
template<typename Type >
Attribute createAttribute (const std::string &attr_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 &attr_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 &attr_name)
 deleteAttribute let you delete an attribute by its name.
 
Attribute getAttribute (const std::string &attr_name) const
 open an existing attribute with the name attr_name
 
size_t getNumberAttributes () const
 return the number of attributes of the object
 
std::vector< std::string > listAttributeNames () const
 list all attribute name of the object
 
bool hasAttribute (const std::string &attr_name) const
 checks an attribute exists
 

Member Function Documentation

◆ createAttribute() [1/3]

template<typename Derivate >
template<typename Type >
Attribute h5gt::AnnotateTraits< Derivate >::createAttribute ( const std::string & attr_name,
const DataSpace & space )
inline

createAttribute create a new attribute on the current dataset with size specified by space

Parameters
attr_nameidentifier of the attribute
spaceAssociated DataSpace informations
Returns
Attribute Object

◆ createAttribute() [2/3]

template<typename Derivate >
Attribute h5gt::AnnotateTraits< Derivate >::createAttribute ( const std::string & attr_name,
const DataSpace & space,
const DataType & type )
inline

create a new attribute with the name attr_name

Parameters
attr_nameidentifier of the attribute
spaceAssociated DataSpace
type
Returns
the attribute object

◆ createAttribute() [3/3]

template<typename Derivate >
template<typename T >
Attribute h5gt::AnnotateTraits< Derivate >::createAttribute ( const std::string & attr_name,
const T & data )
inline

createAttribute create a new attribute on the current dataset and write to it, inferring the DataSpace from data.

Parameters
attr_nameidentifier of the attribute
dataAssociated data to write, must support DataSpace::From, see DataSpace for more information
Returns
Attribute Object

◆ deleteAttribute()

template<typename Derivate >
void h5gt::AnnotateTraits< Derivate >::deleteAttribute ( const std::string & attr_name)
inline

deleteAttribute let you delete an attribute by its name.

Parameters
attr_nameidentifier of the attribute

◆ getAttribute()

template<typename Derivate >
Attribute h5gt::AnnotateTraits< Derivate >::getAttribute ( const std::string & attr_name) const
inline

open an existing attribute with the name attr_name

Parameters
attr_nameidentifier of the attribute
Returns
the attribute object

◆ getNumberAttributes()

template<typename Derivate >
size_t h5gt::AnnotateTraits< Derivate >::getNumberAttributes ( ) const
inline

return the number of attributes of the object

Returns
number of attributes

◆ hasAttribute()

template<typename Derivate >
bool h5gt::AnnotateTraits< Derivate >::hasAttribute ( const std::string & attr_name) const
inline

checks an attribute exists

Returns
number of attributes

◆ listAttributeNames()

template<typename Derivate >
std::vector< std::string > h5gt::AnnotateTraits< Derivate >::listAttributeNames ( ) const
inline

list all attribute name of the object

Returns
number of attributes

The documentation for this class was generated from the following files: