#include <Hdf4Element.h>

Public Types | |
| typedef std::map< std::string, Hdf4Attribute * > | AttributeContainer |
Public Member Functions | |
| const std::string & | getName () const |
| Hdf4Attribute * | addAttribute (const std::string &name, const DataVariant &value) |
| const AttributeContainer & | getAttributes () const |
| Hdf4Attribute * | getAttribute (const std::string &name) const |
| size_t | getNumAttributes () const |
| bool | removeAttribute (const std::string &name) |
| virtual | ~Hdf4Element () |
Protected Member Functions | |
| Hdf4Element (const std::string &name) | |
It provides access to the name of the item, as well as its attributes.
Definition at line 25 of file Hdf4Element.h.
| typedef std::map<std::string, Hdf4Attribute*> Hdf4Element::AttributeContainer |
The type of container that is used internally to store and manage Hdf4Attributes.
Definition at line 31 of file Hdf4Element.h.
| virtual Hdf4Element::~Hdf4Element | ( | ) | [virtual] |
Destroys an Hdf5Element and all of its attributes.
| Hdf4Element::Hdf4Element | ( | const std::string & | name | ) | [protected] |
Creates an Hdf4Element object, which is the most basic type of HDF object.
| name | The name of the HDF object. |
| const std::string& Hdf4Element::getName | ( | ) | const |
Returns the name of the HDF Element.
| Hdf4Attribute* Hdf4Element::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& Hdf4Element::getAttributes | ( | ) | const |
Gets the element's attributes.
| Hdf4Attribute* Hdf4Element::getAttribute | ( | const std::string & | name | ) | const |
Gets an attribute based on its name.
| name | The name of the attribute to fetch. |
| size_t Hdf4Element::getNumAttributes | ( | ) | const |
Gets the number of attributes.
| bool Hdf4Element::removeAttribute | ( | const std::string & | name | ) |
Removes an attribute from the Hdf4Element.
| name | The name of the attribute to remove from the Hdf4Element. This is the only way to manually delete an attribute from this object since Hdf4Attribute::~Hdf4Attribute is protected. |