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

PkgRelation Class Reference

#include <PkgRelation.h>

List of all members.

Public Member Functions

 PkgRelation (const PkgName &n)
 PkgRelation (const PkgName &n, rel_op o, const PkgEdition &e)
const PkgNamename () const
rel_op op () const
const PkgEditionedition () 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

std::string toString (const PkgRelation &t)
PkgRelation fromString (std::string s)
std::list< PkgRelationparseRelations (const std::string &data_tr)

Static Private Member Functions

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 &)


Constructor & Destructor Documentation

PkgRelation::PkgRelation const PkgName n  )  [inline]
 

PkgRelation::PkgRelation const PkgName n,
rel_op  o,
const PkgEdition e
[inline]
 


Member Function Documentation

string PkgRelation::asString  )  const
 

Convert this into a human readable string.

const PkgEdition& PkgRelation::edition  )  const [inline]
 

PkgRelation PkgRelation::fromString std::string  s  )  [static]
 

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

bool PkgRelation::isFileRel  )  const [inline]
 

True, if this is a file dependency

bool PkgRelation::isPreReq  )  const [inline]
 

determine if Relation is a pre-requirement

bool PkgRelation::matches const PkgRelation rel  )  const
 

bool PkgRelation::matches constPMSolvablePtr  pkg  )  const
 

const PkgName& PkgRelation::name  )  const [inline]
 

rel_op PkgRelation::op  )  const [inline]
 

bool PkgRelation::operator!= const PkgRelation r2  )  const [inline]
 

bool PkgRelation::operator== const PkgRelation r2  )  const [inline]
 

PMSolvable::PkgRelList_type PkgRelation::parseRelations const std::string &  data_tr  )  [static]
 

Parse relations strings like "pkg1 pkg2 >= 1.2.3".

void PkgRelation::setPreReq bool  yes  )  [inline]
 

Mark as pre-requirement

rel_op PkgRelation::string2DepCompare const std::string &  str_tr  )  [static, private]
 

string PkgRelation::toString const PkgRelation t  )  [static]
 

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


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  os,
const PkgRelation rel
[friend]
 

Write out asString()


Member Data Documentation

PkgEdition PkgRelation::_edition [private]
 

bool PkgRelation::_isprereq [private]
 

PkgName PkgRelation::_name [private]
 

rel_op PkgRelation::_op [private]
 


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