zypp::RepoCollector Struct Reference

Simple callback to collect the results. More...

Inheritance diagram for zypp::RepoCollector:
[legend]

List of all members.

Public Member Functions

 RepoCollector ()
 RepoCollector (const std::string &targetDistro_)
bool collect (const RepoInfo &repo)

Public Attributes

RepoInfoList repos
std::string targetDistro

Detailed Description

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.

Todo:
do this through a separate filter

Definition at line 182 of file RepoManager.cc.


Constructor & Destructor Documentation

zypp::RepoCollector::RepoCollector (  )  [inline]

Definition at line 184 of file RepoManager.cc.

zypp::RepoCollector::RepoCollector ( const std::string &  targetDistro_  )  [inline]

Definition at line 187 of file RepoManager.cc.


Member Function Documentation

bool zypp::RepoCollector::collect ( const RepoInfo repo  )  [inline]

Member Data Documentation

Definition at line 211 of file RepoManager.cc.

Referenced by collect().


The documentation for this struct was generated from the following file:
Generated on Fri Mar 2 09:46:11 2012 for libzypp by  doxygen 1.6.3