zypp::Target Class Reference

#include <Target.h>

Inheritance diagram for zypp::Target:

zypp::base::ReferenceCounted NonCopyable List of all members.

Public Types

typedef target::TargetImpl Impl
typedef intrusive_ptr< ImplImpl_Ptr
typedef std::list< PoolItem_RefPoolItemList

Public Member Functions

const ResStoreresolvables ()
 All resolvables provided by the target.
target::rpm::RpmDbrpmDb ()
 Refference to the RPM database.
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::Upgrade().
ResObject::constPtr whoOwnsFile (const std::string &path_str) const
void getResolvablesToInsDel (const ResPool pool_r, PoolItemList &dellist_r, PoolItemList &instlist_r, PoolItemList &srclist_r) const
 Sort according to prereqs and media numbers.
bool isStorageEnabled () const
 enables the storage target
void enableStorage (const Pathname &root_r)
bool setInstallationLogfile (const Pathname &path_r)
 Set the log file for target.
Pathname root () const
 Return the root set for this target.
 Target (const Pathname &root="/")
 Ctor.
 Target (const Impl_Ptr &impl_r)
 Ctor.

Static Public Member Functions

static Target_Ptr nullimpl ()
 Null implementation.

Private Member Functions

std::ostream & dumpOn (std::ostream &str) const
 Stream output.

Private Attributes

RW_pointer< Impl, rw_pointer::Intrusive<
Impl > > 
_pimpl
 Pointer to implementation.

Static Private Attributes

static Target_Ptr _nullimpl

Friends

class zypp_detail::ZYppImpl
 Direct access to Impl.
std::ostream & operator<< (std::ostream &str, const Target &obj)

Detailed Description

Definition at line 49 of file Target.h.


Member Typedef Documentation

typedef target::TargetImpl zypp::Target::Impl
 

Definition at line 52 of file Target.h.

typedef intrusive_ptr<Impl> zypp::Target::Impl_Ptr
 

Definition at line 53 of file Target.h.

typedef std::list<PoolItem_Ref> zypp::Target::PoolItemList
 

Definition at line 54 of file Target.h.


Constructor & Destructor Documentation

zypp::Target::Target const Pathname root = "/"  )  [explicit]
 

Ctor.

Definition at line 32 of file Target.cc.

Referenced by nullimpl().

zypp::Target::Target const Impl_Ptr impl_r  )  [explicit]
 

Ctor.

Definition at line 42 of file Target.cc.


Member Function Documentation

const ResStore & zypp::Target::resolvables  ) 
 

All resolvables provided by the target.

Definition at line 67 of file Target.cc.

References _pimpl.

Target_Ptr zypp::Target::nullimpl  )  [static]
 

Null implementation.

Definition at line 51 of file Target.cc.

References _nullimpl, zypp::target::TargetImpl::nullimpl(), and Target().

target::rpm::RpmDb & zypp::Target::rpmDb  ) 
 

Refference to the RPM database.

Definition at line 70 of file Target.cc.

References _pimpl.

bool zypp::Target::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::Upgrade().

Definition at line 85 of file Target.cc.

References _pimpl.

ResObject::constPtr zypp::Target::whoOwnsFile const std::string &  path_str  )  const
 

Definition at line 88 of file Target.cc.

References _pimpl.

void zypp::Target::getResolvablesToInsDel const ResPool  pool_r,
PoolItemList dellist_r,
PoolItemList instlist_r,
PoolItemList srclist_r
const
 

Sort according to prereqs and media numbers.

Todo:
provide it as standalone algorithm

Definition at line 94 of file Target.cc.

References _pimpl.

bool zypp::Target::isStorageEnabled  )  const
 

enables the storage target

Definition at line 75 of file Target.cc.

References _pimpl.

void zypp::Target::enableStorage const Pathname root_r  ) 
 

Definition at line 78 of file Target.cc.

References _pimpl.

bool zypp::Target::setInstallationLogfile const Pathname path_r  ) 
 

Set the log file for target.

Definition at line 100 of file Target.cc.

References _pimpl.

Pathname zypp::Target::root  )  const
 

Return the root set for this target.

Definition at line 82 of file Target.cc.

References _pimpl.

std::ostream & zypp::Target::dumpOn std::ostream &  str  )  const [private, virtual]
 

Stream output.

Reimplemented from zypp::base::ReferenceCounted.

Definition at line 91 of file Target.cc.

References _pimpl.


Friends And Related Function Documentation

friend class zypp_detail::ZYppImpl [friend]
 

Direct access to Impl.

Definition at line 109 of file Target.h.

std::ostream & operator<< std::ostream &  str,
const Target obj
[friend]
 

Stream output.

Definition at line 119 of file Target.h.


Member Data Documentation

RW_pointer<Impl,rw_pointer::Intrusive<Impl> > zypp::Target::_pimpl [private]
 

Pointer to implementation.

Definition at line 112 of file Target.h.

Referenced by dumpOn(), enableStorage(), getResolvablesToInsDel(), isStorageEnabled(), providesFile(), resolvables(), root(), rpmDb(), setInstallationLogfile(), and whoOwnsFile().

Target_Ptr zypp::Target::_nullimpl [static, private]
 

Definition at line 114 of file Target.h.

Referenced by nullimpl().


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:07:31 2006 for zypp by  doxygen 1.4.6