11 #ifndef CVMFS_CATALOG_MGR_RO_H_
12 #define CVMFS_CATALOG_MGR_RO_H_
19 class DownloadManager;
36 const std::string &stratum0,
40 const bool manage_catalog_files =
false,
41 const std::string &dir_cache =
"",
42 const bool copy_to_tmp_dir =
false);
62 return (relative_path ==
"") ?
"" :
"/" + relative_path;
86 #endif // CVMFS_CATALOG_MGR_RO_H_
const bool manage_catalog_files_
const manifest::Manifest * manifest() const
void set_base_hash(const shash::Any &hash)
bool UseLocalCache() const
download::DownloadManager * download_manager_
virtual LoadReturn LoadCatalogByHash(CatalogContext *ctlg_context)
virtual Catalog * CreateCatalog(const PathString &mountpoint, const shash::Any &catalog_hash, Catalog *parent_catalog)
const std::string & dir_temp() const
Statistics statistics() const
std::string MakeRelativePath(const std::string &relative_path) const
std::string CopyCatalogToTempFile(const std::string &cache_path)
SimpleCatalogManager(const shash::Any &base_hash, const std::string &stratum0, const std::string &dir_temp, download::DownloadManager *download_manager, perf::Statistics *statistics, const bool manage_catalog_files=false, const std::string &dir_cache="", const bool copy_to_tmp_dir=false)
virtual LoadReturn GetNewRootCatalogContext(CatalogContext *result)
const shash::Any & base_hash() const