CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
swissknife::Assistant Class Reference

#include <swissknife_assistant.h>

Collaboration diagram for swissknife::Assistant:

Public Types

enum  OpenMode { kOpenReadOnly, kOpenReadWrite }
 

Public Member Functions

 Assistant (download::DownloadManager *d, manifest::Manifest *m, const std::string &r, const std::string &t)
 
history::HistoryGetHistory (OpenMode open_mode)
 
catalog::CatalogGetCatalog (const shash::Any &catalog_hash, OpenMode open_mode)
 

Private Member Functions

bool FetchObject (const shash::Any &id, const std::string &local_path)
 

Private Attributes

download::DownloadManagerdownload_mgr_
 
manifest::Manifestmanifest_
 
std::string repository_url_
 
std::string tmp_dir_
 

Detailed Description

Common tasks when working with repositories, such as getting the a catalog or getting the history database. Objects are automatically removed when the Assistant goes out of scope.

Definition at line 32 of file swissknife_assistant.h.

Member Enumeration Documentation

Enumerator
kOpenReadOnly 
kOpenReadWrite 

Definition at line 34 of file swissknife_assistant.h.

Constructor & Destructor Documentation

swissknife::Assistant::Assistant ( download::DownloadManager d,
manifest::Manifest m,
const std::string &  r,
const std::string &  t 
)
inline

Definition at line 39 of file swissknife_assistant.h.

Member Function Documentation

bool swissknife::Assistant::FetchObject ( const shash::Any id,
const std::string &  local_path 
)
private

Definition at line 102 of file swissknife_assistant.cc.

Here is the call graph for this function:

catalog::Catalog * swissknife::Assistant::GetCatalog ( const shash::Any catalog_hash,
OpenMode  open_mode 
)

Definition at line 25 of file swissknife_assistant.cc.

Here is the call graph for this function:

history::History * swissknife::Assistant::GetHistory ( OpenMode  open_mode)

Definition at line 59 of file swissknife_assistant.cc.

Here is the call graph for this function:

Member Data Documentation

download::DownloadManager* swissknife::Assistant::download_mgr_
private

Definition at line 57 of file swissknife_assistant.h.

manifest::Manifest* swissknife::Assistant::manifest_
private

Definition at line 58 of file swissknife_assistant.h.

std::string swissknife::Assistant::repository_url_
private

Definition at line 59 of file swissknife_assistant.h.

std::string swissknife::Assistant::tmp_dir_
private

Definition at line 60 of file swissknife_assistant.h.


The documentation for this class was generated from the following files: