32 Target::Target(
const Pathname & root,
bool doRebuild_r )
33 : _pimpl( new
Impl(root,doRebuild_r) )
83 {
return _pimpl->providesFile (name_str, path_str); }
86 {
return _pimpl->whoOwnsFile (path_str); }
92 {
return _pimpl->timestamp(); }
95 {
return _pimpl->baseProduct(); }
98 {
return _pimpl->requestedLocales(); }
103 {
return _pimpl->updateAutoInstalled(); }
106 {
return _pimpl->targetDistribution(); }
111 {
return _pimpl->targetDistributionRelease(); }
116 {
return _pimpl->targetDistributionFlavor(); }
121 {
return _pimpl->distributionLabel(); }
126 {
return _pimpl->distributionVersion(); }
131 {
return _pimpl->distributionFlavor(); }
136 {
return _pimpl->anonymousUniqueId(); }
std::string targetDistribution() const
This is register.target attribute of the installed base product.
Interface to the rpm program.
std::string distributionVersion() const
This is version attribute of the installed base product.
void cleanCache()
cleans the target cache (.solv files)
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::...
String related utilities and Regular expression matching.
TraitsType::constPtrType constPtr
std::string targetDistributionFlavor() const
This is register.flavor attribute of the installed base product.
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...
target::rpm::RpmDb & rpmDb()
Refference to the RPM database.
std::string targetDistributionRelease() const
This is register.release attribute of the installed base product.
std::string distributionVersion() const
This is version attribute of the installed base product.
LocaleSet requestedLocales() const
Languages to be supported by the system.
Store and operate on date (time_t).
Base class for concrete Target implementations.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
LocaleSet requestedLocales() const
Languages to be supported by the system.
RW_pointer< Impl, rw_pointer::Intrusive< Impl > > _pimpl
Pointer to implementation.
Product::constPtr baseProduct() const
returns the target base installed product, also known as the distribution or platform.
intrusive_ptr< Impl > Impl_Ptr
std::string targetDistribution() const
This is register.target attribute of the installed base product.
void buildCache()
builds or refreshes the target cache
std::string anonymousUniqueId() const
anonymous unique id
std::string targetDistributionRelease() const
This is register.release attribute of the installed base product.
Date timestamp() const
return the last modification date of the target
void load()
load resolvables into the pool
void unload()
unload target resolvables from the pool
DistributionLabel distributionLabel() const
This is shortName and summary attribute of the installed base product.
Target(const Pathname &root="/", bool doRebuild_r=false)
Ctor.
std::ostream & dumpOn(std::ostream &str) const
Stream output.
std::string anonymousUniqueId() const
anonymous unique id
Target::DistributionLabel distributionLabel() const
This is shortName and summary attribute of the installed base product.
std::string distributionFlavor() const
This is flavor attribute of the installed base product but does not require the target to be loaded a...
void updateAutoInstalled()
Update the database of autoinstalled packages.
Easy-to use interface to the ZYPP dependency resolver.
std::string distributionFlavor() const
This is flavor attribute of the installed base product but does not require the target to be loaded a...
std::unordered_set< Locale > LocaleSet
Pathname root() const
Return the root set for this target.
#define IMPL_PTR_TYPE(NAME)
std::string targetDistributionFlavor() const
This is register.flavor attribute of the installed base product.