libzypp
17.35.15
|
Enumeration class of dependency types. More...
#include <zypp/Dep.h>
Public Types | |
enum | for_use_in_switch { PROVIDES_e, PREREQUIRES_e, REQUIRES_e, CONFLICTS_e, OBSOLETES_e, RECOMMENDS_e, SUGGESTS_e, ENHANCES_e, SUPPLEMENTS_e } |
Enumarators provided only for use inSwitch statement. More... | |
Public Member Functions | |
Dep (const std::string &strval_r) | |
Ctor from string. More... | |
const std::string & | asString () const ZYPP_API |
String representation of dependency type. More... | |
std::string | asUserString () const ZYPP_API |
Translated dependency type (capitalized). More... | |
for_use_in_switch | inSwitch () const |
Enumarator provided for use in switch statement. More... | |
Static Public Attributes | |
Dependency types | |
These are the real dependency type contants to use. Don't mind that it's not an enum.
| |
static const Dep PROVIDES | ZYPP_API |
static const Dep PREREQUIRES | ZYPP_API |
static const Dep REQUIRES | ZYPP_API |
static const Dep CONFLICTS | ZYPP_API |
static const Dep OBSOLETES | ZYPP_API |
static const Dep RECOMMENDS | ZYPP_API |
static const Dep SUGGESTS | ZYPP_API |
static const Dep ENHANCES | ZYPP_API |
static const Dep SUPPLEMENTS | ZYPP_API |
Private Member Functions | |
Dep (for_use_in_switch type_r) | |
Ctor to initialize the dependency type contants. More... | |
Private Attributes | |
for_use_in_switch | _type |
The operator. More... | |
Friends | |
bool | operator== (const Dep &lhs, const Dep &rhs) |
bool | operator!= (const Dep &lhs, const Dep &rhs) |
bool | operator< (const Dep &lhs, const Dep &rhs) |
Arbitrary order to allow Dep as key in std::container. More... | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const Dep &obj) |
bool | operator== (const Dep &lhs, const Dep &rhs) |
bool | operator!= (const Dep &lhs, const Dep &rhs) |
bool | operator< (const Dep &lhs, const Dep &rhs) |
|
explicit |
|
inlineprivate |
const std::string & zypp::Dep::asString | ( | ) | const |
std::string zypp::Dep::asUserString | ( | ) | const |
|
inline |
Arbitrary order to allow Dep as key in std::container.
|
related |
|
private |