32 Target::Target(
const Pathname & root,
bool doRebuild_r )
33 : _pimpl( new
Impl(root,doRebuild_r) )
62 str <<
"summary=" << obj.
summary << endl;
63 str <<
"shortName=" << obj.
shortName << endl;
95 {
return _pimpl->providesFile (name_str, path_str); }
98 {
return _pimpl->whoOwnsFile (path_str); }
101 {
return _pimpl->dumpOn( str ); }
104 {
return _pimpl->timestamp(); }
107 {
return _pimpl->baseProduct(); }
110 {
return _pimpl->requestedLocales(); }
115 {
return _pimpl->targetDistribution(); }
120 {
return _pimpl->targetDistributionRelease(); }
125 {
return _pimpl->distributionLabel(); }
130 {
return _pimpl->distributionVersion(); }
135 {
return _pimpl->distributionFlavor(); }
140 {
return _pimpl->anonymousUniqueId(); }
Interface to the rpm program.
Target::DistributionLabel distributionLabel() const
This is version attribute of the installed base product.
static Target_Ptr nullimpl()
Null implementation.
void cleanCache()
cleans the target cache (.solv files)
static Target_Ptr _nullimpl
DistributionLabel distributionLabel() const
This is shortName and summary attribute of the installed base product.
std::string distributionVersion() const
This is version attribute of the installed base product.
static TargetImpl_Ptr nullimpl()
Null implementation.
TraitsType::constPtrType constPtr
std::string targetDistribution() const
This is register.target attribute of the installed base product.
target::rpm::RpmDb & rpmDb()
Refference to the RPM database.
LocaleSet requestedLocales() const
Languages to be supported by the system.
std::string distributionVersion() const
This is version attribute of the installed base product.
Pathname root() const
Return the root set for this target.
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::...
std::string anonymousUniqueId() const
anonymous unique id
Store and operate on date (time_t).
Base class for concrete Target implementations.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
RW_pointer< Impl, rw_pointer::Intrusive< Impl > > _pimpl
Pointer to implementation.
std::string targetDistributionRelease() const
This is register.release attribute of the installed base product.
intrusive_ptr< Impl > Impl_Ptr
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...
void buildCache()
builds or refreshes the target cache
std::tr1::unordered_set< Locale > LocaleSet
std::string anonymousUniqueId() const
anonymous unique id
void load()
load resolvables into the pool
void unload()
unload target resolvables from the pool
std::string targetDistribution() const
This is register.target attribute of the installed base product.
Date timestamp() const
return the last modification date of the target
std::string distributionFlavor() const
This is flavor attribute of the installed base product but does not require the target to be loaded a...
Target(const Pathname &root="/", bool doRebuild_r=false)
Ctor.
Product::constPtr baseProduct() const
returns the target base installed product, also known as the distribution or platform.
std::ostream & dumpOn(std::ostream &str) const
Stream output.
std::string distributionFlavor() const
This is flavor attribute of the installed base product but does not require the target to be loaded a...
LocaleSet requestedLocales() const
Languages to be supported by the system.
std::string targetDistributionRelease() const
This is register.release attribute of the installed base product.
#define IMPL_PTR_TYPE(NAME)