libzypp  17.25.0
SetRelationMixin.cc
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #include <map>
14 
16 namespace zypp
17 {
18  const std::string & ESetCompareDef::asString( Enum val_r )
19  {
20  static std::map<Enum,std::string> _table = {
21  { uncomparable, "{?}" },
22  { equal, "{=}" },
23  { properSubset, "{<}" },
24  { properSuperset, "{>}" },
25  { disjoint, "{ }" },
26  };
27  return _table[val_r];
28  }
29 
30  const std::string & ESetRelationDef::asString( Enum val_r )
31  {
32  static std::map<Enum,std::string> _table = {
33  { uncomparable, "{??}" },
34  { equal, "{==}" },
35  { properSubset, "{<<}" },
36  { properSuperset, "{>>}" },
37  { disjoint, "{ }" },
38  { subset, "{<=}" },
39  { superset, "{>=}" },
40  };
41  return _table[val_r];
42  }
43 } // namespace zypp
zypp::ESetCompareDef::disjoint
"{ }"
Definition: SetRelationMixin.h:34
zypp::repo::_table
static std::map< std::string, ServiceType::Type > _table
Definition: ServiceType.cc:21
zypp::ESetRelationDef::equal
"{==}"
Definition: SetRelationMixin.h:60
SetRelationMixin.h
zypp::ESetCompareDef::properSuperset
"{>}"
Definition: SetRelationMixin.h:33
zypp::ESetCompareDef::equal
"{=}"
Definition: SetRelationMixin.h:31
zypp::ESetRelationDef::disjoint
"{ }"
Definition: SetRelationMixin.h:63
zypp::ESetCompareDef::properSubset
"{<}"
Definition: SetRelationMixin.h:32
zypp::ESetRelationDef::properSuperset
"{>>}"
Definition: SetRelationMixin.h:62
zypp::ESetRelationDef::Enum
Enum
Definition: SetRelationMixin.h:58
zypp::ESetCompareDef::Enum
Enum
Definition: SetRelationMixin.h:29
zypp::ESetCompareDef::uncomparable
"{?}"
Definition: SetRelationMixin.h:30
zypp::ESetRelationDef::superset
"{>=}"
Definition: SetRelationMixin.h:65
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1
zypp::ESetRelationDef::subset
"{<=}"
Definition: SetRelationMixin.h:64
zypp::ESetRelationDef::properSubset
"{<<}"
Definition: SetRelationMixin.h:61
zypp::ESetCompareDef::asString
static const std::string & asString(Enum val_r)
String representantion.
Definition: SetRelationMixin.cc:18
zypp::ESetRelationDef::asString
static const std::string & asString(Enum val_r)
String representantion.
Definition: SetRelationMixin.cc:30
zypp::ESetRelationDef::uncomparable
"{??}"
Definition: SetRelationMixin.h:59