#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. | |
"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.
| JigdoConfig::Lookup::Lookup | ( | const JigdoConfig & | jc, | |
| const string & | query | |||
| ) | [inline] |
References JigdoConfig::serverMap.
| 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.
1.5.6