22 static NamedValue<RepoType::Type> & table()
24 static NamedValue<RepoType::Type> & _t( *
new NamedValue<RepoType::Type> );
43 : _type(parse(strval_r))
49 if ( ! table().getValue(
str::toLower( strval_r ), type ) )
58 return table().getName(
_type );
thrown when it was impossible to determine this repo type.
std::string toLower(const std::string &s)
Return lowercase version of s.
Easy-to use interface to the ZYPP dependency resolver.
RepoType::Type parse(const std::string &strval_r)
static const RepoType YAST2
const std::string & asString() const
static const RepoType RPMMD
static const RepoType NONE
static const RepoType RPMPLAINDIR
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.