#include <ProductIdent.h>
Public Member Functions | |
ProductIdent () | |
ProductIdent (const PkgNameEd &rhs) | |
ProductIdent (const PkgName &n, const PkgEdition &e) | |
~ProductIdent () | |
bool | undefined () const |
bool | isLine (std::string name_r) const |
bool | sameLine (const ProductIdent &rhs) const |
bool | sameVersion (const ProductIdent &rhs) const |
bool | sameProduct (const ProductIdent &rhs) const |
bool | obsoletes (const ProductIdent &rhs) const |
std::string | asString () const |
PkgNameEd | asPkgNameEd () const |
Static Public Member Functions | |
std::string | toString (const ProductIdent &t) |
ProductIdent | fromString (std::string s) |
Private Member Functions | |
void | _initCheck () |
Private Attributes | |
PkgNameEd | _product |
Friends | |
std::ostream & | operator<< (std::ostream &str, const ProductIdent &obj) |
Handle constraints on setting/comparing ProductIdents:
NOTE: asPkgNameEd is provided for convenience and backwards compatibility. It's ok to retirieve a products name and version, but comparison of two product names/versions should be done by calling the methods provided here.
|
|
|
|
|
|
|
|
|
|
|
PkgNameEd representation |
|
String representation |
|
Restore ProductIdent from string (on restore from file). Keep it compatible with toString. |
|
Is product line name_r. |
|
This obsoletes rhs when installed in productDB |
|
Same product line |
|
Same line and equal version |
|
Equal version |
|
Convert ProductIdent to string (on save to file). Keep it compatible with fromString. |
|
Is an empty ProductIdent |
|
|
|
|