package Mac::CoreMIDI::Device; use 5.006; use strict; use warnings; use base qw(Mac::CoreMIDI::Object); our $VERSION = '0.03'; sub GetEntities { my ($self) = @_; my $numEntities = $self->GetNumberOfEntities(); my @entities = map { $self->GetEntity($_) } 0..$numEntities-1; return @entities; } 1; __END__ =head1 NAME Mac::CoreMIDI::Device - Encapsulates a CoreMIDI Device =head1 METHODS =over =item CGetEntities()> Returns a list of all entities for this device. =item CGetNumberOfEntities()> Returns the number of entities. =item CGetEntity($i)> Returns the C<$i>'th entity (starting from 0). =back =head1 SEE ALSO L =head1 AUTHOR Christian Renz, Ecrenz @ web42.comE =head1 COPYRIGHT AND LICENSE Copyright 2004-2005 Christian Renz, Ecrenz @ web42.comE This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut