| Server IP : 216.92.14.13 / Your IP : 216.73.217.126 Web Server : Apache System : Linux vps4089.pairvps.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 User : rmlac2fmr ( 1040637) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/include/apt-pkg/ |
Upload File : |
#ifndef APT_PRETTYPRINTERS_H
#define APT_PRETTYPRINTERS_H
#include <apt-pkg/macros.h>
#include <apt-pkg/pkgcache.h>
class pkgDepCache;
namespace APT {
/** helper to format PkgIterator for easier printing in debug messages.
*
* The actual text generated is subject to change without prior notice
* and should NOT be used as part of a general user interface.
*/
struct PrettyPkg
{
pkgDepCache * const DepCache;
pkgCache::PkgIterator const Pkg;
PrettyPkg(pkgDepCache * const depcache, pkgCache::PkgIterator const &pkg) APT_NONNULL(2) : DepCache(depcache), Pkg(pkg) {}
};
/** helper to format DepIterator for easier printing in debug messages.
*
* The actual text generated is subject to change without prior notice
* and should NOT be used as part of a general user interface.
*/
struct PrettyDep
{
pkgDepCache * const DepCache;
pkgCache::DepIterator const Dep;
PrettyDep(pkgDepCache * const depcache, pkgCache::DepIterator const &dep) APT_NONNULL(2) : DepCache(depcache), Dep(dep) {}
};
}
APT_PUBLIC std::ostream& operator<<(std::ostream& os, const APT::PrettyPkg& pp);
APT_PUBLIC std::ostream& operator<<(std::ostream& os, const APT::PrettyDep& pd);
#endif