Data Access Library (DAL)
 All Classes Functions Variables Typedefs Friends
Public Member Functions
dal::AttributeBase Class Reference

#include <Attribute.h>

Inheritance diagram for dal::AttributeBase:
dal::Node dal::Attribute< T > dal::Attribute< std::vector< T > >

List of all members.

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

Detailed Description

Represents core functionality for an attribute inside a group.


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual bool dal::AttributeBase::exists ( ) const [virtual]

Returns whether this attribute exists in the HDF5 file.

Reimplemented from dal::Node.

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 >.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs Friends