Nektar++
|
Mixin for objects that can have attributes (Group, DataSet, DataType) More...
#include <H5.h>
Classes | |
class | AttrIterator |
Public Member Functions | |
AttributeSharedPtr | CreateAttribute (const std::string &name, DataTypeSharedPtr type, DataSpaceSharedPtr space) |
AttributeSharedPtr | OpenAttribute (const std::string &name) |
template<class T > | |
void | SetAttribute (const std::string &name, const T &value) |
template<class T > | |
void | SetAttribute (const std::string &name, const std::vector< T > &value) |
template<class T > | |
void | GetAttribute (const std::string &name, T &value) |
template<class T > | |
void | GetAttribute (const std::string &name, std::vector< T > &value) |
int | GetNumAttr () const |
AttrIterator | attr_begin () |
AttrIterator | attr_end () |
Public Member Functions inherited from Nektar::LibUtilities::H5::Object | |
void | Close () |
hid_t | GetId () const |
operator hid_t () const | |
Additional Inherited Members | |
Protected Member Functions inherited from Nektar::LibUtilities::H5::Object | |
Object () | |
Object (hid_t id) | |
virtual | ~Object () |
virtual void | v_Close ()=0 |
Protected Attributes inherited from Nektar::LibUtilities::H5::Object | |
hid_t | m_Id |
CanHaveAttributes::AttrIterator Nektar::LibUtilities::H5::CanHaveAttributes::attr_begin | ( | ) |
Definition at line 346 of file H5.cpp.
CanHaveAttributes::AttrIterator Nektar::LibUtilities::H5::CanHaveAttributes::attr_end | ( | ) |
Definition at line 353 of file H5.cpp.
AttributeSharedPtr Nektar::LibUtilities::H5::CanHaveAttributes::CreateAttribute | ( | const std::string & | name, |
DataTypeSharedPtr | type, | ||
DataSpaceSharedPtr | space | ||
) |
Definition at line 327 of file H5.cpp.
References Nektar::LibUtilities::H5::Attribute::Create(), Nektar::LibUtilities::H5::Object::m_Id, and CellMLToNektar.pycml::name.
Referenced by SetAttribute().
void Nektar::LibUtilities::H5::CanHaveAttributes::GetAttribute | ( | const std::string & | name, |
std::vector< T > & | value | ||
) |
Definition at line 776 of file H5.h.
References ASSERTL0, Nektar::LibUtilities::H5::DataTypeTraits< T >::Deconvert(), Nektar::LibUtilities::H5::DataTypeTraits< T >::GetType(), H5_CALL, CellMLToNektar.pycml::name, and OpenAttribute().
void Nektar::LibUtilities::H5::CanHaveAttributes::GetAttribute | ( | const std::string & | name, |
T & | value | ||
) |
Definition at line 762 of file H5.h.
References Nektar::LibUtilities::H5::DataTypeTraits< T >::Deconvert(), Nektar::LibUtilities::H5::DataTypeTraits< T >::GetType(), H5_CALL, CellMLToNektar.pycml::name, OpenAttribute(), and Nektar::LibUtilities::H5::DataSpace::Scalar().
int Nektar::LibUtilities::H5::CanHaveAttributes::GetNumAttr | ( | ) | const |
AttributeSharedPtr Nektar::LibUtilities::H5::CanHaveAttributes::OpenAttribute | ( | const std::string & | name | ) |
Definition at line 334 of file H5.cpp.
References Nektar::LibUtilities::H5::Object::m_Id, CellMLToNektar.pycml::name, and Nektar::LibUtilities::H5::Attribute::Open().
Referenced by GetAttribute().
void Nektar::LibUtilities::H5::CanHaveAttributes::SetAttribute | ( | const std::string & | name, |
const std::vector< T > & | value | ||
) |
Definition at line 732 of file H5.h.
References Nektar::LibUtilities::H5::DataTypeConversionPolicy< T >::Convert(), CreateAttribute(), Nektar::LibUtilities::H5::DataTypeTraits< T >::GetType(), H5_CALL, CellMLToNektar.pycml::name, and Nektar::LibUtilities::H5::DataSpace::OneD().
void Nektar::LibUtilities::H5::CanHaveAttributes::SetAttribute | ( | const std::string & | name, |
const T & | value | ||
) |
Definition at line 719 of file H5.h.
References Nektar::LibUtilities::H5::DataTypeTraits< T >::Convert(), CreateAttribute(), Nektar::LibUtilities::H5::DataTypeTraits< T >::GetType(), H5_CALL, CellMLToNektar.pycml::name, and Nektar::LibUtilities::H5::DataSpace::Scalar().