34 fRepositories.SetOwner(
kTRUE);
43 KVDataRepositoryManager::~KVDataRepositoryManager()
46 fRepositories.Delete();
79 if (fRepositories.GetSize())
80 fRepositories.Delete();
86 "<KVDataRepositoryManager::Init> : no repositories defined in .kvrootrc"
98 for (
int i_rep = 0; i_rep < toks->
GetEntries(); i_rep++) {
113 if (new_rep->
Init()) {
114 fRepositories.Add(new_rep);
115 last_defined = new_rep;
129 if (new_rep) new_rep->
cd();
130 else if (last_defined) last_defined->
cd();
169 Bool_t _all = (_opt ==
"ALL");
170 TIter nxt(&fRepositories);
171 cout <<
"Available data repositories: " << endl << endl;
177 cout <<
"\t" << rep->
GetName() <<
" [";
199 return R->GetDataSetManager()->GetDataSet(dataset);
KVDataRepositoryManager * gDataRepositoryManager
KVDataSetManager * gDataSetManager
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
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
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 const char * GetValue(const char *name, const char *dflt) const
virtual const char * GetName() const
virtual void SetName(const char *name)
virtual TObject * FindObject(const char *name) const
TObjArray * Tokenize(const TString &delim) const
const char * Data() const