29 const std::map<std::string,Dep::for_use_in_switch> _table = {
42 if ( it == _table.end() )
44 ZYPP_THROW( Exception(
"Dep parse: illegal string value '"+strval_r+
"'") );
68 : _type( parse( strval_r ) )
78 static const std::map<for_use_in_switch,std::string> _table = {
89 return _table.at(
_type);
106 return "<missing translation>";
std::string toLower(const std::string &s)
Return lowercase version of s.
Dep(const std::string &strval_r)
Ctor from string.
for_use_in_switch
Enumarators provided only for use inSwitch statement.
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.
const std::string & asString() const ZYPP_API
String representation of dependency type.
for_use_in_switch inSwitch() const
Enumarator provided for use in switch statement.
std::string asUserString() const ZYPP_API
Translated dependency type (capitalized).
Easy-to use interface to the ZYPP dependency resolver.
for_use_in_switch _type
The operator.