19 #include "KVDataBase.h"
21 #include "Riostream.h"
22 #include "TPluginManager.h"
23 #include "KVNumberList.h"
33 gROOT->GetRootFolder()->Add(
this);
42 : TFolder(name, title)
44 gROOT->GetRootFolder()->Add(
this);
54 : TFolder(name,
"database")
56 gROOT->GetRootFolder()->Add(
this);
66 KVDataBase::~KVDataBase()
69 gROOT->GetRootFolder()->Remove(
this);
70 gROOT->GetListOfCleanups()->Remove(
this);
71 Info(
"~KVDataBase",
"deleted %s:%s", GetName(), GetTitle());
97 tab->
SetFullPath(Form(
"//root/%s/%s", fFolderName.Data(), tab->GetName()));
122 table->
SetFullPath(Form(
"//root/%s/%s", fFolderName.Data(), name));
134 const Char_t* rec_name)
const
142 "No Table named %s found.", table_name);
156 cout <<
"_______________________________________________________" <<
158 cout << ClassName() <<
" : " << GetName() <<
" <---> " << GetTitle() <<
160 cout <<
"Available Tables :" << endl;
164 cout <<
" " << table->GetName() << endl;
166 cout <<
"_______________________________________________________" <<
Record folder for the database.
virtual void SetFullPath(const Char_t *path)
virtual KVDBRecord * GetRecord(const Char_t *rec_name) const
Simple cross-referenced database structure.
void Print(Option_t *option="") const override
virtual KVDBTable * GetTable(const Char_t *table) const
virtual KVDBRecord * GetRecord(const Char_t *table_name, const Char_t *rec_name) const
virtual TList * GetTables() const
virtual Bool_t AddTable(KVDBTable *table)
void Warning(UserClass p, const char *location, const char *va_(fmt),...)