Deepsolver
Public Member Functions
AbstractInstalledPackagesIterator Class Reference

The abstract interface for every iterator over set of installed packages. More...

Inheritance diagram for AbstractInstalledPackagesIterator:
RpmInstalledPackagesIterator

List of all members.

Public Member Functions

 AbstractInstalledPackagesIterator ()
 The default constructor.
virtual bool moveNext (Pkg &pkg)=0
 Goes to next installed package and fills data associated with it.
virtual ~AbstractInstalledPackagesIterator ()
 The destructor.

Detailed Description

This class isolates any engine of particular package library which can be used to read database with installed packages data. It instance can be obtained by methods of AbstractPackageBackEnd class.

See also:
AbstractPackageBackEnd RpmBackEnd RpmInstalledPackagesIterator

Member Function Documentation

virtual bool AbstractInstalledPackagesIterator::moveNext ( Pkg pkg) [pure virtual]

After creation the iterator is pointed before the first element. Each invocation of this method changes position to next package if there is any and fills necessary data. If there is no next package (including the case there are no packages at all) this method returns zero.

Parameters:
[out]pkgThe Pkg class instance to received data about next installed package
Returns:
Non-zero if there is next package or zero otherwise (including the case there are no packages at all)

Implemented in RpmInstalledPackagesIterator.