statechanges.h
#include <apt-pkg/cacheset.h>
#include <apt-pkg/macros.h>
#include <apt-pkg/pkgcache.h>
#include <memory>
namespace APT
{
class APT_PUBLIC StateChanges
{
public:
// getter/setter for the different states
#define APT_GETTERSETTER(Name) \
APT::VersionVector& Name(); \
void Name(pkgCache::VerIterator const &Ver)
APT_GETTERSETTER(Hold);
APT_GETTERSETTER(Unhold);
APT_GETTERSETTER(Install);
APT_GETTERSETTER(Remove);
APT_GETTERSETTER(Purge);
APT::VersionVector& Error();
#undef APT_GETTERSETTER
// operate on all containers at once
void clear();
bool empty() const;
bool Save(bool const DiscardOutput = false);
StateChanges();
StateChanges(StateChanges&&);
StateChanges& operator=(StateChanges&&);
~StateChanges();
private:
class APT_HIDDEN Private;
std::unique_ptr<Private> d;
};
}
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