23 static NamedValue<ServiceType::Type> & table()
25 static NamedValue<ServiceType::Type> & _t( *
new NamedValue<ServiceType::Type> );
48 if ( ! table().getValue(
str::toLower( strval_r ), type ) )
57 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.
Service type enumeration.
ServiceType::Type parse(const std::string &strval_r)
const std::string & asString() const
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.