libzypp 17.32.2
|
Simple callback to collect the results. More...
#include <zypp_detail/repomanagerbase_p.h>
Public Member Functions | |
RepoCollector () | |
RepoCollector (std::string targetDistro_) | |
bool | collect (const RepoInfo &repo) |
Public Attributes | |
RepoInfoList | repos |
std::string | targetDistro |
Simple callback to collect the results.
Classes like RepoFileReader call the callback once per each repo in a file.
Passing this functor as callback, you can collect all results at the end, without dealing with async code.
If targetDistro is set, all repos with non-empty RepoInfo::targetDistribution() will be skipped.
Definition at line 99 of file repomanagerbase_p.h.
|
inline |
Definition at line 101 of file repomanagerbase_p.h.
|
inline |
Definition at line 104 of file repomanagerbase_p.h.
Definition at line 87 of file repomanagerbase_p.cc.
RepoInfoList zypp::RepoCollector::repos |
Definition at line 110 of file repomanagerbase_p.h.
std::string zypp::RepoCollector::targetDistro |
Definition at line 111 of file repomanagerbase_p.h.