17#include <zypp/base/ReferenceCounted.h>
18#include <zypp/base/NonCopyable.h>
19#include <zypp/base/PtrTypes.h>
23#include <zypp/Pathname.h>
87 bool providesFile (
const std::string & name_str,
const std::string & path_str)
const;
92 std::string
whoOwnsFile (
const std::string & path_str)
const;
99 {
return( !
root().emptyOrRoot() ); }
235 std::ostream &
dumpOn( std::ostream &
str )
const;
Provides API related macros.
TraitsType::constPtrType constPtr
std::string distributionFlavor() const
This is flavor attribute of the installed base product but does not require the target to be loaded a...
Pathname root() const
Return the root set for this target.
std::string anonymousUniqueId() const
anonymous unique id
bool chrooted() const
Whether the targets root is not "/".
std::ostream & dumpOn(std::ostream &str) const
Stream output.
Product::constPtr baseProduct() const
returns the target base installed product, also known as the distribution or platform.
std::string targetDistribution() const
This is register.target attribute of the installed base product.
std::string targetDistributionRelease() const
This is register.release attribute of the installed base product.
LocaleSet requestedLocales() const
Languages to be supported by the system.
target::rpm::RpmDb & rpmDb()
Refference to the RPM database.
std::list< PoolItem > PoolItemList
void buildCache()
builds or refreshes the target cache
Pathname assertRootPrefix(const Pathname &path_r) const
Return the path prefixed by the target root, unless it already is prefixed.
std::string whoOwnsFile(const std::string &path_str) const
Return name of package owning path_str or empty string if no installed package owns path_str.
RW_pointer< Impl, rw_pointer::Intrusive< Impl > > _pimpl
Pointer to implementation.
const VendorAttr & vendorAttr() const
The targets current vendor equivalence settings.
std::string targetDistributionFlavor() const
This is register.flavor attribute of the installed base product.
bool providesFile(const std::string &name_str, const std::string &path_str) const
If the package is installed and provides the file Needed to evaluate split provides during Resolver::...
friend std::ostream & operator<<(std::ostream &str, const Target &obj)
void updateAutoInstalled()
Update the database of autoinstalled packages.
void unload()
unload target resolvables from the pool
std::string distributionVersion() const
This is version attribute of the installed base product.
void cleanCache()
cleans the target cache (.solv files)
intrusive_ptr< Impl > Impl_Ptr
DistributionLabel distributionLabel() const
This is shortName and summary attribute of the installed base product.
void load()
load resolvables into the pool
Definition of vendor equivalence.
Base class for reference counted objects.
static Pathname assertprefix(const Pathname &root_r, const Pathname &path_r)
Return path_r prefixed with root_r, unless it is already prefixed.
Base class for concrete Target implementations.
Interface to the rpm program.
String related utilities and Regular expression matching.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Easy-to use interface to the ZYPP dependency resolver.
std::unordered_set< Locale > LocaleSet
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Wrapper for const correct access via Smart pointer types.
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.