Cupt
|
various snapshot-related routines More...
#include <cupt/system/snapshots.hpp>
Public Member Functions | |
Snapshots (const shared_ptr< Config > &config) | |
~Snapshots () | |
destructor | |
vector< string > | getSnapshotNames () const |
returns array of names of available snapshots | |
string | getSnapshotsDirectory () const |
string | getSnapshotDirectory (const string &snapshotName) const |
void | setupConfigForSnapshotOnly (const string &snapshotName) |
void | setupResolverForSnapshotOnly (const string &snapshotName, const Cache &cache, Resolver &resolver) |
various snapshot-related routines
cupt::system::Snapshots::Snapshots | ( | const shared_ptr< Config > & | config | ) |
constructor
config | configuration |
string cupt::system::Snapshots::getSnapshotDirectory | ( | const string & | snapshotName | ) | const |
snapshotName |
string cupt::system::Snapshots::getSnapshotsDirectory | ( | ) | const |
void cupt::system::Snapshots::setupConfigForSnapshotOnly | ( | const string & | snapshotName | ) |
Modifies config (passed in constructor) in the way that Cache built from it have access only to installed and snapshot versions of packages.
snapshotName |
void cupt::system::Snapshots::setupResolverForSnapshotOnly | ( | const string & | snapshotName, |
const Cache & | cache, | ||
Resolver & | resolver | ||
) |
Schedules snapshot versions of packages to be installed.
snapshotName | |
cache | |
resolver |