libzypp  17.25.1
PackageKeyword.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_PACKAGEKEYWORD_H
13 #define ZYPP_PACKAGEKEYWORD_H
14 
15 #include <zypp/IdStringType.h>
16 
18 namespace zypp
19 {
20 
22  //
23  // CLASS NAME : PackageKeyword
24  //
28  class PackageKeyword : public IdStringType<PackageKeyword>
29  {
30  public:
33 
35  explicit PackageKeyword( sat::detail::IdType id_r ) : _str( id_r ) {}
36  explicit PackageKeyword( const IdString & idstr_r ) : _str( idstr_r ) {}
37  explicit PackageKeyword( const std::string & str_r ) : _str( str_r ) {}
38  explicit PackageKeyword( const char * cstr_r ) : _str( cstr_r ) {}
39 
40  private:
43  };
45 
47 } // namespace zypp
49 #endif // ZYPP_PACKAGEKEYWORD_H
zypp::IdStringType
Base class for creating IdString based types.
Definition: IdStringType.h:86
IdStringType.h
zypp::PackageKeyword
Package keywords.
Definition: PackageKeyword.h:28
zypp::PackageKeyword::PackageKeyword
PackageKeyword(const std::string &str_r)
Definition: PackageKeyword.h:37
zypp::IdString
Access to the sat-pools string space.
Definition: IdString.h:42
zypp::PackageKeyword::PackageKeyword
PackageKeyword(const IdString &idstr_r)
Definition: PackageKeyword.h:36
zypp::sat::detail::IdType
int IdType
Generic Id type.
Definition: PoolMember.h:104
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1
zypp::PackageKeyword::PackageKeyword
PackageKeyword(const char *cstr_r)
Definition: PackageKeyword.h:38
zypp::PackageKeyword::_str
IdString _str
Definition: PackageKeyword.h:42
zypp::PackageKeyword::PackageKeyword
PackageKeyword()
Default ctor: empty keyword.
Definition: PackageKeyword.h:32
zypp::PackageKeyword::PackageKeyword
PackageKeyword(sat::detail::IdType id_r)
Ctor taking keyword as string.
Definition: PackageKeyword.h:35