libzypp 17.37.17
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>
18
20namespace zypp
21{
22
24
26 //
27 // CLASS NAME : Pattern
28 //
31 class ZYPP_API Pattern : public ResObject
32 {
33 public:
34 using Self = Pattern;
38
39 public:
42
43 public:
45 bool isDefault() const;
47 bool userVisible() const;
49 std::string category( const Locale & lang_r = Locale() ) const;
51 Pathname icon() const;
53 Pathname script() const;
55 std::string order() const;
56
57 public:
68
69 bool isAutoPattern() const;
73 public:
75 NameList includes() const;
76
78 NameList extends() const;
79
81 Contents core() const;
82
86 Contents depends( bool includeSuggests_r = true ) const;
89 { return depends( false ); }
90
95 Contents contents( bool includeSuggests_r = true ) const;
98 { return contents( false ); }
99
100 public:
107
111 void contentsSet( ContentsSet & collect_r, bool recursively_r = false ) const;
113 void fullContentsSet( ContentsSet & collect_r ) const
114 { return contentsSet( collect_r, /*recursively_r*/true ); }
115
116 protected:
117 friend Ptr make<Self>( const sat::Solvable & solvable_r );
119 Pattern( const sat::Solvable & solvable_r );
121 ~Pattern() override;
122 };
123
124
126} // namespace zypp
128#endif // ZYPP_PATTERN_H
'Language[_Country]' codes.
Definition Locale.h:51
Pattern interface.
Definition Pattern.h:32
Contents core() const
Ui hint: Required Packages.
Definition Pattern.cc:240
NameList extends() const
Ui hint: patterns this one extends.
Definition Pattern.cc:223
std::string category(const Locale &lang_r=Locale()) const
Definition Pattern.cc:192
TraitsType::constPtrType constPtr
Definition Pattern.h:37
Contents contentsNoSuggests() const
Definition Pattern.h:97
Contents depends(bool includeSuggests_r=true) const
Ui hint: Dependent packages.
Definition Pattern.cc:258
Pathname script() const
Definition Pattern.cc:198
sat::SolvableSet Contents
Definition Pattern.h:41
TraitsType::PtrType Ptr
Definition Pattern.h:36
bool isDefault() const
Definition Pattern.cc:180
Pattern(const sat::Solvable &solvable_r)
Ctor.
Definition Pattern.cc:173
bool userVisible() const
Definition Pattern.cc:183
std::string order() const
Definition Pattern.cc:201
sat::Solvable autoPackage() const
The corresponding patterns- package if isAutoPattern.
Definition Pattern.cc:207
NameList includes() const
Ui hint: included patterns.
Definition Pattern.cc:220
Pattern Self
Definition Pattern.h:34
sat::ArrayAttr< IdString, IdString > NameList
Definition Pattern.h:40
Contents contents(bool includeSuggests_r=true) const
The collection of packages associated with this pattern.
Definition Pattern.cc:284
Contents dependsNoSuggests() const
Definition Pattern.h:88
void fullContentsSet(ContentsSet &collect_r) const
Definition Pattern.h:113
Pathname icon() const
Definition Pattern.cc:195
ResTraits< Self > TraitsType
Definition Pattern.h:35
void contentsSet(ContentsSet &collect_r, bool recursively_r=false) const
Dependency based content set (does not evaluate includes/extends relation).
Definition Pattern.cc:332
bool isAutoPattern() const
This patterns is auto-defined by a patterns- package.
Definition Pattern.cc:204
ResObject(const sat::Solvable &solvable_r)
Ctor.
Definition ResObject.cc:23
LookupAttr::TransformIterator based container to retrieve list attributes.
Solvable set wrapper to allow adding additional convenience iterators.
Definition SolvableSet.h:36
A Solvable object within the sat Pool.
Definition Solvable.h:54
Easy-to use interface to the ZYPP dependency resolver.
ResTraits< TRes >::PtrType make(const sat::Solvable &solvable_r)
Directly create a certain kind of ResObject from sat::Solvable.
Definition ResObject.h:118
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
Contents req
required content set
Definition Pattern.h:103
Contents sug
suggested content set
Definition Pattern.h:105
Contents rec
recommended content set
Definition Pattern.h:104
ResTraits.
Definition ResTraits.h:80
intrusive_ptr< Self > PtrType
Definition ResTraits.h:82
intrusive_ptr< const Self > constPtrType
Definition ResTraits.h:83
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.
Definition PtrTypes.h:639