jigdo API

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>

List of all members.


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]


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  doxygen 1.5.6