11 #ifndef ZYPP_VENDORATTR_H 12 #define ZYPP_VENDORATTR_H 23 #include <zypp/APIConfig.h> 92 bool addVendorDirectory(
const Pathname & dirname_r );
101 bool addVendorFile(
const Pathname & filename_r );
114 { _addVendorList( std::move(list_r) ); }
119 template <
class TContainer>
123 for (
const auto & el : container_r )
124 tmp.push_back( std::string(el) );
125 _addVendorList( std::move(tmp) );
128 template <
class TStr>
132 for (
const auto & el : container_r )
133 tmp.push_back( std::string(el) );
134 _addVendorList( std::move(tmp) );
142 bool equivalent(
const Vendor & lVendor,
const Vendor & rVendor )
const;
148 bool equivalent(
const PoolItem & lVendor,
const PoolItem & rVendor )
const;
151 bool relaxedEquivalent(
const Vendor & lVendor,
const Vendor & rVendor )
const;
157 bool relaxedEquivalent(
const PoolItem & lVendor,
const PoolItem & rVendor )
const;
163 unsigned foreachVendorList( std::function<
bool(VendorList)> fnc_r )
const;
171 void _addVendorList( std::vector<std::string> & list_r )
const ZYPP_DEPRECATED;
173 void _addVendorList( std::vector<IdString> && list_r );
185 #endif // ZYPP_VENDORATTR_H A Solvable object within the sat Pool.
void addVendorList(const VendorList &list_r)
void addVendorList(const TContainer &container_r)
RWCOW_pointer< Impl > _pimpl
Implementation class.
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Access to the sat-pools string space.
VendorAttr implementation.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition of vendor equivalence.
void addVendorList(VendorList &&list_r)
Adding new equivalent vendor strings container.
void addVendorList(const std::initializer_list< TStr > &container_r)
std::vector< std::string > VendorList
Preferred type to pass equivalent vendor strings.
Combining sat::Solvable and ResStatus.
Easy-to use interface to the ZYPP dependency resolver.
#define ZYPP_DEPRECATED
The ZYPP_DEPRECATED macro can be used to trigger compile-time warnings with gcc >= 3...