11#ifndef ZYPP_VENDORATTR_H
12#define ZYPP_VENDORATTR_H
18#include <zypp/base/PtrTypes.h>
20#include <zypp/PathInfo.h>
114 template <
class TContainer>
118 for (
const auto & el : container_r )
119 tmp.push_back( std::string(el) );
123 template <
class TStr>
127 for (
const auto & el : container_r )
128 tmp.push_back( std::string(el) );
Provides API related macros.
RepoManager implementation.
Access to the sat-pools string space.
Combining sat::Solvable and ResStatus.
Definition of vendor equivalence.
void addVendorList(const VendorList &list_r)
VendorAttr()
Ctor providing the default set.
static VendorAttr & noTargetInstance()
Singleton, settings used if no Target is active.
void addVendorList(const TContainer &container_r)
bool equivalent(const Vendor &lVendor, const Vendor &rVendor) const
Return whether two vendor strings should be treated as the same vendor.
bool addVendorFile(const Pathname &filename_r)
Adding new equivalent vendors described in a file.
friend std::ostream & operator<<(std::ostream &str, const VendorAttr &obj)
RWCOW_pointer< Impl > _pimpl
Implementation class.
void addVendorList(VendorList &&list_r)
Adding new equivalent vendor strings container.
unsigned foreachVendorList(std::function< bool(VendorList)> fnc_r) const
Call fnc_r for each equivalent vendor list (return false to break).
void addVendorList(const std::initializer_list< TStr > &container_r)
bool relaxedEquivalent(const Vendor &lVendor, const Vendor &rVendor) const
Like equivalent but always unifies suse and openSUSE vendor.
static const VendorAttr & instance()
(Pseudo)Singleton, mapped to the current Target::vendorAttr settings or to noTargetInstance.
void _addVendorList(VendorList &&list_r)
std::vector< std::string > VendorList
Preferred type to pass equivalent vendor strings.
bool addVendorDirectory(const Pathname &dirname_r)
Adding new equivalent vendors described in a directory.
A Solvable object within the sat Pool.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
RW_pointer supporting 'copy on write' functionality.
#define ZYPP_DEPRECATED
The ZYPP_DEPRECATED macro can be used to trigger compile-time warnings with gcc >= 3....