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 | |
virtual void | Close ()=0 |
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 () |
Protected Attributes inherited from Nektar::LibUtilities::H5::Object | |
hid_t | m_Id |
CanHaveAttributes::AttrIterator Nektar::LibUtilities::H5::CanHaveAttributes::attr_begin | ( | ) |
CanHaveAttributes::AttrIterator Nektar::LibUtilities::H5::CanHaveAttributes::attr_end | ( | ) |
Definition at line 345 of file H5.cpp.
AttributeSharedPtr Nektar::LibUtilities::H5::CanHaveAttributes::CreateAttribute | ( | const std::string & | name, |
DataTypeSharedPtr | type, | ||
DataSpaceSharedPtr | space | ||
) |
Definition at line 319 of file H5.cpp.
References Nektar::LibUtilities::H5::Attribute::Create().
Referenced by SetAttribute().
void Nektar::LibUtilities::H5::CanHaveAttributes::GetAttribute | ( | const std::string & | name, |
T & | value | ||
) |
Definition at line 640 of file H5.h.
References Nektar::LibUtilities::H5::DataTypeTraits< T >::Deconvert(), Nektar::LibUtilities::H5::DataTypeTraits< T >::GetAddress(), Nektar::LibUtilities::H5::DataTypeTraits< T >::GetType(), H5_CALL, OpenAttribute(), and Nektar::LibUtilities::H5::DataSpace::Scalar().
void Nektar::LibUtilities::H5::CanHaveAttributes::GetAttribute | ( | const std::string & | name, |
std::vector< T > & | value | ||
) |
Definition at line 655 of file H5.h.
References ASSERTL0, Nektar::LibUtilities::H5::DataTypeTraits< T >::Deconvert(), dest, Nektar::LibUtilities::H5::DataTypeTraits< T >::GetType(), H5_CALL, Nektar::iterator, and OpenAttribute().
int Nektar::LibUtilities::H5::CanHaveAttributes::GetNumAttr | ( | ) | const |
AttributeSharedPtr Nektar::LibUtilities::H5::CanHaveAttributes::OpenAttribute | ( | const std::string & | name | ) |
Definition at line 326 of file H5.cpp.
References Nektar::LibUtilities::H5::Attribute::Open().
Referenced by GetAttribute().
void Nektar::LibUtilities::H5::CanHaveAttributes::SetAttribute | ( | const std::string & | name, |
const T & | value | ||
) |
Definition at line 596 of file H5.h.
References Nektar::LibUtilities::H5::DataTypeTraits< T >::Convert(), CreateAttribute(), Nektar::LibUtilities::H5::DataTypeTraits< T >::GetAddress(), Nektar::LibUtilities::H5::DataTypeTraits< T >::GetType(), H5_CALL, and Nektar::LibUtilities::H5::DataSpace::Scalar().
void Nektar::LibUtilities::H5::CanHaveAttributes::SetAttribute | ( | const std::string & | name, |
const std::vector< T > & | value | ||
) |
Definition at line 610 of file H5.h.
References Nektar::LibUtilities::H5::DataTypeConversionPolicy< T >::Convert(), CreateAttribute(), Nektar::LibUtilities::H5::DataTypeTraits< T >::GetType(), H5_CALL, and Nektar::LibUtilities::H5::DataSpace::OneD().