|
libzypp
9.1.2
|
Simple callback to collect the results. More...

Public Member Functions | |
| RepoCollector () | |
| RepoCollector (const std::string &targetDistro_) | |
| bool | collect (const RepoInfo &repo) |
Public Attributes | |
| RepoInfoList | repos |
| std::string | targetDistro |
Simple callback to collect the results.
Classes like RepoFileParser 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 185 of file RepoManager.cc.
| zypp::RepoCollector::RepoCollector | ( | ) | [inline] |
Definition at line 187 of file RepoManager.cc.
| zypp::RepoCollector::RepoCollector | ( | const std::string & | targetDistro_ | ) | [inline] |
Definition at line 190 of file RepoManager.cc.
| bool zypp::RepoCollector::collect | ( | const RepoInfo & | repo | ) | [inline] |
Definition at line 194 of file RepoManager.cc.
References MIL, and zypp::RepoInfo::targetDistribution().
Referenced by zypp::RepoManager::refreshService(), zypp::RepoManager::removeService(), and zypp::repositories_in_file().
| RepoInfoList zypp::RepoCollector::repos |
Definition at line 213 of file RepoManager.cc.
Referenced by zypp::RepoManager::refreshService(), zypp::RepoManager::removeService(), and zypp::repositories_in_file().
| std::string zypp::RepoCollector::targetDistro |
Definition at line 214 of file RepoManager.cc.
1.7.6.1