DUPUIS Arnaud > slackget10-0.10 > slackget10::MediaList

Download:
slackget10-0.10.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.9.11   Source   Latest Release: slackget10-0.12c

NAME ^

slackget10::MediaList - A container of slackget10::Media object

VERSION ^

Version 1.0.0

SYNOPSIS ^

This class is used by slack-get to represent a list of medias store in the medias.xml file.

    use slackget10::MediaList;

    my $list = slackget10::MediaList->new();
    ...

CONSTRUCTOR ^

new

Please read the slackget10::List documentation for more informations on the list constructor.

FUNCTIONS ^

This class inheritate from slackget10::List, so have a look to this class for a complete list of methods.

index_list

Create an index on the MediaList. This index don't take many memory but speed a lot search, especially when you already have the media shortname !

The index is build with the media shortname.

        $list->index_list() ;

get_indexed

Return a media, as well as Get() do but use the index to return it quickly. You must provide a media shortname to this method.

        my $media = $list->get_indexed('slackware') ;

AUTHOR ^

DUPUIS Arnaud, <a.dupuis@infinityperl.org>

BUGS ^

Please report any bugs or feature requests to bug-slackget10-networking@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=slackget10. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

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.