PDL::IO::HDF5::Group - PDL::IO::HDF5 Helper Object representing HDF5 groups.
This is a helper-object used by PDL::IO::HDF5 to interface with HDF5 format's group objects. Information on the HDF5 Format can be found at the NCSA's web site at http://hdf.ncsa.uiuc.edu/ .
See PDL::IO::HDF5
ID number given to the group by the HDF5 library
Name of the group. (Absolute to the root group '/'. e.g. /maingroup/subgroup)
Ref to parent object (file or group) that owns this group.
Ref to the PDL::IO::HDF5 object that owns this object.
####---------------------------------------------------------
PDL::IO::HDF5::Group Constructor - creates new object
Usage:
This object will usually be created using the calling format detailed in the SYNOPSIS. The following syntax is used by the PDL::IO::HDF5 object to build the object.
$a = new PDL::IO::HDF5:Group( name => $name, parent => $parent, fileObj => $fileObj ); Args: $name Name of the group (relative to the parent) $parent Parent Object that owns this group $fileObj PDL::HDF (Top Level) object that owns this group.
PDL::IO::HDF5 Destructor - Closes the HDF5::Group Object.
No Usage. Automatically called
Set the value of an attribute(s)
Currently the only attribute types supported are null-terminated strings.
$group->attrSet( 'attr1' => 'attr1Value', 'attr2' => 'attr2 value', . . . );
Returns undef on failure, 1 on success.
Get the value of an attribute(s)
my @attrs = $group->attrGet( 'attr1', 'attr2');
Delete attribute(s)
$group->attrDel( 'attr1', 'attr2', . . . );
Get a list of all attribute names in a group
@attrs = $group->attrs;
Open an existing or create a new dataset in a group.
$dataset = $group->dataset('newdataset');
Get a list of all dataset names in a group. (Relative to the current group)
@datasets = $group->datasets;
Open an existing or create a new group in an existing group.
$newgroup = $oldgroup->group("newgroup");
Get a list of all group names in a group. (Relative to the current group)
@groupNames = $group->groups;
Internal Recursive Method to build the attribute index hash for the object
For the purposes of indexing groups by their attributes, the attributes are applied hierarchial. i.e. any attributes of the higher level groups are assumed to be apply for the lower level groups.
$group->_buildAttrIndex($index, $currentAttrs); Input/Output: $index: Total Index hash ref $currentAttrs: Hash refs of the attributes valid for the current group.
Returns the HDF5 library ID for this object
my $ID = $groupObj->IDget;
Returns the HDF5 Group Name for this object. (Relative to the root group)
my $name = $groupObj->nameGet;
To install PDL::IO::HDF5::Group, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PDL::IO::HDF5::Group
CPAN shell
perl -MCPAN -e shell install PDL::IO::HDF5::Group
For more information on module installation, please visit the detailed CPAN module installation guide.