RMF
RMF::HDF5::ConstAttributes< Base > Class Template Reference

#include <RMF/HDF5/ConstAttributes.h>

Inheritance diagram for RMF::HDF5::ConstAttributes< Base >:

Public Member Functions

template<class CT, class CF>
CT copy_to (const CF &cf) const
bool get_has_attribute (std::string nm) const

Protected Member Functions

 ConstAttributes (std::shared_ptr< SharedHandle > h)

Template attribute methods

When manipulating attributes from C++ you can use these templated methods.

template<class TypeTraits>
TypeTraits::Types get_attribute (std::string name) const

Nontemplated attributes

When using python, call the non-template versions of the attribute manipulation methods.

Ints get_int_attribute (std::string nm) const
Floats get_float_attribute (std::string nm) const
Ints get_index_attribute (std::string nm) const
std::string get_char_attribute (std::string nm) const

Detailed Description

template<class Base>
class RMF::HDF5::ConstAttributes< Base >

Wrap getting the attributes from an HDF5 Object. Each data set or group can have associated data. These data should be relatively small (a few k at most). See MutableAttributes for the methods to change the attribute data.

Definition at line 29 of file ConstAttributes.h.

Constructor & Destructor Documentation

◆ ConstAttributes() [1/2]

template<class Base>
RMF::HDF5::ConstAttributes< Base >::ConstAttributes ( std::shared_ptr< SharedHandle > h)
protected

Definition at line 32 of file ConstAttributes.h.

◆ ConstAttributes() [2/2]

template<class Base>
RMF::HDF5::ConstAttributes< Base >::ConstAttributes ( )
protected

Definition at line 33 of file ConstAttributes.h.

Member Function Documentation

◆ copy_to()

template<class Base>
template<class CT, class CF>
CT RMF::HDF5::ConstAttributes< Base >::copy_to ( const CF & cf) const

Definition at line 62 of file ConstAttributes.h.

◆ get_attribute()

template<class Base>
template<class TypeTraits>
TypeTraits::Types RMF::HDF5::ConstAttributes< Base >::get_attribute ( std::string name) const

Definition at line 45 of file ConstAttributes.h.

◆ get_char_attribute()

template<class Base>
std::string RMF::HDF5::ConstAttributes< Base >::get_char_attribute ( std::string nm) const

Definition at line 81 of file ConstAttributes.h.

◆ get_float_attribute()

template<class Base>
Floats RMF::HDF5::ConstAttributes< Base >::get_float_attribute ( std::string nm) const

Definition at line 80 of file ConstAttributes.h.

◆ get_has_attribute()

template<class Base>
bool RMF::HDF5::ConstAttributes< Base >::get_has_attribute ( std::string nm) const

Definition at line 65 of file ConstAttributes.h.

◆ get_index_attribute()

template<class Base>
Ints RMF::HDF5::ConstAttributes< Base >::get_index_attribute ( std::string nm) const

Definition at line 80 of file ConstAttributes.h.

◆ get_int_attribute()

template<class Base>
Ints RMF::HDF5::ConstAttributes< Base >::get_int_attribute ( std::string nm) const

Definition at line 80 of file ConstAttributes.h.


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