23 static NamedValue<ServiceType::Type> & table()
25 static NamedValue<ServiceType::Type> & _t( *
new NamedValue<ServiceType::Type> );
42 : _type(parse(strval_r))
48 if ( ! table().getValue(
str::toLower( strval_r ), type ) )
57 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.
ServiceType::Type parse(const std::string &strval_r)
static const ServiceType RIS
Repository Index Service (RIS) (formerly known as 'Novell Update' (NU) service)
const std::string & asString() const
static const ServiceType NONE
No service set.
static const ServiceType PLUGIN
Plugin services are scripts installed on your system that provide the package manager with repositori...
std::string toLower(const std::string &s)
Return lowercase version of s.
Easy-to use interface to the ZYPP dependency resolver.