apt: apt-pkg/statechanges.h Source File

apt 3.3.2 commandline package manager

statechanges.h
1#include <apt-pkg/cacheset.h>
2#include <apt-pkg/macros.h>
3#include <apt-pkg/pkgcache.h>
4
5#include <memory>
6
7namespace APT
8{
9
13 class APT_PUBLIC StateChanges
14{
15public:
16 // getter/setter for the different states
17#define APT_GETTERSETTER(Name) \
18 APT::VersionVector& Name(); \
19 void Name(pkgCache::VerIterator const &Ver)
20 APT_GETTERSETTER(Hold);
21 APT_GETTERSETTER(Unhold);
22 APT_GETTERSETTER(Install);
23 APT_GETTERSETTER(Remove);
24 APT_GETTERSETTER(Purge);
25 APT::VersionVector& Error();
26#undef APT_GETTERSETTER
27
28 // operate on all containers at once
29 void clear();
30 bool empty() const;
31
46 bool Save(bool const DiscardOutput = false);
47
48 StateChanges();
49 StateChanges(StateChanges&&);
50 StateChanges& operator=(StateChanges&&);
51 ~StateChanges();
52
53private:
54 class APT_HIDDEN Private;
55 std::unique_ptr<Private> d;
56};
57
58}
cacheset.h
APT::StateChanges::Private
Definition statechanges.cc:19
APT::StateChanges::Save
bool Save(bool const DiscardOutput=false)
Definition statechanges.cc:70
pkgcache.h
pkgCache - Structure definitions for the cache file