zypp::capability::FileCap Class Reference

A filename matching if some Resolvable provides it. More...

#include <FileCap.h>

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

List of all members.

Public Types

typedef FileCap Self
typedef FileCap_Ptr Ptr
typedef FileCap_constPtr constPtr

Public Member Functions

 FileCap (const Resolvable::Kind &refers_r, const std::string &fname_r)
 Ctor.
std::string filename () const
virtual const Kindkind () const
 Kind of capability.
virtual CapMatch matches (const CapabilityImpl::constPtr &rhs) const
 Same kind, refers and filename.
virtual std::string encode () const
 Filename.

Private Attributes

std::string _fname


Detailed Description

A filename matching if some Resolvable provides it.

See also:
capability::isInterestingFileSpec to test whether some filename is likely targeted by some requires, thus worth being provided.
Todo:
Check whether we have to look into the Resolable filelist as well.

Definition at line 38 of file FileCap.h.


Member Typedef Documentation

typedef FileCap zypp::capability::FileCap::Self

Reimplemented from zypp::capability::CapabilityImpl.

Definition at line 41 of file FileCap.h.

typedef FileCap_Ptr zypp::capability::FileCap::Ptr

Reimplemented from zypp::capability::CapabilityImpl.

Definition at line 42 of file FileCap.h.

typedef FileCap_constPtr zypp::capability::FileCap::constPtr

Reimplemented from zypp::capability::CapabilityImpl.

Definition at line 43 of file FileCap.h.


Constructor & Destructor Documentation

zypp::capability::FileCap::FileCap ( const Resolvable::Kind refers_r,
const std::string &  fname_r 
) [inline]

Ctor.

Definition at line 46 of file FileCap.h.


Member Function Documentation

std::string zypp::capability::FileCap::filename (  )  const [inline]

Definition at line 52 of file FileCap.h.

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

Kind of capability.

Implements zypp::capability::CapabilityImpl.

Definition at line 25 of file FileCap.cc.

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

Same kind, refers and filename.

Implements zypp::capability::CapabilityImpl.

Definition at line 28 of file FileCap.cc.

References _fname, and zypp::capability::CapabilityImpl::sameKindAndRefers().

std::string zypp::capability::FileCap::encode (  )  const [virtual]

Filename.

Implements zypp::capability::CapabilityImpl.

Definition at line 34 of file FileCap.cc.

References _fname.


Member Data Documentation

std::string zypp::capability::FileCap::_fname [private]

Definition at line 66 of file FileCap.h.

Referenced by encode(), and matches().


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