libzypp  11.13.5
zypp::Pattern Class Reference

Pattern interface. More...

#include <Pattern.h>

Inheritance diagram for zypp::Pattern:

List of all members.

Public Types

typedef Pattern Self
typedef ResTraits< SelfTraitsType
typedef TraitsType::PtrType Ptr
typedef TraitsType::constPtrType constPtr
typedef sat::ArrayAttr
< IdString, IdString
NameList
typedef sat::SolvableSet Contents
- Public Types inherited from zypp::ResObject
- Public Types inherited from zypp::Resolvable
typedef TraitsType::KindType Kind

Public Member Functions

bool isDefault () const
bool userVisible () const
std::string category (const Locale &lang_r=Locale()) const
Pathname icon () const
Pathname script () const
std::string order () const
NameList includes () const
 Ui hint: included patterns.
NameList extends () const
 Ui hint: patterns this one extends.
Contents core () const
 Ui hint: Required Packages.
Contents depends () const
 Ui hint: Dependent packages.
Contents contents () const
 The collection of packages associated with this pattern.
- Public Member Functions inherited from zypp::ResObject
template<class _Res >
ResTraits< _Res >::constPtrType asKind () const
 Convert this into a Ptr of a certain Kind.
template<class _Res >
ResTraits< _Res >::PtrType asKind ()
std::string summary (const Locale &lang_r=Locale()) const
 Short text describing the resolvable.
std::string description (const Locale &lang_r=Locale()) const
 Long text describing the resolvable.
std::string insnotify (const Locale &lang_r=Locale()) const
 Installation Notification.
std::string delnotify (const Locale &lang_r=Locale()) const
 De-Installation Notification.
std::string licenseToConfirm (const Locale &lang_r=Locale()) const
 License or agreement to accept.
Vendor vendor () const
 Vendor.
std::string distribution () const
 The distribution string.
std::string cpeId () const
 The Common Platform Enumeration name for this product.
ByteCount installSize () const
 Installed size.
ByteCount downloadSize () const
 Size of the rpm package.
Repository repository () const
RepoInfo repoInfo () const
 RepoInfo associated with the repository providing this resolvable.
unsigned mediaNr () const
 Media number where the resolvable is located 0 if no media access is required.
Date buildtime () const
 build time of the resolvable
Date installtime () const
 Installation time 0 if the resolvable is not installed.
const DiskUsagediskusage () const
 Disk usage per directory A common attribute, although mostly packages require noticeable disk space.
bool supportsLocales () const
bool supportsLocale (const Locale &locale_r) const
bool supportsLocale (const LocaleSet &locales_r) const
 Whether this Solvable supports at least one of the specified locales.
bool supportsRequestedLocales () const
LocaleSet getSupportedLocales () const
- Public Member Functions inherited from zypp::Resolvable
bool isSystem () const
 Whether this represents an installed solvable.
bool onSystemByUser () const
 Whether this is known to be installed on behalf of a user request.
IdString ident () const
 The identifier.
ResKind kind () const
bool isKind (const ResKind &kind_r) const
 Test whether a Solvable is of a certain ResKind.
template<class _Res >
bool isKind () const
std::string name () const
Edition edition () const
Arch arch () const
bool multiversionInstall () const
 Whether different versions of this package can be installed at the same time.
const sat::SolvablesatSolvable () const
 Access the corresponding ::Solvable.
PoolItem poolItem () const
 Access the corresponding PoolItem.
Capabilities dep (Dep which_r) const
 Select by Dep.
Capabilities operator[] (Dep which_r) const
Capabilities provides () const
Capabilities requires () const
Capabilities conflicts () const
Capabilities obsoletes () const
Capabilities recommends () const
Capabilities suggests () const
Capabilities enhances () const
Capabilities supplements () const
Capabilities prerequires () const
CapabilitySet providesNamespace (const std::string &namespace_r) const
 Return the namespaced provides 'namespace([value])[ op edition]' of this Solvable.
CapabilitySet valuesOfNamespace (const std::string &namespace_r) const
 Return 'value[ op edition]' for namespaced provides 'namespace(value)[ op edition]'.
- Public Member Functions inherited from zypp::base::ReferenceCounted
 ReferenceCounted ()
 Default ctor.
 ReferenceCounted (const ReferenceCounted &rhs)
 Copy ctor.
virtual ~ReferenceCounted ()
 Dtor.
ReferenceCountedoperator= (const ReferenceCounted &)
 Assignment.
unsigned refCount () const
 Return reference counter value.
void ref () const
 Add a reference.
void unref () const
 Release a reference.

Protected Member Functions

 Pattern (const sat::Solvable &solvable_r)
 Ctor.
virtual ~Pattern ()
 Dtor.
- Protected Member Functions inherited from zypp::ResObject
 ResObject (const sat::Solvable &solvable_r)
 Ctor.
virtual ~ResObject ()
 Dtor.
virtual std::ostream & dumpOn (std::ostream &str) const
 Helper for stream output.
- Protected Member Functions inherited from zypp::Resolvable
 Resolvable (const sat::Solvable &solvable_r)
 Ctor.
virtual ~Resolvable ()
 Dtor.
- Protected Member Functions inherited from zypp::sat::Solvable
 Solvable ()
 Default ctor creates noSolvable.
 Solvable (IdType id_r)
 PoolImpl ctor.
template<class _Iterator >
bool isKind (_Iterator begin, _Iterator end)
std::string asString () const
 String representation "ident-edition.arch" or "noSolvable".
bool identical (Solvable rhs) const
 Test whether two Solvables have the same content.
bool sameNVRA (Solvable rhs) const
 Test for same name-version-release.arch.
Solvable nextInPool () const
 Return next Solvable in Pool (or noSolvable).
Solvable nextInRepo () const
 Return next Solvable in Repo (or noSolvable).
::_Solvable * get () const
 Expert backdoor.
IdType id () const
 Expert backdoor.
std::string lookupStrAttribute (const SolvAttr &attr) const
 returns the string attribute value for attr or an empty string if it does not exists.
std::string lookupStrAttribute (const SolvAttr &attr, const Locale &lang_r) const
unsigned long long lookupNumAttribute (const SolvAttr &attr) const
 returns the numeric attribute value for attr or 0 if it does not exists.
bool lookupBoolAttribute (const SolvAttr &attr) const
 returns the boolean attribute value for attr or false if it does not exists.
detail::IdType lookupIdAttribute (const SolvAttr &attr) const
 returns the id attribute value for attr or detail::noId if it does not exists.
CheckSum lookupCheckSumAttribute (const SolvAttr &attr) const
 returns the CheckSum attribute value for attr or an empty CheckSum if ir does not exist.
OnMediaLocation lookupLocation () const
 returns OnMediaLocation data: This is everything we need to download e.g.
void getSupportedLocales (LocaleSet &locales_r) const
 Return the supported locales via locales_r.
- Protected Member Functions inherited from zypp::base::ReferenceCounted
virtual void ref_to (unsigned) const
 Trigger derived classes after refCount was increased.
virtual void unref_to (unsigned) const
 Trigger derived classes after refCount was decreased.

Friends

Ptr make (const sat::Solvable &solvable_r)
 Directly create a certain kind of ResObject from sat::Solvable.

Additional Inherited Members

ResTraits< _Res >::PtrType asKind (const ResObject::Ptr &p)
bool isKind (const Resolvable::constPtr &p)
bool isKind (const sat::Solvable &solvable_r)

Detailed Description

Pattern interface.

Definition at line 30 of file Pattern.h.


Member Typedef Documentation

Reimplemented from zypp::ResObject.

Definition at line 33 of file Pattern.h.

Reimplemented from zypp::ResObject.

Definition at line 34 of file Pattern.h.

Reimplemented from zypp::ResObject.

Definition at line 35 of file Pattern.h.

Reimplemented from zypp::ResObject.

Definition at line 36 of file Pattern.h.

Definition at line 39 of file Pattern.h.

Definition at line 40 of file Pattern.h.


Constructor & Destructor Documentation

zypp::Pattern::Pattern ( const sat::Solvable solvable_r)
protected

Ctor.

Definition at line 166 of file Pattern.cc.

zypp::Pattern::~Pattern ( )
protectedvirtual

Dtor.

Definition at line 175 of file Pattern.cc.


Member Function Documentation

bool zypp::Pattern::isDefault ( ) const

Definition at line 184 of file Pattern.cc.

bool zypp::Pattern::userVisible ( ) const

Definition at line 187 of file Pattern.cc.

std::string zypp::Pattern::category ( const Locale lang_r = Locale()) const

Definition at line 190 of file Pattern.cc.

Pathname zypp::Pattern::icon ( ) const

Definition at line 193 of file Pattern.cc.

Pathname zypp::Pattern::script ( ) const

Definition at line 196 of file Pattern.cc.

std::string zypp::Pattern::order ( ) const

Definition at line 199 of file Pattern.cc.

Pattern::NameList zypp::Pattern::includes ( ) const

Ui hint: included patterns.

Definition at line 202 of file Pattern.cc.

Pattern::NameList zypp::Pattern::extends ( ) const

Ui hint: patterns this one extends.

Definition at line 205 of file Pattern.cc.

Pattern::Contents zypp::Pattern::core ( ) const

Ui hint: Required Packages.

Definition at line 208 of file Pattern.cc.

Pattern::Contents zypp::Pattern::depends ( ) const

Ui hint: Dependent packages.

This also includes recommended and suugested packages.

Definition at line 217 of file Pattern.cc.

Pattern::Contents zypp::Pattern::contents ( ) const

The collection of packages associated with this pattern.

This also evaluates the patterns includes/extends relation.

Definition at line 236 of file Pattern.cc.


Friends And Related Function Documentation

Ptr make ( const sat::Solvable solvable_r)
friend

Directly create a certain kind of ResObject from sat::Solvable.

If the sat::Solvables kind is not appropriate, a NULL pointer is returned.

sat::Solvable s;
Package::Ptr pkg( make<Package>( s ) );
Todo:
make<> was a poor choice (AFAIR because gcc had some trouble with asKind<>(sat::Solvable)). Remove it in favour of asKind<>(sat::Solvable)

Definition at line 238 of file ResObject.h.


The documentation for this class was generated from the following files: