libyui-qt-pkg  2.45.28
YQPkgFilters Class Reference

Zypp filtering helpers. More...

#include <YQPkgFilters.h>

Static Public Member Functions

static ZyppProduct singleProductFilter (std::function< bool(const zypp::PoolItem &item)> filter)
 Returns the product if the filter finds a single product or null product if there are no or multiple products. More...
 

Detailed Description

Zypp filtering helpers.

Definition at line 29 of file YQPkgFilters.h.

Member Function Documentation

◆ singleProductFilter()

ZyppProduct YQPkgFilters::singleProductFilter ( std::function< bool(const zypp::PoolItem &item)>  filter)
static

Returns the product if the filter finds a single product or null product if there are no or multiple products.

Parameters
filterfiltering function, the parameter is the product pool item, returning true if it matches the expectations
Returns
Found zypp product or null

Definition at line 35 of file YQPkgFilters.cc.


The documentation for this class was generated from the following files: