libzypp  13.10.6
Pattern.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_PATTERN_H
13 #define ZYPP_PATTERN_H
14 
15 #include "zypp/ResObject.h"
16 #include "zypp/Pathname.h"
17 
19 namespace zypp
20 {
21 
22  DEFINE_PTR_TYPE(Pattern);
23 
25  //
26  // CLASS NAME : Pattern
27  //
30  class Pattern : public ResObject
31  {
32  public:
33  typedef Pattern Self;
37 
38  public:
41 
42  public:
44  bool isDefault() const;
46  bool userVisible() const;
48  std::string category( const Locale & lang_r = Locale() ) const;
50  Pathname icon() const;
52  Pathname script() const;
54  std::string order() const;
55 
56  public:
58  NameList includes() const;
59 
61  NameList extends() const;
62 
64  Contents core() const;
65 
69  Contents depends() const;
70 
74  Contents contents() const;
75 
76  protected:
77  friend Ptr make<Self>( const sat::Solvable & solvable_r );
79  Pattern( const sat::Solvable & solvable_r );
81  virtual ~Pattern();
82  };
84 
86 } // namespace zypp
88 #endif // ZYPP_PATTERN_H
std::string order() const
Definition: Pattern.cc:199
bool userVisible() const
Definition: Pattern.cc:187
Pathname icon() const
Definition: Pattern.cc:193
A Solvable object within the sat Pool.
Definition: Solvable.h:55
TraitsType::PtrType Ptr
Definition: Pattern.h:35
sat::ArrayAttr< IdString, IdString > NameList
Definition: Pattern.h:39
Pattern Self
Definition: Pattern.h:33
Contents depends() const
Ui hint: Dependent packages.
Definition: Pattern.cc:217
Contents contents() const
The collection of packages associated with this pattern.
Definition: Pattern.cc:236
LookupAttr::transformIterator based container to retrieve list attributes.
Definition: LookupAttr.h:595
ResTraits.
Definition: ResTraits.h:77
Pathname script() const
Definition: Pattern.cc:196
DEFINE_PTR_TYPE(KeyRing)
sat::SolvableSet Contents
Definition: Pattern.h:40
NameList extends() const
Ui hint: patterns this one extends.
Definition: Pattern.cc:205
Pattern interface.
Definition: Pattern.h:30
ResTraits< Self > TraitsType
Definition: Pattern.h:34
bool isDefault() const
Definition: Pattern.cc:184
Contents core() const
Ui hint: Required Packages.
Definition: Pattern.cc:208
Interface base for resolvable objects (common data).
Definition: ResObject.h:44
TraitsType::constPtrType constPtr
Definition: Pattern.h:36
virtual ~Pattern()
Dtor.
Definition: Pattern.cc:175
NameList includes() const
Ui hint: included patterns.
Definition: Pattern.cc:202
Pattern(const sat::Solvable &solvable_r)
Ctor.
Definition: Pattern.cc:166
intrusive_ptr< _Res > PtrType
Definition: ResTraits.h:80
std::string category(const Locale &lang_r=Locale()) const
Definition: Pattern.cc:190
Solvable set wrapper to allow adding additioanal convenience iterators.
Definition: SolvableSet.h:35
intrusive_ptr< const _Res > constPtrType
Definition: ResTraits.h:81