jigdo API
PartUrlMapping Class Reference
Object to enumerate all URLs for "Label:some/path". More...
#include <url-mapping.hh>

Public Member Functions | |
string | enumerate (vector< UrlMapping * > *best) |
You must not call the addServer() method of this object's UrlMap after calling enumerate(). | |
Classes | |
struct | StackEntry |
Detailed Description
Object to enumerate all URLs for "Label:some/path".The order of preference for the enumeration can change dynamically, i.e. if the score of a server entry is decreased after several failed attempts to download from it, future weight calculations involving that server will take the decreased weight into account.
Member Function Documentation
string PartUrlMapping::enumerate | ( | vector< UrlMapping * > * | best | ) |
You must not call the addServer() method of this object's UrlMap after calling enumerate().
Otherwise, future results returned by this method will be complete nonsense. Enumerates all possible URLs, sorted by weight. Returns the empty string if all URLs enumerated. Internally, scans through the whole UrlMap each time, which can potentially take a long time.
References debug, and UrlMapping::next().
Referenced by Job::MakeImageDl::childFor(), and expectEnum().
The documentation for this class was generated from the following files:
- job/url-mapping.hh
- job/url-mapping.cc
Generated on Tue Sep 23 14:27:43 2008 for jigdo by
