10#include "KVDataRepositoryManager.h"
11#include "KVDataRepository.h"
12#include "KVDataSetManager.h"
34 fRepositories.SetOwner(
kTRUE);
35 gDataRepositoryManager =
this;
47 gDataRepositoryManager = 0;
92 "<KVDataRepositoryManager::Init> : no repositories defined in .kvrootrc"
97 gDataSetManager->
Init();
104 for (
int i_rep = 0; i_rep < toks->
GetEntries(); i_rep++) {
119 if (new_rep->
Init()) {
121 last_defined = new_rep;
135 if (new_rep) new_rep->
cd();
136 else if (last_defined) last_defined->
cd();
175 Bool_t _all = (_opt ==
"ALL");
177 cout <<
"Available data repositories: " << endl << endl;
183 cout <<
"\t" << rep->
GetName() <<
" [";
205 return R->GetDataSetManager()->GetDataSet(dataset);
char * Form(const char *fmt,...)
static void InitEnvironment()
Manages access to one or more data repositories.
KVDataRepository * GetRepository(const Char_t *name) const
KVDataSet * GetDataSet(const Char_t *repository, const Char_t *dataset) const
Return pointer to named dataset in the given repository.
void Print(Option_t *opt="") const
virtual ~KVDataRepositoryManager()
Destructor.
TList fRepositories
list of available repositories
Base class for managing repositories of experimental data.
virtual Bool_t IsRemote() const
Returns kTRUE for remote repositories, kFALSE for local repositories.
static KVDataRepository * NewRepository(const Char_t *type)
virtual void Print(Option_t *opt="") const
Print info on repository.
virtual const Char_t * GetRootDirectory() const
returns root directory of data repository (fLocalrootdir)
Manage all datasets contained in a given data repository.
virtual Bool_t Init(KVDataRepository *=0)
Manage an experimental dataset corresponding to a given experiment or campaign.
virtual Int_t GetSize() const
virtual const char * GetValue(const char *name, const char *dflt) const
TObject * FindObject(const char *name) const override
void Add(TObject *obj) override
void Delete(Option_t *option="") override
const char * GetName() const override
virtual void SetName(const char *name)
Int_t GetEntries() const override
const char * Data() const
TObjArray * Tokenize(const TString &delim) const