next up previous contents
Next: pkgCache::PkgIterator Up: PkgDebian Previous: PkgDebian   Indice

pkgCacheFile

$ \texttt{pkgCacheFile}$ is a wrapper class for opening, generating and closing the cache. It is the main actor of the ``cache operations'' category. $ \texttt{pkgCacheFile}$ implements a simple mechanism to open various sorts of caches. It can operate as root, as non-root, show progress and so on, it transparently handles everything is necessary. This means it can rebuild caches from the source list and instantiates and prepares the standard policy mechanism. It is defined in the header file $ \texttt{<apt-pkg/cachefile.h>}$. The methods we use are:


next up previous contents
Next: pkgCache::PkgIterator Up: PkgDebian Previous: PkgDebian   Indice
2004-11-19