#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 the satsolver 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 > |
A lowercased string and used as identification. Comparison against string values is always case insensitive.
Definition at line 35 of file ResKind.h.
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 the satsolver identifier for name.
Libsatsolver 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.
References zypp::IdStringType< Derived >::c_str(), zypp::str::form(), package, and srcpackage.
std::string zypp::ResKind::satIdent | ( | const std::string & | name_r | ) | const [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 68 of file ResKind.h.
References satIdent().
Referenced by satIdent().
static int zypp::ResKind::_doCompare | ( | const char * | lhs, | |
const char * | rhs | |||
) | [inline, static, private] |
friend class IdStringType< ResKind > [friend] |
const ResKind zypp::ResKind::nokind [static] |
const ResKind zypp::ResKind::package [static] |
Definition at line 43 of file ResKind.h.
Referenced by zypp::Patch::contents(), zypp::ui::Selectable::get(), zypp::sat::Solvable::isKind(), zypp::solver::detail::Helper::itemToString(), zypp::sat::Solvable::kind(), zypp::pool::ByIdent::makeIdent(), and satIdent().
const ResKind zypp::ResKind::patch [static] |
const ResKind zypp::ResKind::pattern [static] |
const ResKind zypp::ResKind::product [static] |
Definition at line 46 of file ResKind.h.
Referenced by zypp::Product::replacedProducts(), and zypp::pool::PoolImpl::store().
const ResKind zypp::ResKind::srcpackage [static] |
Definition at line 47 of file ResKind.h.
Referenced by zypp::CapDetail::_init(), zypp::InstanceId::getIdFor(), zypp::pool::GetResolvablesToInsDel::GetResolvablesToInsDel(), zypp::pool::PoolImpl::id2item(), zypp::sat::Solvable::isKind(), zypp::sat::Solvable::kind(), zypp::pool::ByIdent::makeIdent(), zypp::pool::ByIdent::operator()(), zypp::sat::operator<<(), and satIdent().
IdString zypp::ResKind::_str [private] |