22 static NamedValue<RepoType::Type> & table()
24 static NamedValue<RepoType::Type> _t;
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.
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.
RepoType::Type parse(const std::string &strval_r)
const std::string & asString() const
static const RepoType NONE
std::string toLower(const std::string &s)
Return lowercase version of s.
static const RepoType RPMMD
static const RepoType YAST2
static const RepoType RPMPLAINDIR