zypp::capability::SplitCap Class Reference

A pseudo Capability indicating a package split. More...

#include <SplitCap.h>

Inheritance diagram for zypp::capability::SplitCap:

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

Public Types

typedef SplitCap Self

Public Member Functions

 SplitCap (const Resolvable::Kind &refers_r, const std::string &name_r, const std::string &path_r)
 Ctor.
virtual const Kindkind () const
 Kind of capabiliy.
virtual bool relevant () const
 Relevant per default.
virtual CapMatch matches (const constPtr &rhs) const
virtual std::string encode () const
 name:/path
const std::string & name () const
const std::string & path () const

Private Attributes

std::string _name
std::string _path

Detailed Description

A pseudo Capability indicating a package split.

packagename:/absolute/path means: If packagename is installed on system, and has /absolute/path in it's filelist, and is to be replaced/updated, then this package (the one providing the SplitCap) should be installed too.

Todo:
implement matches().

See where and how we handle it. Currently the info is just stored here. Splits packagename:/absolute/path are shipped as provides (SuSE packages file), but have to be freshens, and implemented as ConditionalCap.

Definition at line 41 of file SplitCap.h.


Member Typedef Documentation

typedef SplitCap zypp::capability::SplitCap::Self
 

Reimplemented from zypp::capability::CapabilityImpl.

Definition at line 44 of file SplitCap.h.


Constructor & Destructor Documentation

zypp::capability::SplitCap::SplitCap const Resolvable::Kind refers_r,
const std::string &  name_r,
const std::string &  path_r
[inline]
 

Ctor.

Definition at line 47 of file SplitCap.h.


Member Function Documentation

const CapabilityImpl::Kind & zypp::capability::SplitCap::kind  )  const [virtual]
 

Kind of capabiliy.

Implements zypp::capability::CapabilityImpl.

Definition at line 23 of file SplitCap.cc.

virtual bool zypp::capability::SplitCap::relevant  )  const [inline, virtual]
 

Relevant per default.

Reimplemented from zypp::capability::CapabilityImpl.

Definition at line 58 of file SplitCap.h.

CapMatch zypp::capability::SplitCap::matches const constPtr rhs  )  const [virtual]
 

Definition at line 26 of file SplitCap.cc.

References zypp::CapMatch::irrelevant.

std::string zypp::capability::SplitCap::encode  )  const [virtual]
 

name:/path

Implements zypp::capability::CapabilityImpl.

Definition at line 31 of file SplitCap.cc.

References _name, and _path.

const std::string& zypp::capability::SplitCap::name  )  const [inline]
 

Definition at line 67 of file SplitCap.h.

References _name.

const std::string& zypp::capability::SplitCap::path  )  const [inline]
 

Definition at line 70 of file SplitCap.h.

References _path.


Member Data Documentation

std::string zypp::capability::SplitCap::_name [private]
 

Definition at line 75 of file SplitCap.h.

Referenced by encode(), and name().

std::string zypp::capability::SplitCap::_path [private]
 

Definition at line 77 of file SplitCap.h.

Referenced by encode(), and path().


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