68 explicit ResKind(
const std::string & str_r ) :
_str(
str::toLower(str_r) ) {}
77 static std::string satIdent(
const ResKind & refers_r,
const std::string & name_r );
79 std::string
satIdent(
const std::string & name_r )
const
80 {
return satIdent( *
this, name_r ); }
83 static int _doCompare(
const char * lhs,
const char * rhs )
85 if ( lhs == rhs )
return 0;
86 if ( lhs && rhs ) return ::strcasecmp( lhs, rhs );
87 return( lhs ? 1 : -1 );
97 {
return str <<
"<kind>" << obj <<
"</kind>"; }
Provides API related macros.
Base class for creating IdString based types.
Access to the sat-pools string space.
const char * c_str() const
Conversion to const char *.
static const ResKind srcpackage
ResKind(const IdString &idstr_r)
static const ResKind application
ResKind(sat::detail::IdType id_r)
Ctor taking kind as string.
static const ResKind pattern
static const ResKind product
ResKind(const char *cstr_r)
static const ResKind patch
static ResKind explicitBuiltin(const char *str_r)
Return the builtin kind if str_r explicitly prefixed.
std::string satIdent(const std::string &name_r) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
static const ResKind nokind
Value representing nokind ("").
static const ResKind package
static std::string satIdent(const ResKind &refers_r, const std::string &name_r)
Return libsolv identifier for name.
ResKind(const std::string &str_r)
static ResKind explicitBuiltin(const std::string &str_r)
This is an overloaded member function, provided for convenience. It differs from the above function o...
ResKind()
Default ctor: nokind.
static int _doCompare(const char *lhs, const char *rhs)
static ResKind explicitBuiltin(const IdString &str_r)
This is an overloaded member function, provided for convenience. It differs from the above function o...
const char * c_str() const
String related utilities and Regular expression matching.
int IdType
Generic Id type.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & dumpAsXmlOn(std::ostream &str, const Repository &obj)
relates: Repository XML output
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.