25 std::map<std::string,Rel::for_use_in_switch>
_table;
27 std::map<std::string,Rel::for_use_in_switch>::const_iterator findStr(
const std::string & strval_r )
42 return _table.find( strval_r );
47 std::map<std::string,Rel::for_use_in_switch>::const_iterator it = findStr( strval_r );
50 ZYPP_THROW( Exception(
"Rel parse: illegal string value '"+strval_r+
"'") );
57 std::map<std::string,Rel::for_use_in_switch>::const_iterator it = findStr( strval_r );
60 return default_r.inSwitch();
82 : _op( parse( strval_r ) )
85 Rel::Rel(
const std::string & strval_r,
const Rel & default_r )
86 : _op( parse( strval_r, default_r ) )
91 std::map<std::string,Rel::for_use_in_switch>::const_iterator it = findStr( strval_r );
107 static std::map<for_use_in_switch,std::string>
_table;
static std::map< std::string, ServiceType::Type > _table
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.
const std::string & asString() const
String representation of relational operator.
for_use_in_switch _op
The operator.
for_use_in_switch
Enumarators provided only for use inSwitch statement.
Easy-to use interface to the ZYPP dependency resolver.
bool parseFrom(const std::string &strval_r)
Assign from string IFF it contains a legal value.