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

DependentPackage Class Reference

Class to encapsulate the smaller dependency atoms. More...

#include <dependency.h>

List of all members.

Public Member Functions

 DependentPackage (PMString dependency)
 Constructor that processes the normal portage syntax.
bool operator== (DependentPackage param)
 Checks for equality between DependentPackage.
bool operator!= (DependentPackage param)
 Checks for non-equality between DependentPackage.
bool AtomExamine (PMString category, PMString name, PMString version)
 Checks to see if the strings satisfy a dependency.

Public Attributes

PMString package
 The string detailing the package that the dependency involves.
DependType dependType
 The flags regarding the dependency.


Detailed Description

A dependent package details the string used to describe a package, and also the flags used to describe the dependency. Used to describe all the atoms except the || dependency. We have multiple dependent packages to deal with that.


Constructor & Destructor Documentation

DependentPackage::DependentPackage PMString  dependency  ) 
 

Constructor that sets the flags within the DependentPackage accordingly and sets the package too.

Parameters:
dependency The portage style single atom ( i.e. not including || ).


Member Function Documentation

bool DependentPackage::AtomExamine PMString  category,
PMString  name,
PMString  version
 

Returns true if the strings satisfy the dependency.

Parameters:
category The category of the package to be tested.
name The name of the package to be tested.
version The version of the package to be tested.
Returns:
true if the dependency is fulfilled by the strings.
Exceptions:
PortageException(eBadVersionCompare,version1 version2) if there is a bug in version compare.
PortageException(eEmptyVersionCompare). 

bool DependentPackage::operator!= DependentPackage  param  ) 
 

Non-Equality operator.

Parameters:
param The DependentPackage to test against.
Returns:
true if the DependentPackages are not equal.

bool DependentPackage::operator== DependentPackage  param  ) 
 

Equality operator.

Parameters:
param The DependentPackage to test against.
Returns:
true if the DependentPackages are equal.


The documentation for this class was generated from the following files:
Generated on Wed May 25 15:29:54 2005 for Package Management System for Gentoo Linux by  doxygen 1.4.1