jigdo API
Last update by Admin on 2010-05-23
JigdoConfig::Lookup Class Reference
Given an URI-style string like "MyServer:dir/foo/file.gz", do label lookup (looking for [Servers] entries like "MyServer=...") and return the resulting strings, e.g. More...
#include <jigdoconfig.hh>
Public Member Functions | |
Lookup (const JigdoConfig &jc, const string &query) | |
bool | next (string &result) |
If true returned, result has been overwritten with next value. |
Detailed Description
Given an URI-style string like "MyServer:dir/foo/file.gz", do label lookup (looking for [Servers] entries like "MyServer=...") and return the resulting strings, e.g."ftp://mysite.com/dir/foo/file.gz". The class will enumerate all the possible URIs. NB: After a jc.rescan(), no further calls to next() of existing Lookups for that JigdoConfig are allowed. Also, query must stay valid throughout the lifetime of Lookup, since a reference to it is maintained.
Constructor & Destructor Documentation
JigdoConfig::Lookup::Lookup | ( | const JigdoConfig & | jc, | |
const string & | query | |||
) | [inline] |
References JigdoConfig::serverMap.
Member Function Documentation
bool JigdoConfig::Lookup::next | ( | string & | result | ) | [inline] |
If true returned, result has been overwritten with next value.
Otherwise, end of list has been reached and result is unchanged.
The documentation for this class was generated from the following file:
Generated on Tue Sep 23 14:27:42 2008 for jigdo by
