zypp::capability::SplitCap Class Reference

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

#include <SplitCap.h>

Inheritance diagram for zypp::capability::SplitCap:
[legend]

List of all members.

Public Types

typedef SplitCap Self
typedef SplitCap_Ptr Ptr
typedef SplitCap_constPtr constPtr

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 capability.
virtual bool relevant () const
 Relevant per default.
virtual CapMatch matches (const CapabilityImpl::constPtr &rhs) const
 Return whether the Capabilities match.
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().
Todo:
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 43 of file SplitCap.h.


Member Typedef Documentation

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

Reimplemented from zypp::capability::CapabilityImpl.

Definition at line 46 of file SplitCap.h.

typedef SplitCap_Ptr zypp::capability::SplitCap::Ptr

Reimplemented from zypp::capability::CapabilityImpl.

Definition at line 47 of file SplitCap.h.

typedef SplitCap_constPtr zypp::capability::SplitCap::constPtr

Reimplemented from zypp::capability::CapabilityImpl.

Definition at line 48 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 51 of file SplitCap.h.


Member Function Documentation

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

Kind of capability.

Implements zypp::capability::CapabilityImpl.

Definition at line 25 of file SplitCap.cc.

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

Relevant per default.

Reimplemented from zypp::capability::CapabilityImpl.

Definition at line 62 of file SplitCap.h.

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

Return whether the Capabilities match.

Note:
We rely on Capability passing non NULL pointers.

Implements zypp::capability::CapabilityImpl.

Definition at line 28 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 33 of file SplitCap.cc.

References _name, and _path.

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

Definition at line 71 of file SplitCap.h.

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

Definition at line 74 of file SplitCap.h.


Member Data Documentation

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

Definition at line 79 of file SplitCap.h.

Referenced by encode().

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

Definition at line 81 of file SplitCap.h.

Referenced by encode().


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