#include <Hdf5Element.h>

Public Types | |
| typedef std::map< std::string, Hdf5Attribute * > | AttributeContainer |
Public Member Functions | |
| Hdf5Attribute * | addAttribute (const std::string &name, const DataVariant &value) |
| const AttributeContainer & | getAttributes () const |
| Hdf5Attribute * | getAttribute (const std::string &name) const |
| size_t | getNumAttributes () const |
| bool | removeAttribute (const std::string &name) |
| virtual | ~Hdf5Element () |
Protected Member Functions | |
| Hdf5Element (Hdf5Node *pParent, const std::string &name) | |
It provides access to the name of the item, as well as its attributes.
Definition at line 28 of file Hdf5Element.h.
| typedef std::map<std::string, Hdf5Attribute*> Hdf5Element::AttributeContainer |
The type of container that is used internally to store and manage Hdf5Attributes.
Definition at line 34 of file Hdf5Element.h.
| virtual Hdf5Element::~Hdf5Element | ( | ) | [virtual] |
Destroys an Hdf5Element and all of its attributes.
| Hdf5Element::Hdf5Element | ( | Hdf5Node * | pParent, | |
| const std::string & | name | |||
| ) | [protected] |
Creates an Hdf5Element object, which is the most basic type of HDF object.
| pParent | The parent node of this element. | |
| name | The name of the HDF object. |
| Hdf5Attribute* Hdf5Element::addAttribute | ( | const std::string & | name, | |
| const DataVariant & | value | |||
| ) |
Creates an attribute with a given type and number of elements.
For supported types, see DynamicObject::set().
| name | The name of the attribute. | |
| value | The current value of the attribute. |
| const AttributeContainer& Hdf5Element::getAttributes | ( | ) | const |
Gets the element's attributes.
| Hdf5Attribute* Hdf5Element::getAttribute | ( | const std::string & | name | ) | const |
Gets an attribute based on its name.
| name | The name of the attribute to fetch. |
| size_t Hdf5Element::getNumAttributes | ( | ) | const |
Gets the number of attributes.
| bool Hdf5Element::removeAttribute | ( | const std::string & | name | ) |
Removes an attribute from the Hdf5Element.
| name | The name of the attribute to remove from the Hdf5Element. This is the only way to manually delete an attribute from this object since Hdf5Attribute::~Hdf5Attribute is protected. |