12 #ifndef ZYPP_RESKIND_H
13 #define ZYPP_RESKIND_H
66 static std::string
satIdent(
const ResKind & refers_r,
const std::string & name_r );
68 std::string
satIdent(
const std::string & name_r )
const
69 {
return satIdent( *
this, name_r ); }
72 static int _doCompare(
const char * lhs,
const char * rhs )
74 if ( lhs == rhs )
return 0;
75 if ( lhs && rhs ) return ::strcasecmp( lhs, rhs );
76 return( lhs ? 1 : -1 );
86 {
return str <<
"<kind>" << obj <<
"</kind>"; }
91 #endif // ZYPP_RESKIND_H
int IdType
Generic Id type.
static const ResKind package
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)
ResKind()
Default ctor: nokind.
std::string toLower(const std::string &s)
Return lowercase version of s.
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)