Cupt
Public Member Functions
cupt::system::Snapshots Class Reference

various snapshot-related routines More...

#include <cupt/system/snapshots.hpp>

List of all members.

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)

Detailed Description

various snapshot-related routines


Constructor & Destructor Documentation

cupt::system::Snapshots::Snapshots ( const shared_ptr< Config > &  config)

constructor

Parameters:
configconfiguration

Member Function Documentation

string cupt::system::Snapshots::getSnapshotDirectory ( const string &  snapshotName) const
Parameters:
snapshotName
Returns:
full path to directory containing snapshot with the name snapshotName
Returns:
full path to directory containing snapshots
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.

Parameters:
snapshotName
void cupt::system::Snapshots::setupResolverForSnapshotOnly ( const string &  snapshotName,
const Cache cache,
Resolver resolver 
)

Schedules snapshot versions of packages to be installed.

Parameters:
snapshotName
cache
resolver

The documentation for this class was generated from the following file: