Cupt
Public Member Functions | List of all members
cupt::system::Snapshots Class Reference

various snapshot-related routines More...

#include <cupt/system/snapshots.hpp>

Public Member Functions

 Snapshots (const shared_ptr< Config > &config)
 constructor More...
 
 ~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

◆ Snapshots()

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

constructor

Parameters
configconfiguration

Member Function Documentation

◆ getSnapshotDirectory()

string cupt::system::Snapshots::getSnapshotDirectory ( const string &  snapshotName) const
Parameters
snapshotName
Returns
full path to directory containing snapshot with the name snapshotName

◆ getSnapshotsDirectory()

string cupt::system::Snapshots::getSnapshotsDirectory ( ) const
Returns
full path to directory containing snapshots

◆ setupConfigForSnapshotOnly()

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

◆ setupResolverForSnapshotOnly()

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: