#include <Attribute.h>
Public Member Functions | |
AttributeBase (Group &parent, const std::string &name) | |
virtual | ~AttributeBase () |
virtual bool | exists () const |
void | remove () const |
size_t | size () const |
virtual bool | valid () const |
Represents core functionality for an attribute inside a group.
dal::AttributeBase::AttributeBase | ( | Group & | parent, |
const std::string & | name | ||
) | [inline] |
Create a generic Attribute object, providing meta functionality.
virtual dal::AttributeBase::~AttributeBase | ( | ) | [inline, virtual] |
Destruct a generic Attribute object.
virtual bool dal::AttributeBase::exists | ( | ) | const [virtual] |
Returns whether this attribute exists in the HDF5 file.
Reimplemented from dal::Node.
void dal::AttributeBase::remove | ( | ) | const |
Removes this element from the HDF5 file. Useful for porting, repairing, or otherwise modifying files on a structural level.
size_t dal::AttributeBase::size | ( | ) | const |
Returns the number of data points in this element (1 for a scalar, >= 0 for a vector)
virtual bool dal::AttributeBase::valid | ( | ) | const [virtual] |
Validates the attribute by checking whether it exists, and whether it can be read using the type defined by this object.
Reimplemented in dal::Attribute< std::vector< T > >, and dal::Attribute< T >.