#include <PkgRelation.h>
Public Member Functions | |
| PkgRelation () | |
| PkgRelation (const PkgName &n) | |
| PkgRelation (const PkgName &n, rel_op o, const PkgEdition &e) | |
| const PkgName & | name () const |
| rel_op | op () const |
| const PkgEdition & | edition () const |
| bool | matches (constPMSolvablePtr pkg) const |
| bool | matches (const PkgRelation &rel) const |
| bool | operator== (const PkgRelation &r2) const |
| bool | operator!= (const PkgRelation &r2) const |
| std::string | asString () const |
| void | setPreReq (bool yes) |
| bool | isPreReq () const |
| bool | isFileRel () const |
Static Public Member Functions | |
| static std::string | toString (const PkgRelation &t) |
| static PkgRelation | fromString (std::string s) |
| static std::list< PkgRelation > | parseRelations (const std::string &data_tr) |
Static Private Member Functions | |
| static rel_op | string2DepCompare (const std::string &str_tr) |
Private Attributes | |
| PkgName | _name |
| rel_op | _op |
| PkgEdition | _edition |
| bool | _isprereq |
Friends | |
| std::ostream & | operator<< (std::ostream &, const PkgRelation &) |
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
Convert this into a human readable string. |
|
|
|
|
|
Restore PkgRelation from string (on restore from file). Keep it compatible with toString. |
|
|
True, if this is a file dependency |
|
|
determine if Relation is a pre-requirement |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Parse relations strings like "pkg1 pkg2 >= 1.2.3". |
|
|
Mark as pre-requirement |
|
|
|
|
|
Convert PkgRelation to string (on save to file). Keep it compatible with fromString. |
|
||||||||||||
|
Write out asString() |
|
|
|
|
|
|
|
|
|
|
|
|
1.4.4