apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

prettyprinters.h
Go to the documentation of this file.
1 #ifndef APT_PRETTYPRINTERS_H
2 #define APT_PRETTYPRINTERS_H
3 #include <apt-pkg/macros.h>
4 #include <apt-pkg/pkgcache.h>
5 
6 class pkgDepCache;
7 
8 namespace APT {
9 
10 /** helper to format PkgIterator for easier printing in debug messages.
11  *
12  * The actual text generated is subject to change without prior notice
13  * and should NOT be used as part of a general user interface.
14  */
15 struct PrettyPkg
16 {
19  PrettyPkg(pkgDepCache * const depcache, pkgCache::PkgIterator const &pkg) APT_NONNULL(2) : DepCache(depcache), Pkg(pkg) {}
20 };
21 /** helper to format DepIterator for easier printing in debug messages.
22  *
23  * The actual text generated is subject to change without prior notice
24  * and should NOT be used as part of a general user interface.
25  */
26 struct PrettyDep
27 {
30  PrettyDep(pkgDepCache * const depcache, pkgCache::DepIterator const &dep) APT_NONNULL(2) : DepCache(depcache), Dep(dep) {}
31 };
32 
33 }
34 APT_PUBLIC std::ostream& operator<<(std::ostream& os, const APT::PrettyPkg& pp);
35 APT_PUBLIC std::ostream& operator<<(std::ostream& os, const APT::PrettyDep& pd);
36 
37 #endif
#define APT_PUBLIC
Definition: macros.h:77
#define APT_NONNULL(...)
Definition: macros.h:67
pkgCache - Structure definitions for the cache file
APT_PUBLIC std::ostream & operator<<(std::ostream &os, const APT::PrettyPkg &pp)
pkgDepCache *const DepCache
pkgCache::DepIterator const Dep
PrettyDep(pkgDepCache *const depcache, pkgCache::DepIterator const &dep) APT_NONNULL(2)
pkgDepCache *const DepCache
PrettyPkg(pkgDepCache *const depcache, pkgCache::PkgIterator const &pkg) APT_NONNULL(2)
pkgCache::PkgIterator const Pkg