HDF5 C++ API Reference Manual |
#include <H5Object.h>
Inheritance diagram for H5::H5Object:
Public Member Functions | |
Attribute | createAttribute (const char *name, const DataType &type, const DataSpace &space, const PropList &create_plist=PropList::DEFAULT) const |
Creates an attribute for a group, dataset, or named datatype. | |
Attribute | createAttribute (const H5std_string &name, const DataType &type, const DataSpace &space, const PropList &create_plist=PropList::DEFAULT) const |
This is an overloaded member function, provided for convenience. It differs from the above function in that it takes a reference to an H5std_string for name. | |
Attribute | openAttribute (const char *name) const |
Opens an attribute given its name. | |
Attribute | openAttribute (const H5std_string &name) const |
This is an overloaded member function, provided for convenience. It differs from the above function in that it takes a reference to an H5std_string for name. | |
Attribute | openAttribute (const unsigned int idx) const |
Opens an attribute given its index. | |
void | flush (H5F_scope_t scope) const |
Flushes all buffers associated with a file to disk. | |
H5std_string | getFileName () const |
Gets the name of the file, in which this HDF5 object belongs. | |
int | getNumAttrs () const |
Returns the number of attributes attached to this HDF5 object. | |
int | iterateAttrs (attr_operator_t user_op, unsigned *idx=NULL, void *op_data=NULL) |
Iterates a user's function over all the attributes of an H5 object, which may be a group, dataset or named datatype. | |
void | removeAttr (const char *name) const |
Removes the named attribute from this object. | |
void | removeAttr (const H5std_string &name) const |
This is an overloaded member function, provided for convenience. It differs from the above function in that it takes a reference to an H5std_string for name. | |
void | renameAttr (const char *oldname, const char *newname) const |
Renames the named attribute from this object. | |
void | renameAttr (const H5std_string &oldname, const H5std_string &newname) const |
This is an overloaded member function, provided for convenience. It differs from the above function in that it takes a reference to an H5std_string for the names. | |
void | reference (void *ref, const char *name, const DataSpace &dataspace, H5R_type_t ref_type=H5R_DATASET_REGION) const |
Creates a reference to an HDF5 object or a dataset region. | |
void | reference (void *ref, const char *name) const |
This is an overloaded function, provided for your convenience. It differs from the above function in that it only creates a reference to an HDF5 object, not to a dataset region. | |
void | reference (void *ref, const H5std_string &name) const |
This is an overloaded function, provided for your convenience. It differs from the above function in that it takes an H5std_string for the object's name. | |
void | dereference (H5File &h5file, const void *ref, H5R_type_t ref_type=H5R_OBJECT) |
Dereferences a reference into an HDF5 object, given an HDF5 file. | |
void | dereference (H5Object &obj, const void *ref, H5R_type_t ref_type=H5R_OBJECT) |
Dereferences a reference into an HDF5 object, given an HDF5 object. | |
void | dereference (Attribute &attr, const void *ref, H5R_type_t ref_type=H5R_OBJECT) |
Dereferences a reference into an HDF5 object, given an attribute. | |
H5Object (const H5Object &original) | |
Copy constructor: makes a copy of the original H5Object instance. | |
virtual | ~H5Object () |
Noop destructor. |
H5::H5Object::H5Object | ( | const H5Object & | original | ) |
H5::H5Object::~H5Object | ( | ) | [virtual] |
Noop destructor.
Attribute H5::H5Object::createAttribute | ( | const char * | name, | |
const DataType & | data_type, | |||
const DataSpace & | data_space, | |||
const PropList & | create_plist = PropList::DEFAULT | |||
) | const |
Creates an attribute for a group, dataset, or named datatype.
name | - IN: Name of the attribute | |
data_type | - IN: Datatype for the attribute | |
data_space | - IN: Dataspace for the attribute - only simple dataspaces are allowed at this time | |
create_plist | - IN: Creation property list - default to PropList::DEFAULT |
H5::AttributeIException |
H5Object::removeAttr
, then recreate it with this function. Attribute H5::H5Object::createAttribute | ( | const H5std_string & | name, | |
const DataType & | type, | |||
const DataSpace & | space, | |||
const PropList & | create_plist = PropList::DEFAULT | |||
) | const |
This is an overloaded member function, provided for convenience. It differs from the above function in that it takes a reference to an H5std_string
for name.
Attribute H5::H5Object::openAttribute | ( | const char * | name | ) | const |
Opens an attribute given its name.
name | - IN: Name of the attribute |
H5::AttributeIException |
Attribute H5::H5Object::openAttribute | ( | const H5std_string & | name | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function in that it takes a reference to an H5std_string
for name.
Attribute H5::H5Object::openAttribute | ( | const unsigned int | idx | ) | const |
Opens an attribute given its index.
idx | - IN: Index of the attribute, a 0-based, non-negative integer |
H5::AttributeIException |
void H5::H5Object::flush | ( | H5F_scope_t | scope | ) | const |
Flushes all buffers associated with a file to disk.
scope | - IN: Specifies the scope of the flushing action, which can be either of these values:
|
H5::AttributeIException |
H5std_string H5::H5Object::getFileName | ( | ) | const |
Gets the name of the file, in which this HDF5 object belongs.
H5::IdComponentException |
int H5::H5Object::getNumAttrs | ( | ) | const |
Returns the number of attributes attached to this HDF5 object.
H5::AttributeIException |
int H5::H5Object::iterateAttrs | ( | attr_operator_t | user_op, | |
unsigned * | _idx = NULL , |
|||
void * | op_data = NULL | |||
) |
Iterates a user's function over all the attributes of an H5 object, which may be a group, dataset or named datatype.
user_op | - IN: User's function to operate on each attribute | |
_idx | - IN/OUT: Starting (IN) and ending (OUT) attribute indices | |
op_data | - IN: User's data to pass to user's operator function |
H5::AttributeIException |
void H5::H5Object::removeAttr | ( | const char * | name | ) | const |
Removes the named attribute from this object.
name | - IN: Name of the attribute to be removed |
H5::AttributeIException |
void H5::H5Object::removeAttr | ( | const H5std_string & | name | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function in that it takes a reference to an H5std_string
for name.
void H5::H5Object::renameAttr | ( | const char * | oldname, | |
const char * | newname | |||
) | const |
Renames the named attribute from this object.
oldname | - IN: Name of the attribute to be renamed | |
newname | - IN: New name ame of the attribute |
H5::AttributeIException |
void H5::H5Object::renameAttr | ( | const H5std_string & | oldname, | |
const H5std_string & | newname | |||
) | const |
This is an overloaded member function, provided for convenience. It differs from the above function in that it takes a reference to an H5std_string
for the names.
void H5::H5Object::reference | ( | void * | ref, | |
const char * | name, | |||
const DataSpace & | dataspace, | |||
H5R_type_t | ref_type = H5R_DATASET_REGION | |||
) | const |
Creates a reference to an HDF5 object or a dataset region.
ref | - IN: Reference pointer | |
name | - IN: Name of the object to be referenced | |
dataspace | - IN: Dataspace with selection | |
ref_type | - IN: Type of reference to query, valid values are:
|
H5::IdComponentException |
void H5::H5Object::reference | ( | void * | ref, | |
const char * | name | |||
) | const |
This is an overloaded function, provided for your convenience. It differs from the above function in that it only creates a reference to an HDF5 object, not to a dataset region.
ref | - IN: Reference pointer | |
name | - IN: Name of the object to be referenced - char pointer |
H5::IdComponentException |
void H5::H5Object::reference | ( | void * | ref, | |
const H5std_string & | name | |||
) | const |
This is an overloaded function, provided for your convenience. It differs from the above function in that it takes an H5std_string
for the object's name.
ref | - IN: Reference pointer | |
name | - IN: Name of the object to be referenced - H5std_string |
void H5::H5Object::dereference | ( | H5File & | h5file, | |
const void * | ref, | |||
H5R_type_t | ref_type = H5R_OBJECT | |||
) |
Dereferences a reference into an HDF5 object, given an HDF5 file.
h5file | - IN: HDF5 file specifying the location of the referenced object | |
ref | - IN: Reference pointer | |
ref_type | - IN: Reference type |
H5::ReferenceException |
void H5::H5Object::dereference | ( | H5Object & | obj, | |
const void * | ref, | |||
H5R_type_t | ref_type = H5R_OBJECT | |||
) |
Dereferences a reference into an HDF5 object, given an HDF5 object.
obj | - IN: Object specifying the location of the referenced object | |
ref | - IN: Reference pointer | |
ref_type | - IN: Reference type |
H5::ReferenceException |
void H5::H5Object::dereference | ( | Attribute & | attr, | |
const void * | ref, | |||
H5R_type_t | ref_type = H5R_OBJECT | |||
) |
Dereferences a reference into an HDF5 object, given an attribute.
attr | - IN: Attribute specifying the location of the referenced object | |
ref | - IN: Reference pointer | |
ref_type | - IN: Reference type |
H5::ReferenceException |