12 #ifndef ZYPP_RESKIND_H
13 #define ZYPP_RESKIND_H
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>"; }
102 #endif // ZYPP_RESKIND_H
int IdType
Generic Id type.
static const ResKind package
static ResKind explicitBuiltin(const char *str_r)
Return the builtin kind if str_r explicitly prefixed.
static ResKind explicitBuiltin(const IdString &str_r)
static ResKind explicitBuiltin(const std::string &str_r)
static const ResKind srcpackage
Access to the sat-pools string space.
Base class for creating IdString based types.
ResKind(const IdString &idstr_r)
ResKind(sat::detail::IdType id_r)
Ctor taking kind as string.
static std::string satIdent(const ResKind &refers_r, const std::string &name_r)
Return libsolv identifier for name.
Provides API related macros.
static const ResKind pattern
std::string satIdent(const std::string &name_r) const
std::ostream & dumpAsXmlOn(std::ostream &str, const ResKind &obj)
const char * c_str() const
Conversion to const char *
ResKind()
Default ctor: nokind.
std::string toLower(const std::string &s)
Return lowercase version of s.
static const ResKind application
const char * c_str() const
static int _doCompare(const char *lhs, const char *rhs)
ResKind(const std::string &str_r)
static const ResKind nokind
Value representing nokind ("")
static const ResKind product
static const ResKind patch
ResKind(const char *cstr_r)