Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef CUPT_SYSTEM_SNAPSHOTS
00019 #define CUPT_SYSTEM_SNAPSHOTS
00020
00022
00023 #include <cupt/common.hpp>
00024 #include <cupt/fwd.hpp>
00025
00026 namespace cupt {
00027
00028 namespace internal {
00029
00030 class SnapshotsImpl;
00031
00032 }
00033
00034 namespace system {
00035
00037 class CUPT_API Snapshots
00038 {
00039 internal::SnapshotsImpl* __impl;
00040
00041 Snapshots(const Snapshots&);
00042 Snapshots& operator=(const Snapshots&);
00043 public:
00045 CUPT_LOCAL static const string installedPackageNamesFilename;
00047
00049
00052 Snapshots(const shared_ptr< Config >& config);
00054 ~Snapshots();
00056 vector< string > getSnapshotNames() const;
00060 string getSnapshotsDirectory() const;
00065 string getSnapshotDirectory(const string& snapshotName) const;
00072 void setupConfigForSnapshotOnly(const string& snapshotName);
00080 void setupResolverForSnapshotOnly(const string& snapshotName,
00081 const Cache& cache, Resolver& resolver);
00082 };
00083
00084 }
00085 }
00086
00087 #endif
00088