H5std_string
for name. H5std_string
for name. H5std_string
for name. H5std_string
for the names. H5::H5Object::H5Object | ( | const H5Object & | original | ) |
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. References H5::IdComponent::inMemFunc().
Referenced by createAttribute().
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 |
References H5::Exception::getDetailMsg().
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 |
References H5::Exception::getDetailMsg().
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 |
References H5::Exception::getDetailMsg().
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 |
References H5::IdComponent::inMemFunc().
H5std_string H5::H5Object::getFileName | ( | ) | const |
Gets the name of the file, in which this HDF5 object belongs.
H5::IdComponentException |
References H5::Exception::getDetailMsg(), and H5::IdComponent::inMemFunc().
int H5::H5Object::getNumAttrs | ( | ) | const |
Returns the number of attributes attached to this HDF5 object.
H5::AttributeIException |
References H5::IdComponent::inMemFunc().
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 |
References H5::IdComponent::inMemFunc().
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 |
References H5::IdComponent::inMemFunc().
Attribute H5::H5Object::openAttribute | ( | const char * | name | ) | const |
Opens an attribute given its name.
name | - IN: Name of the attribute |
H5::AttributeIException |
References H5::IdComponent::inMemFunc().
Referenced by openAttribute().
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 |
References reference().
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 |
References H5::Exception::getDetailMsg().
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 |
References H5::Exception::getDetailMsg().
Referenced by reference().
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 |
References H5::IdComponent::inMemFunc().
Referenced by removeAttr().
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 |
References H5::IdComponent::inMemFunc().
Referenced by renameAttr().