15#include <zypp/base/Exception.h>
16#include <zypp/base/Gettext.h>
17#include <zypp/base/String.h>
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.
Easy-to use interface to the ZYPP dependency resolver.
static const Dep SUGGESTS
static const Dep CONFLICTS
for_use_in_switch
Enumarators provided only for use inSwitch statement.
static const Dep REQUIRES
static const Dep RECOMMENDS
static const Dep SUPPLEMENTS
for_use_in_switch _type
The operator.
for_use_in_switch inSwitch() const
Enumarator provided for use in switch statement.
static const Dep PROVIDES
static const Dep OBSOLETES
std::string asUserString() const
Translated dependency type (capitalized).
const std::string & asString() const
String representation of dependency type.
static const Dep PREREQUIRES
static const Dep ENHANCES
Dep(const std::string &strval_r)
Ctor from string.
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.