#include <SourceCache.h>
Public Member Functions | |
SourceCache () | |
Default ctor. | |
~SourceCache () | |
Dtor. | |
void | setCacheDir (const Pathname &dir_r) |
void | storeSource (Source_Ref src) |
void | restoreSources () |
void | removeSource (unsigned id) |
void | removeSource (const Url &url_r, const Pathname &path_r="/") |
Static Private Attributes | |
static Pathname | _cache_dir = "/var/adm/ZYPP/SourceCache" |
directory to store cached data | |
static unsigned | _next_cache_id = 0 |
counter of caches | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const SourceCache &obj) |
Definition at line 35 of file SourceCache.h.
|
Default ctor.
Definition at line 46 of file SourceCache.cc. |
|
Dtor.
Definition at line 54 of file SourceCache.cc. |
|
Definition at line 57 of file SourceCache.cc. References _cache_dir. |
|
|
Definition at line 79 of file SourceCache.cc. References _cache_dir, zypp::bit::asString(), zypp::iostr::getline(), zypp::filesystem::readdir(), zypp::SourceManager::sourceManager(), url, and ZYPP_THROW. |
|
Definition at line 101 of file SourceCache.cc. References _cache_dir, _next_cache_id, zypp::str::hexstring(), zypp::filesystem::recursive_rmdir(), and ZYPP_THROW. |
|
Definition at line 108 of file SourceCache.cc. References _cache_dir, zypp::Url::asCompleteString(), zypp::bit::asString(), zypp::iostr::getline(), zypp::filesystem::readdir(), zypp::filesystem::recursive_rmdir(), url, and ZYPP_THROW. |
|
Stream output Definition at line 137 of file SourceCache.cc. |
|
directory to store cached data
Definition at line 58 of file SourceCache.h. Referenced by removeSource(), restoreSources(), setCacheDir(), and storeSource(). |
|
counter of caches
Definition at line 60 of file SourceCache.h. Referenced by removeSource(), and storeSource(). |