libzypp
10.5.0
|
Resolvable kinds. More...
#include <ResKind.h>
Public Member Functions | |
ResKind () | |
Default ctor: nokind. | |
ResKind (sat::detail::IdType id_r) | |
Ctor taking kind as string. | |
ResKind (const IdString &idstr_r) | |
ResKind (const std::string &str_r) | |
ResKind (const char *cstr_r) | |
std::string | satIdent (const std::string &name_r) const |
Static Public Member Functions | |
static std::string | satIdent (const ResKind &refers_r, const std::string &name_r) |
Return libsolv identifier for name. | |
Static Public Attributes | |
Some builtin ResKind constants. | |
static const ResKind | nokind |
Value representing nokind ("" ) | |
static const ResKind | package |
static const ResKind | patch |
static const ResKind | pattern |
static const ResKind | product |
static const ResKind | srcpackage |
Static Private Member Functions | |
static int | _doCompare (const char *lhs, const char *rhs) |
Private Attributes | |
IdString | _str |
Friends | |
class | IdStringType< ResKind > |
Resolvable kinds.
A lowercased string and used as identification. Comparison against string values is always case insensitive.
zypp::ResKind::ResKind | ( | sat::detail::IdType | id_r | ) | [inline, explicit] |
zypp::ResKind::ResKind | ( | const IdString & | idstr_r | ) | [inline, explicit] |
zypp::ResKind::ResKind | ( | const std::string & | str_r | ) | [inline, explicit] |
zypp::ResKind::ResKind | ( | const char * | cstr_r | ) | [inline, explicit] |
std::string zypp::ResKind::satIdent | ( | const ResKind & | refers_r, |
const std::string & | name_r | ||
) | [static] |
Return libsolv identifier for name.
Libsolv combines the objects kind and name in a single identifier "pattern:kde_multimedia"
, except for packages and source packes. They are not prefixed by any kind string.
Definition at line 43 of file ResKind.cc.
std::string zypp::ResKind::satIdent | ( | const std::string & | name_r | ) | const [inline] |
static int zypp::ResKind::_doCompare | ( | const char * | lhs, |
const char * | rhs | ||
) | [inline, static, private] |
Reimplemented from zypp::IdStringType< ResKind >.
friend class IdStringType< ResKind > [friend] |
const ResKind zypp::ResKind::nokind [static] |
const ResKind zypp::ResKind::package [static] |
const ResKind zypp::ResKind::patch [static] |
const ResKind zypp::ResKind::pattern [static] |
const ResKind zypp::ResKind::product [static] |
const ResKind zypp::ResKind::srcpackage [static] |
IdString zypp::ResKind::_str [private] |