]> git.saurik.com Git - apt.git/blob - apt-private/private-output.h
add c++11 override marker to overridden methods
[apt.git] / apt-private / private-output.h
1 #ifndef APT_PRIVATE_OUTPUT_H
2 #define APT_PRIVATE_OUTPUT_H
3
4 #include <apt-pkg/pkgcache.h>
5 #include <apt-pkg/macros.h>
6
7 #include <fstream>
8 #include <string>
9 #include <iostream>
10
11 // forward declaration
12 class pkgCacheFile;
13 class CacheFile;
14 class pkgDepCache;
15 class pkgRecords;
16
17
18 APT_PUBLIC extern std::ostream c0out;
19 APT_PUBLIC extern std::ostream c1out;
20 APT_PUBLIC extern std::ostream c2out;
21 APT_PUBLIC extern std::ofstream devnull;
22 APT_PUBLIC extern unsigned int ScreenWidth;
23
24 APT_PUBLIC bool InitOutput(std::basic_streambuf<char> * const out = std::cout.rdbuf());
25
26 void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records,
27 pkgCache::VerIterator const &V, std::ostream &out,
28 std::string const &format);
29
30
31 // helper to describe global state
32 APT_PUBLIC void ShowBroken(std::ostream &out, CacheFile &Cache, bool const Now);
33 APT_PUBLIC void ShowBroken(std::ostream &out, pkgCacheFile &Cache, bool const Now);
34
35 APT_PUBLIC bool ShowList(std::ostream &out, std::string Title, std::string List,
36 std::string VersionsList);
37 void ShowNew(std::ostream &out,CacheFile &Cache);
38 void ShowDel(std::ostream &out,CacheFile &Cache);
39 void ShowKept(std::ostream &out,CacheFile &Cache);
40 void ShowUpgraded(std::ostream &out,CacheFile &Cache);
41 bool ShowDowngraded(std::ostream &out,CacheFile &Cache);
42 bool ShowHold(std::ostream &out,CacheFile &Cache);
43
44 bool ShowEssential(std::ostream &out,CacheFile &Cache);
45
46 void Stats(std::ostream &out, pkgDepCache &Dep);
47
48 // prompting
49 bool YnPrompt(bool Default=true);
50 bool AnalPrompt(const char *Text);
51
52 #endif