Cupt
snapshots.hpp
Go to the documentation of this file.
1 /**************************************************************************
2 * Copyright (C) 2010 by Eugene V. Lyubimkin *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License *
6 * (version 3 or above) as published by the Free Software Foundation. *
7 * *
8 * This program is distributed in the hope that it will be useful, *
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
11 * GNU General Public License for more details. *
12 * *
13 * You should have received a copy of the GNU GPL *
14 * along with this program; if not, write to the *
15 * Free Software Foundation, Inc., *
16 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA *
17 **************************************************************************/
18 #ifndef CUPT_SYSTEM_SNAPSHOTS
19 #define CUPT_SYSTEM_SNAPSHOTS
20 
22 
23 #include <cupt/common.hpp>
24 #include <cupt/fwd.hpp>
25 
26 namespace cupt {
27 
28 namespace internal {
29 
30 class SnapshotsImpl;
31 
32 }
33 
34 namespace system {
35 
37 class CUPT_API Snapshots
38 {
39  internal::SnapshotsImpl* __impl;
40 
41  Snapshots(const Snapshots&);
42  Snapshots& operator=(const Snapshots&);
43  public:
45  CUPT_LOCAL static const string installedPackageNamesFilename;
47 
49 
52  Snapshots(const shared_ptr< Config >& config);
54  ~Snapshots();
56  vector< string > getSnapshotNames() const;
60  string getSnapshotsDirectory() const;
65  string getSnapshotDirectory(const string& snapshotName) const;
72  void setupConfigForSnapshotOnly(const string& snapshotName);
80  void setupResolverForSnapshotOnly(const string& snapshotName,
81  const Cache& cache, Resolver& resolver);
82 };
83 
84 }
85 }
86 
87 #endif
88 
common.hpp
cupt::system::Resolver
dependency problems resolver
Definition: resolver.hpp:42
cupt::system::Snapshots
various snapshot-related routines
Definition: snapshots.hpp:37
cupt::Cache
the source of package and version information
Definition: cache.hpp:44