| Slackware-Slackget documentation | Contained in the Slackware-Slackget distribution. |
Slackware::Slackget::SpecialFileContainerList - This class is a container of Slackware::Slackget::SpecialFileContainer object
Version 1.0.0
This class is a container of Slackware::Slackget::SpecialFileContainer object, and allow you to perform some operations on this packages list. As the SpecialFileContainer class, it is a slack-get's internal representation of data.
use Slackware::Slackget::SpecialFileContainerList;
my $containerlist = Slackware::Slackget::SpecialFileContainerList->new();
$containerlist->add($container);
my $conainer = $containerlist->get($index);
my $container = $containerlist->Shift();
Please read the Slackware::Slackget::List documentation for more informations (Slackware::Slackget::List).
This class constructor don't take any parameters.
my $containerlist = new Slackware::Slackget::SpecialFileContainerList ();
return a list of all id of the SpecialFileContainers.
DUPUIS Arnaud, <a.dupuis@infinityperl.org>
Please report any bugs or feature requests to
bug-Slackware-Slackget@rt.cpan.org, or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Slackware-Slackget.
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc Slackware::Slackget
You can also look for information at:
Thanks to Bertrand Dupuis (yes my brother) for his contribution to the documentation.
Copyright 2005 DUPUIS Arnaud, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Slackware-Slackget documentation | Contained in the Slackware-Slackget distribution. |
package Slackware::Slackget::SpecialFileContainerList; use warnings; use strict; require Slackware::Slackget::List ;
our $VERSION = '1.0.0'; our @ISA = qw( Slackware::Slackget::List );
sub new { my ($class,%args) = @_ ; my $self={list_type => 'Slackware::Slackget::SpecialFileContainer','root-tag' => 'slack-get'}; foreach (keys(%args)) { $self->{$_} = $args{$_}; } $self->{LIST} = [] ; $self->{ENCODING} = 'utf8' ; $self->{ENCODING} = $args{'encoding'} if(defined($args{'encoding'})) ; bless($self);#,$class return $self; }
sub get_all_media_id { my $self = shift; my %shortnames=(); foreach my $obj (@{$self->get_all}){ $shortnames{$obj->id}=1; } return keys(%shortnames); }
1; # End of Slackware::Slackget::SpecialFileContainerList