libzypp  10.5.0
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 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.

Protected Member Functions

 Pattern (const sat::Solvable &solvable_r)
 Ctor.
virtual ~Pattern ()
 Dtor.

Friends

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

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 ( ) [protected, virtual]

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;
 ResObject::Ptr p( makeResObject( s ) );
 ResObject::Ptr q( make<ResObject>( s ) );
 Package::Ptr   pkg( make<Package>( s ) );

Definition at line 236 of file ResObject.h.


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