icedb
version 0.5.1
Snow particle scattering database API
|
#include <Attribute_impl.hpp>
Public Member Functions | |
CanHaveAttributes_impl (std::shared_ptr< H5::H5Object >) | |
CanHaveAttributes_impl () | |
virtual | ~CanHaveAttributes_impl () |
![]() | |
~CanHaveAttributes () | |
bool | doesAttributeExist (const std::string &attributeName) const |
Does the object have an attribute with the given name? More... | |
std::type_index | getAttributeTypeId (const std::string &attributeName) const |
Returns the type of an attribute. More... | |
template<class Type > | |
bool | isAttributeOfType (const std::string &attributeName) const |
Is the type of the attribute "Type"? More... | |
std::set< std::string > | getAttributeNames () const |
List all attributes attached to this object. More... | |
void | deleteAttribute (const std::string &attributeName) |
Delete an attribute, by name, that is attached to this object. More... | |
template<class DataType > | |
void | readAttributeData (const std::string &attributeName, std::vector< size_t > &dimensions, std::vector< DataType > &data) const |
Function to read the data from an attribute using the provided input vectors. More... | |
template<class DataType > | |
void | writeAttributeData (const std::string &attributeName, const std::vector< size_t > &dimensionas, const std::vector< DataType > &data) |
Function to write an attribute to an object, with the provided raw data. More... | |
template<class DataType > | |
Attribute< DataType > | readAttribute (const std::string &attributeName) const |
Convenience function to read an attribute's data and return an Attribute object. More... | |
template<class DataType > | |
void | writeAttribute (const Attribute< DataType > &attribute) |
Convenience function to write an Attribute to an object. More... | |
template<class DataType > | |
void | writeAttribute (const std::string &name, std::initializer_list< size_t > dims, std::initializer_list< DataType > data) |
Convenience function to write a small Attribute to an object, using initializer lists. More... | |
Protected Member Functions | |
virtual void | _setAttributeParent (std::shared_ptr< H5::H5Object > obj) override |
virtual std::shared_ptr< H5::H5Object > | _getAttributeParent () const override |
![]() | |
CanHaveAttributes () | |
Private Attributes | |
std::shared_ptr< H5::H5Object > | parent |
Additional Inherited Members | |
![]() | |
static bool | doesAttributeExist (gsl::not_null< const H5::H5Object *> parent, const std::string &attributeName) |
Does an object (parent) have an attribute with the given name? More... | |
static std::type_index | getAttributeTypeId (gsl::not_null< const H5::H5Object *> parent, const std::string &attributeName) |
Returns the type of an attribute. More... | |
template<class DataType > | |
static void | readAttributeData (gsl::not_null< const H5::H5Object *> parent, const std::string &attributeName, std::vector< size_t > &dimensions, std::vector< DataType > &data) |
Function to read the data from an attribute. More... | |
template<class DataType > | |
static Attribute< DataType > | readAttribute (gsl::not_null< const H5::H5Object *> obj, const std::string &attributeName) |
Convenience function to read an attribute's data and return an Attribute object. More... | |
Definition at line 6 of file Attribute_impl.hpp.
icedb::Attributes::CanHaveAttributes_impl::CanHaveAttributes_impl | ( | std::shared_ptr< H5::H5Object > | parent | ) |
Definition at line 16 of file Attributes.cpp.
icedb::Attributes::CanHaveAttributes_impl::CanHaveAttributes_impl | ( | ) |
Definition at line 15 of file Attributes.cpp.
|
virtual |
Definition at line 17 of file Attributes.cpp.
|
overrideprotectedvirtual |
Implements icedb::Attributes::CanHaveAttributes.
Definition at line 29 of file Attributes.cpp.
References parent.
Referenced by icedb::Attributes::CanHaveAttributes::deleteAttribute(), icedb::Attributes::CanHaveAttributes::doesAttributeExist(), icedb::Attributes::CanHaveAttributes::getAttributeNames(), icedb::Attributes::CanHaveAttributes::getAttributeTypeId(), icedb::Attributes::CanHaveAttributes::readAttributeData(), icedb::Attributes::CanHaveAttributes::valid(), and icedb::Attributes::CanHaveAttributes::writeAttributeData().
|
overrideprotectedvirtual |
Implements icedb::Attributes::CanHaveAttributes.
Definition at line 24 of file Attributes.cpp.
References parent.
Referenced by icedb::Groups::Group_impl::Group_impl(), and icedb::Tables::Table_impl::Table_impl().
|
private |
Definition at line 7 of file Attribute_impl.hpp.
Referenced by _getAttributeParent(), icedb::Groups::_Impl_createGroup(), _setAttributeParent(), icedb::Groups::Group::createGroup(), icedb::Attributes::CanHaveAttributes::getAttributeTypeId(), icedb::Groups::Group_impl::Group_impl(), icedb::Groups::Group_impl::openGroup(), icedb::Groups::Group::openGroup(), icedb::Attributes::CanHaveAttributes::readAttributeData(), and icedb::Attributes::CanHaveAttributes::writeAttributeData().