Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

ProductIdent Class Reference

Store product name and version. More...

#include <ProductIdent.h>

List of all members.

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)


Detailed Description

Store product name and version.

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.


Constructor & Destructor Documentation

ProductIdent::ProductIdent  ) 
 

ProductIdent::ProductIdent const PkgNameEd rhs  ) 
 

ProductIdent::ProductIdent const PkgName n,
const PkgEdition e
 

ProductIdent::~ProductIdent  ) 
 


Member Function Documentation

void ProductIdent::_initCheck  )  [private]
 

PkgNameEd ProductIdent::asPkgNameEd  )  const [inline]
 

PkgNameEd representation

std::string ProductIdent::asString  )  const [inline]
 

String representation

ProductIdent ProductIdent::fromString std::string  s  )  [inline, static]
 

Restore ProductIdent from string (on restore from file). Keep it compatible with toString.

bool ProductIdent::isLine std::string  name_r  )  const
 

Is product line name_r.

bool ProductIdent::obsoletes const ProductIdent rhs  )  const
 

This obsoletes rhs when installed in productDB

bool ProductIdent::sameLine const ProductIdent rhs  )  const [inline]
 

Same product line

bool ProductIdent::sameProduct const ProductIdent rhs  )  const [inline]
 

Same line and equal version

bool ProductIdent::sameVersion const ProductIdent rhs  )  const [inline]
 

Equal version

std::string ProductIdent::toString const ProductIdent t  )  [inline, static]
 

Convert ProductIdent to string (on save to file). Keep it compatible with fromString.

bool ProductIdent::undefined  )  const [inline]
 

Is an empty ProductIdent


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  str,
const ProductIdent obj
[friend]
 


Member Data Documentation

PkgNameEd ProductIdent::_product [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 14:30:33 2007 for yast2-packagemanager by doxygen 1.3.6