34 fRepositories.SetOwner(
kTRUE);
43 KVDataRepositoryManager::~KVDataRepositoryManager()
46 fRepositories.Delete();
85 if (fRepositories.GetSize())
86 fRepositories.Delete();
92 "<KVDataRepositoryManager::Init> : no repositories defined in .kvrootrc"
104 for (
int i_rep = 0; i_rep < toks->
GetEntries(); i_rep++) {
119 if (new_rep->
Init()) {
120 fRepositories.Add(new_rep);
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");
176 TIter nxt(&fRepositories);
177 cout <<
"Available data repositories: " << endl << endl;
183 cout <<
"\t" << rep->
GetName() <<
" [";
205 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