Deepsolver
Public Member Functions
RpmInstalledPackagesIterator Class Reference

The iterator over set of installed packages. More...

Inheritance diagram for RpmInstalledPackagesIterator:
AbstractInstalledPackagesIterator

List of all members.

Public Member Functions

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

Detailed Description

This iterator reads the rpmdb database and provides information about each installed package. This class instance should not be created directly, use methods of AbstractPackageBackEnd class.

See also:
AbstractPackageBackEnd RpmBackEnd

Member Function Documentation

bool RpmInstalledPackagesIterator::moveNext ( Pkg pkg) [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)

Implements AbstractInstalledPackagesIterator.