libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
APT::CacheSetHelper Class Reference

Simple base class with a lot of virtual methods which can be overridden to alter the behavior or the output of the CacheSets. More...

#include <cacheset.h>

Collaboration diagram for APT::CacheSetHelper:

Public Member Functions

 CacheSetHelper (bool const ShowError=true, GlobalError::MsgType ErrorType=GlobalError::ERROR)
 
virtual ~CacheSetHelper ()
 
virtual void canNotFindAllVer (VersionContainerInterface *const vci, pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg)
 
virtual pkgCache::VerIterator canNotFindCandidateVer (pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg)
 
virtual void canNotFindCandInstVer (VersionContainerInterface *const vci, pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg)
 
virtual pkgCache::VerIterator canNotFindInstalledVer (pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg)
 
virtual void canNotFindInstCandVer (VersionContainerInterface *const vci, pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg)
 
virtual pkgCache::VerIterator canNotFindNewestVer (pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg)
 
virtual void canNotFindPackage (PackageContainerInterface *const pci, pkgCacheFile &Cache, std::string const &str)
 
virtual pkgCache::PkgIterator canNotFindPkgName (pkgCacheFile &Cache, std::string const &str)
 
virtual void canNotFindRegEx (PackageContainerInterface *const pci, pkgCacheFile &Cache, std::string pattern)
 
virtual void canNotFindTask (PackageContainerInterface *const pci, pkgCacheFile &Cache, std::string pattern)
 
GlobalError::MsgType errorType () const
 
GlobalError::MsgType errorType (GlobalError::MsgType const &newValue)
 
bool showErrors () const
 
bool showErrors (bool const newValue)
 
virtual void showRegExSelection (pkgCache::PkgIterator const &pkg, std::string const &pattern)
 
virtual void showSelectedVersion (pkgCache::PkgIterator const &Pkg, pkgCache::VerIterator const Ver, std::string const &ver, bool const verIsRel)
 
virtual void showTaskSelection (pkgCache::PkgIterator const &pkg, std::string const &pattern)
 

Protected Attributes

GlobalError::MsgType ErrorType
 
bool ShowError
 

Detailed Description

Simple base class with a lot of virtual methods which can be overridden to alter the behavior or the output of the CacheSets.

This helper is passed around by the static methods in the CacheSets and used every time they hit an error condition or something could be printed out.

Constructor & Destructor Documentation

APT::CacheSetHelper::CacheSetHelper ( bool const  ShowError = true,
GlobalError::MsgType  ErrorType = GlobalError::ERROR 
)
inline
virtual APT::CacheSetHelper::~CacheSetHelper ( )
inlinevirtual

Member Function Documentation

virtual void APT::CacheSetHelper::canNotFindAllVer ( VersionContainerInterface *const  vci,
pkgCacheFile Cache,
pkgCache::PkgIterator const &  Pkg 
)
virtual
virtual pkgCache::VerIterator APT::CacheSetHelper::canNotFindCandidateVer ( pkgCacheFile Cache,
pkgCache::PkgIterator const &  Pkg 
)
virtual
virtual void APT::CacheSetHelper::canNotFindCandInstVer ( VersionContainerInterface *const  vci,
pkgCacheFile Cache,
pkgCache::PkgIterator const &  Pkg 
)
virtual
virtual pkgCache::VerIterator APT::CacheSetHelper::canNotFindInstalledVer ( pkgCacheFile Cache,
pkgCache::PkgIterator const &  Pkg 
)
virtual
virtual void APT::CacheSetHelper::canNotFindInstCandVer ( VersionContainerInterface *const  vci,
pkgCacheFile Cache,
pkgCache::PkgIterator const &  Pkg 
)
virtual
virtual pkgCache::VerIterator APT::CacheSetHelper::canNotFindNewestVer ( pkgCacheFile Cache,
pkgCache::PkgIterator const &  Pkg 
)
virtual
virtual void APT::CacheSetHelper::canNotFindPackage ( PackageContainerInterface *const  pci,
pkgCacheFile Cache,
std::string const &  str 
)
virtual
virtual pkgCache::PkgIterator APT::CacheSetHelper::canNotFindPkgName ( pkgCacheFile Cache,
std::string const &  str 
)
virtual
virtual void APT::CacheSetHelper::canNotFindRegEx ( PackageContainerInterface *const  pci,
pkgCacheFile Cache,
std::string  pattern 
)
virtual
virtual void APT::CacheSetHelper::canNotFindTask ( PackageContainerInterface *const  pci,
pkgCacheFile Cache,
std::string  pattern 
)
virtual
GlobalError::MsgType APT::CacheSetHelper::errorType ( ) const
inline

References ErrorType.

GlobalError::MsgType APT::CacheSetHelper::errorType ( GlobalError::MsgType const &  newValue)
inline

References ErrorType.

bool APT::CacheSetHelper::showErrors ( ) const
inline

References ShowError.

bool APT::CacheSetHelper::showErrors ( bool const  newValue)
inline

References ShowError.

virtual void APT::CacheSetHelper::showRegExSelection ( pkgCache::PkgIterator const &  pkg,
std::string const &  pattern 
)
virtual
virtual void APT::CacheSetHelper::showSelectedVersion ( pkgCache::PkgIterator const &  Pkg,
pkgCache::VerIterator const  Ver,
std::string const &  ver,
bool const  verIsRel 
)
virtual
virtual void APT::CacheSetHelper::showTaskSelection ( pkgCache::PkgIterator const &  pkg,
std::string const &  pattern 
)
virtual

Member Data Documentation

GlobalError::MsgType APT::CacheSetHelper::ErrorType
protected

Referenced by errorType().

bool APT::CacheSetHelper::ShowError
protected

Referenced by showErrors().


The documentation for this class was generated from the following file: