zypp::Target Class Reference

#include <Target.h>

Inheritance diagram for zypp::Target:
[legend]

List of all members.

Public Types

typedef
target::TargetImpl 
Impl
typedef
intrusive_ptr< Impl
Impl_Ptr
typedef std::list
< PoolItem_Ref
PoolItemList

Public Member Functions

const ResStoreresolvables ()
 All resolvables provided by the target.
void reset ()
 reload the target in future calls if needed.
ResStore::resfilter_const_iterator byKindBegin (const ResObject::Kind &kind_r) const
 load resolvables of certain kind in the internal store and return a iterator successive calls will be faster as resolvables are cached-
ResStore::resfilter_const_iterator byKindEnd (const ResObject::Kind &kind_r) const
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
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.
Date timestamp () const
 return the last modification date of the 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)
 Stream output.


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.

void zypp::Target::reset (  ) 

reload the target in future calls if needed.

note the loading can actually be delayed, but the next call to resolvables must reflect the status of the system.

Definition at line 106 of file Target.cc.

References _pimpl.

ResStore::resfilter_const_iterator zypp::Target::byKindBegin ( const ResObject::Kind kind_r  )  const

load resolvables of certain kind in the internal store and return a iterator successive calls will be faster as resolvables are cached-

Definition at line 70 of file Target.cc.

References _pimpl.

ResStore::resfilter_const_iterator zypp::Target::byKindEnd ( const ResObject::Kind kind_r  )  const

Definition at line 73 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 76 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 91 of file Target.cc.

References _pimpl.

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

Definition at line 94 of file Target.cc.

References _pimpl.

bool zypp::Target::isStorageEnabled (  )  const

enables the storage target

Definition at line 81 of file Target.cc.

References _pimpl.

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

Definition at line 84 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 88 of file Target.cc.

References _pimpl.

Date zypp::Target::timestamp (  )  const

return the last modification date of the target

Definition at line 103 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 97 of file Target.cc.

References _pimpl.


Friends And Related Function Documentation

friend class zypp_detail::ZYppImpl [friend]

Direct access to Impl.

Definition at line 119 of file Target.h.

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

Stream output.

Definition at line 129 of file Target.h.


Member Data Documentation

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

Pointer to implementation.

Definition at line 122 of file Target.h.

Referenced by byKindBegin(), byKindEnd(), dumpOn(), enableStorage(), isStorageEnabled(), providesFile(), reset(), resolvables(), root(), rpmDb(), setInstallationLogfile(), timestamp(), and whoOwnsFile().

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

Definition at line 124 of file Target.h.

Referenced by nullimpl().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:16 2007 for libzypp by  doxygen 1.5.3